[2025-02-04 00:00:05] Production.INFO: next invoice date [2025-02-04 00:00:05] Production.INFO: 2025-03-04 [2025-02-04 00:00:05] Production.INFO: getdaysdiff [2025-02-04 00:00:05] Production.INFO: +28 [2025-02-04 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (209,16,1,28,28,'RMScheduler',2025-02-04 00:00:05,0,0,,,0) [2025-02-04 00:00:05] Production.INFO: next invoice date [2025-02-04 00:00:05] Production.INFO: 2025-03-04 [2025-02-04 00:00:05] Production.INFO: getdaysdiff [2025-02-04 00:00:05] Production.INFO: +28 [2025-02-04 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (209,13,2,28,28,'RMScheduler',2025-02-04 00:00:05,0,0,,,0) [2025-02-04 00:00:05] Production.INFO: next invoice date [2025-02-04 00:00:05] Production.INFO: 2025-03-04 [2025-02-04 00:00:05] Production.INFO: getdaysdiff [2025-02-04 00:00:05] Production.INFO: +28 [2025-02-04 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (213,11,1,28,28,'RMScheduler',2025-02-04 00:00:05,0,0,,,0) [2025-02-04 00:00:05] Production.INFO: next invoice date [2025-02-04 00:00:05] Production.INFO: 2025-03-04 [2025-02-04 00:00:05] Production.INFO: getdaysdiff [2025-02-04 00:00:05] Production.INFO: +28 [2025-02-04 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (213,13,2,28,28,'RMScheduler',2025-02-04 00:00:05,0,0,,,0) [2025-02-04 00:00:05] Production.INFO: next invoice date [2025-02-04 00:00:05] Production.INFO: 2025-03-04 [2025-02-04 00:00:05] Production.INFO: getdaysdiff [2025-02-04 00:00:05] Production.INFO: +28 [2025-02-04 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (213,16,1,28,28,'RMScheduler',2025-02-04 00:00:05,1,0,,,0) [2025-02-04 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:00:07 [end_date_ymd] => 2025-02-04 00:00:07 [RateCDR] => 1 ) [2025-02-04 00:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:00:07' and `end` < '2025-02-04 00:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:00:26] Production.INFO: count ==897 [2025-02-04 00:00:26] Production.ERROR: pbx CDR StartTime 2025-02-03 21:00:07 - End Time 2025-02-04 00:00:07 [2025-02-04 00:00:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396546', 'tblTempUsageDetail_20' ) start [2025-02-04 00:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396546', 'tblTempUsageDetail_20' ) end [2025-02-04 00:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396546', 'tblTempVendorCDR_20' ) start [2025-02-04 00:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396546', 'tblTempVendorCDR_20' ) end [2025-02-04 00:00:26] Production.INFO: ProcessCDR(1,14396546,1,1,2) [2025-02-04 00:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396546', 'tblTempUsageDetail_20' ) start [2025-02-04 00:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396546', 'tblTempUsageDetail_20' ) end [2025-02-04 00:00:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:00:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:00:30] Production.INFO: ==23755== Releasing lock... [2025-02-04 00:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:00:30] Production.INFO: 36.25 MB #Memory Used# [2025-02-04 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:01:05 [end_date_ymd] => 2025-02-04 00:01:05 [RateCDR] => 1 ) [2025-02-04 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:01:05' and `end` < '2025-02-04 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:01:20] Production.INFO: count ==891 [2025-02-04 00:01:20] Production.ERROR: pbx CDR StartTime 2025-02-03 21:01:05 - End Time 2025-02-04 00:01:05 [2025-02-04 00:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396551', 'tblTempUsageDetail_20' ) start [2025-02-04 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396551', 'tblTempUsageDetail_20' ) end [2025-02-04 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396551', 'tblTempVendorCDR_20' ) start [2025-02-04 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396551', 'tblTempVendorCDR_20' ) end [2025-02-04 00:01:20] Production.INFO: ProcessCDR(1,14396551,1,1,2) [2025-02-04 00:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396551', 'tblTempUsageDetail_20' ) start [2025-02-04 00:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396551', 'tblTempUsageDetail_20' ) end [2025-02-04 00:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:01:24] Production.INFO: ==23843== Releasing lock... [2025-02-04 00:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:01:24] Production.INFO: 36.25 MB #Memory Used# [2025-02-04 00:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:02:06 [end_date_ymd] => 2025-02-04 00:02:06 [RateCDR] => 1 ) [2025-02-04 00:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:02:06' and `end` < '2025-02-04 00:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:02:31] Production.INFO: count ==541 [2025-02-04 00:02:31] Production.ERROR: pbx CDR StartTime 2025-02-03 21:02:06 - End Time 2025-02-04 00:02:06 [2025-02-04 00:02:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396556', 'tblTempUsageDetail_20' ) start [2025-02-04 00:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396556', 'tblTempUsageDetail_20' ) end [2025-02-04 00:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396556', 'tblTempVendorCDR_20' ) start [2025-02-04 00:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396556', 'tblTempVendorCDR_20' ) end [2025-02-04 00:02:31] Production.INFO: ProcessCDR(1,14396556,1,1,2) [2025-02-04 00:02:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:02:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:02:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:02:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:02:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396556', 'tblTempUsageDetail_20' ) start [2025-02-04 00:02:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396556', 'tblTempUsageDetail_20' ) end [2025-02-04 00:02:35] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:02:35] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:02:36] Production.INFO: ==23935== Releasing lock... [2025-02-04 00:02:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:02:36] Production.INFO: 35 MB #Memory Used# [2025-02-04 00:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:03:04 [end_date_ymd] => 2025-02-04 00:03:04 [RateCDR] => 1 ) [2025-02-04 00: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-02-03 21:03:04' and `end` < '2025-02-04 00: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-02-04 00:03:29] Production.INFO: count ==541 [2025-02-04 00:03:29] Production.ERROR: pbx CDR StartTime 2025-02-03 21:03:04 - End Time 2025-02-04 00:03:04 [2025-02-04 00:03:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396561', 'tblTempUsageDetail_20' ) start [2025-02-04 00:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396561', 'tblTempUsageDetail_20' ) end [2025-02-04 00:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396561', 'tblTempVendorCDR_20' ) start [2025-02-04 00:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396561', 'tblTempVendorCDR_20' ) end [2025-02-04 00:03:29] Production.INFO: ProcessCDR(1,14396561,1,1,2) [2025-02-04 00:03:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:03:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:03:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:03:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396561', 'tblTempUsageDetail_20' ) start [2025-02-04 00:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396561', 'tblTempUsageDetail_20' ) end [2025-02-04 00:03:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:03:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:03:32] Production.INFO: ==24045== Releasing lock... [2025-02-04 00:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:03:32] Production.INFO: 32.75 MB #Memory Used# [2025-02-04 00:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:04:06 [end_date_ymd] => 2025-02-04 00:04:06 [RateCDR] => 1 ) [2025-02-04 00:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:04:06' and `end` < '2025-02-04 00:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:04:29] Production.INFO: count ==540 [2025-02-04 00:04:29] Production.ERROR: pbx CDR StartTime 2025-02-03 21:04:06 - End Time 2025-02-04 00:04:06 [2025-02-04 00:04:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396566', 'tblTempUsageDetail_20' ) start [2025-02-04 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396566', 'tblTempUsageDetail_20' ) end [2025-02-04 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396566', 'tblTempVendorCDR_20' ) start [2025-02-04 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396566', 'tblTempVendorCDR_20' ) end [2025-02-04 00:04:29] Production.INFO: ProcessCDR(1,14396566,1,1,2) [2025-02-04 00:04:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:04:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396566', 'tblTempUsageDetail_20' ) start [2025-02-04 00:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396566', 'tblTempUsageDetail_20' ) end [2025-02-04 00:04:33] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:04:33] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:04:33] Production.INFO: ==24154== Releasing lock... [2025-02-04 00:04:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:04:33] Production.INFO: 33 MB #Memory Used# [2025-02-04 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:05:05 [end_date_ymd] => 2025-02-04 00:05:05 [RateCDR] => 1 ) [2025-02-04 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:05:05' and `end` < '2025-02-04 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:05:26] Production.INFO: count ==544 [2025-02-04 00:05:26] Production.ERROR: pbx CDR StartTime 2025-02-03 21:05:05 - End Time 2025-02-04 00:05:05 [2025-02-04 00:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396571', 'tblTempUsageDetail_20' ) start [2025-02-04 00:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396571', 'tblTempUsageDetail_20' ) end [2025-02-04 00:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396571', 'tblTempVendorCDR_20' ) start [2025-02-04 00:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396571', 'tblTempVendorCDR_20' ) end [2025-02-04 00:05:26] Production.INFO: ProcessCDR(1,14396571,1,1,2) [2025-02-04 00:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396571', 'tblTempUsageDetail_20' ) start [2025-02-04 00:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396571', 'tblTempUsageDetail_20' ) end [2025-02-04 00:05:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:05:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:05:30] Production.INFO: ==24281== Releasing lock... [2025-02-04 00:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:05:30] Production.INFO: 33.25 MB #Memory Used# [2025-02-04 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:06:05 [end_date_ymd] => 2025-02-04 00:06:05 [RateCDR] => 1 ) [2025-02-04 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:06:05' and `end` < '2025-02-04 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:06:18] Production.INFO: count ==548 [2025-02-04 00:06:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:06:05 - End Time 2025-02-04 00:06:05 [2025-02-04 00:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396576', 'tblTempUsageDetail_20' ) start [2025-02-04 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396576', 'tblTempUsageDetail_20' ) end [2025-02-04 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396576', 'tblTempVendorCDR_20' ) start [2025-02-04 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396576', 'tblTempVendorCDR_20' ) end [2025-02-04 00:06:18] Production.INFO: ProcessCDR(1,14396576,1,1,2) [2025-02-04 00:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396576', 'tblTempUsageDetail_20' ) start [2025-02-04 00:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396576', 'tblTempUsageDetail_20' ) end [2025-02-04 00:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:06:23] Production.INFO: ==24398== Releasing lock... [2025-02-04 00:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:06:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-04 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:07:05 [end_date_ymd] => 2025-02-04 00:07:05 [RateCDR] => 1 ) [2025-02-04 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:07:05' and `end` < '2025-02-04 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:07:23] Production.INFO: count ==549 [2025-02-04 00:07:23] Production.ERROR: pbx CDR StartTime 2025-02-03 21:07:05 - End Time 2025-02-04 00:07:05 [2025-02-04 00:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396581', 'tblTempUsageDetail_20' ) start [2025-02-04 00:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396581', 'tblTempUsageDetail_20' ) end [2025-02-04 00:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396581', 'tblTempVendorCDR_20' ) start [2025-02-04 00:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396581', 'tblTempVendorCDR_20' ) end [2025-02-04 00:07:23] Production.INFO: ProcessCDR(1,14396581,1,1,2) [2025-02-04 00:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396581', 'tblTempUsageDetail_20' ) start [2025-02-04 00:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396581', 'tblTempUsageDetail_20' ) end [2025-02-04 00:07:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:07:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:07:27] Production.INFO: ==24545== Releasing lock... [2025-02-04 00:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:07:27] Production.INFO: 32.75 MB #Memory Used# [2025-02-04 00:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:08:04 [end_date_ymd] => 2025-02-04 00:08:04 [RateCDR] => 1 ) [2025-02-04 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-02-03 21:08:04' and `end` < '2025-02-04 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-02-04 00:08:25] Production.INFO: count ==549 [2025-02-04 00:08:25] Production.ERROR: pbx CDR StartTime 2025-02-03 21:08:04 - End Time 2025-02-04 00:08:04 [2025-02-04 00:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396586', 'tblTempUsageDetail_20' ) start [2025-02-04 00:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396586', 'tblTempUsageDetail_20' ) end [2025-02-04 00:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396586', 'tblTempVendorCDR_20' ) start [2025-02-04 00:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396586', 'tblTempVendorCDR_20' ) end [2025-02-04 00:08:25] Production.INFO: ProcessCDR(1,14396586,1,1,2) [2025-02-04 00:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396586', 'tblTempUsageDetail_20' ) start [2025-02-04 00:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396586', 'tblTempUsageDetail_20' ) end [2025-02-04 00:08:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:08:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:08:28] Production.INFO: ==24698== Releasing lock... [2025-02-04 00:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:08:28] Production.INFO: 32.75 MB #Memory Used# [2025-02-04 00:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:09:06 [end_date_ymd] => 2025-02-04 00:09:06 [RateCDR] => 1 ) [2025-02-04 00:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:09:06' and `end` < '2025-02-04 00:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:09:19] Production.INFO: count ==549 [2025-02-04 00:09:19] Production.ERROR: pbx CDR StartTime 2025-02-03 21:09:06 - End Time 2025-02-04 00:09:06 [2025-02-04 00:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396591', 'tblTempUsageDetail_20' ) start [2025-02-04 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396591', 'tblTempUsageDetail_20' ) end [2025-02-04 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396591', 'tblTempVendorCDR_20' ) start [2025-02-04 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396591', 'tblTempVendorCDR_20' ) end [2025-02-04 00:09:19] Production.INFO: ProcessCDR(1,14396591,1,1,2) [2025-02-04 00:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396591', 'tblTempUsageDetail_20' ) start [2025-02-04 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396591', 'tblTempUsageDetail_20' ) end [2025-02-04 00:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:09:22] Production.INFO: ==24799== Releasing lock... [2025-02-04 00:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:09:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-04 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:10:05 [end_date_ymd] => 2025-02-04 00:10:05 [RateCDR] => 1 ) [2025-02-04 00:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:10:05' and `end` < '2025-02-04 00:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:10:41] Production.INFO: count ==551 [2025-02-04 00:10:42] Production.ERROR: pbx CDR StartTime 2025-02-03 21:10:05 - End Time 2025-02-04 00:10:05 [2025-02-04 00:10:42] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:10:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396597', 'tblTempUsageDetail_20' ) start [2025-02-04 00:10:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396597', 'tblTempUsageDetail_20' ) end [2025-02-04 00:10:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396597', 'tblTempVendorCDR_20' ) start [2025-02-04 00:10:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396597', 'tblTempVendorCDR_20' ) end [2025-02-04 00:10:42] Production.INFO: ProcessCDR(1,14396597,1,1,2) [2025-02-04 00:10:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:10:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:10:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:10:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:10:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396597', 'tblTempUsageDetail_20' ) start [2025-02-04 00:10:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396597', 'tblTempUsageDetail_20' ) end [2025-02-04 00:10:45] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:10:45] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:10:45] Production.INFO: ==24871== Releasing lock... [2025-02-04 00:10:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:10:45] Production.INFO: 32.5 MB #Memory Used# [2025-02-04 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:11:05 [end_date_ymd] => 2025-02-04 00:11:05 [RateCDR] => 1 ) [2025-02-04 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:11:05' and `end` < '2025-02-04 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:11:20] Production.INFO: count ==567 [2025-02-04 00:11:21] Production.ERROR: pbx CDR StartTime 2025-02-03 21:11:05 - End Time 2025-02-04 00:11:05 [2025-02-04 00:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396602', 'tblTempUsageDetail_20' ) start [2025-02-04 00:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396602', 'tblTempUsageDetail_20' ) end [2025-02-04 00:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396602', 'tblTempVendorCDR_20' ) start [2025-02-04 00:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396602', 'tblTempVendorCDR_20' ) end [2025-02-04 00:11:21] Production.INFO: ProcessCDR(1,14396602,1,1,2) [2025-02-04 00:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396602', 'tblTempUsageDetail_20' ) start [2025-02-04 00:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396602', 'tblTempUsageDetail_20' ) end [2025-02-04 00:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:11:24] Production.INFO: ==24946== Releasing lock... [2025-02-04 00:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:11:24] Production.INFO: 32.75 MB #Memory Used# [2025-02-04 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:12:05 [end_date_ymd] => 2025-02-04 00:12:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 21:12:05' and `end` < '2025-02-04 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-02-04 00:12:18] Production.INFO: count ==566 [2025-02-04 00:12:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:12:05 - End Time 2025-02-04 00:12:05 [2025-02-04 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396607', 'tblTempUsageDetail_20' ) start [2025-02-04 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396607', 'tblTempUsageDetail_20' ) end [2025-02-04 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396607', 'tblTempVendorCDR_20' ) start [2025-02-04 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396607', 'tblTempVendorCDR_20' ) end [2025-02-04 00:12:18] Production.INFO: ProcessCDR(1,14396607,1,1,2) [2025-02-04 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396607', 'tblTempUsageDetail_20' ) start [2025-02-04 00:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396607', 'tblTempUsageDetail_20' ) end [2025-02-04 00:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:12:23] Production.INFO: ==25019== Releasing lock... [2025-02-04 00:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:12:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-04 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:13:05 [end_date_ymd] => 2025-02-04 00:13:05 [RateCDR] => 1 ) [2025-02-04 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:13:05' and `end` < '2025-02-04 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-02-04 00:13:18] Production.INFO: count ==566 [2025-02-04 00:13:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:13:05 - End Time 2025-02-04 00:13:05 [2025-02-04 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396612', 'tblTempUsageDetail_20' ) start [2025-02-04 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396612', 'tblTempUsageDetail_20' ) end [2025-02-04 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396612', 'tblTempVendorCDR_20' ) start [2025-02-04 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396612', 'tblTempVendorCDR_20' ) end [2025-02-04 00:13:18] Production.INFO: ProcessCDR(1,14396612,1,1,2) [2025-02-04 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396612', 'tblTempUsageDetail_20' ) start [2025-02-04 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396612', 'tblTempUsageDetail_20' ) end [2025-02-04 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:13:21] Production.INFO: ==25092== Releasing lock... [2025-02-04 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:13:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-04 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:14:05 [end_date_ymd] => 2025-02-04 00:14:05 [RateCDR] => 1 ) [2025-02-04 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:14:05' and `end` < '2025-02-04 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:14:19] Production.INFO: count ==570 [2025-02-04 00:14:20] Production.ERROR: pbx CDR StartTime 2025-02-03 21:14:05 - End Time 2025-02-04 00:14:05 [2025-02-04 00:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396617', 'tblTempUsageDetail_20' ) start [2025-02-04 00:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396617', 'tblTempUsageDetail_20' ) end [2025-02-04 00:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396617', 'tblTempVendorCDR_20' ) start [2025-02-04 00:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396617', 'tblTempVendorCDR_20' ) end [2025-02-04 00:14:20] Production.INFO: ProcessCDR(1,14396617,1,1,2) [2025-02-04 00:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396617', 'tblTempUsageDetail_20' ) start [2025-02-04 00:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396617', 'tblTempUsageDetail_20' ) end [2025-02-04 00:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:14:23] Production.INFO: ==25164== Releasing lock... [2025-02-04 00:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:14:23] Production.INFO: 33 MB #Memory Used# [2025-02-04 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:15:05 [end_date_ymd] => 2025-02-04 00:15:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 21:15:05' and `end` < '2025-02-04 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-02-04 00:15:18] Production.INFO: count ==570 [2025-02-04 00:15:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:15:05 - End Time 2025-02-04 00:15:05 [2025-02-04 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396622', 'tblTempUsageDetail_20' ) start [2025-02-04 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396622', 'tblTempUsageDetail_20' ) end [2025-02-04 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396622', 'tblTempVendorCDR_20' ) start [2025-02-04 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396622', 'tblTempVendorCDR_20' ) end [2025-02-04 00:15:18] Production.INFO: ProcessCDR(1,14396622,1,1,2) [2025-02-04 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396622', 'tblTempUsageDetail_20' ) start [2025-02-04 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396622', 'tblTempUsageDetail_20' ) end [2025-02-04 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:15:21] Production.INFO: ==25279== Releasing lock... [2025-02-04 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:15:21] Production.INFO: 33 MB #Memory Used# [2025-02-04 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:16:05 [end_date_ymd] => 2025-02-04 00:16:05 [RateCDR] => 1 ) [2025-02-04 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:16:05' and `end` < '2025-02-04 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:16:18] Production.INFO: count ==570 [2025-02-04 00:16:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:16:05 - End Time 2025-02-04 00:16:05 [2025-02-04 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396627', 'tblTempUsageDetail_20' ) start [2025-02-04 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396627', 'tblTempUsageDetail_20' ) end [2025-02-04 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396627', 'tblTempVendorCDR_20' ) start [2025-02-04 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396627', 'tblTempVendorCDR_20' ) end [2025-02-04 00:16:18] Production.INFO: ProcessCDR(1,14396627,1,1,2) [2025-02-04 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396627', 'tblTempUsageDetail_20' ) start [2025-02-04 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396627', 'tblTempUsageDetail_20' ) end [2025-02-04 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:16:21] Production.INFO: ==25356== Releasing lock... [2025-02-04 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:16:21] Production.INFO: 33 MB #Memory Used# [2025-02-04 00:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:17:04 [end_date_ymd] => 2025-02-04 00:17:04 [RateCDR] => 1 ) [2025-02-04 00:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:17:04' and `end` < '2025-02-04 00:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:17:18] Production.INFO: count ==571 [2025-02-04 00:17:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:17:04 - End Time 2025-02-04 00:17:04 [2025-02-04 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396632', 'tblTempUsageDetail_20' ) start [2025-02-04 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396632', 'tblTempUsageDetail_20' ) end [2025-02-04 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396632', 'tblTempVendorCDR_20' ) start [2025-02-04 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396632', 'tblTempVendorCDR_20' ) end [2025-02-04 00:17:18] Production.INFO: ProcessCDR(1,14396632,1,1,2) [2025-02-04 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396632', 'tblTempUsageDetail_20' ) start [2025-02-04 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396632', 'tblTempUsageDetail_20' ) end [2025-02-04 00:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:17:22] Production.INFO: ==25432== Releasing lock... [2025-02-04 00:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:17:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-04 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:18:05 [end_date_ymd] => 2025-02-04 00:18:05 [RateCDR] => 1 ) [2025-02-04 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:18:05' and `end` < '2025-02-04 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:18:18] Production.INFO: count ==571 [2025-02-04 00:18:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:18:05 - End Time 2025-02-04 00:18:05 [2025-02-04 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396637', 'tblTempUsageDetail_20' ) start [2025-02-04 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396637', 'tblTempUsageDetail_20' ) end [2025-02-04 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396637', 'tblTempVendorCDR_20' ) start [2025-02-04 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396637', 'tblTempVendorCDR_20' ) end [2025-02-04 00:18:18] Production.INFO: ProcessCDR(1,14396637,1,1,2) [2025-02-04 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396637', 'tblTempUsageDetail_20' ) start [2025-02-04 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396637', 'tblTempUsageDetail_20' ) end [2025-02-04 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:18:21] Production.INFO: ==25517== Releasing lock... [2025-02-04 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:18:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-04 00:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:19:06 [end_date_ymd] => 2025-02-04 00:19:06 [RateCDR] => 1 ) [2025-02-04 00:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:19:06' and `end` < '2025-02-04 00:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:19:18] Production.INFO: count ==572 [2025-02-04 00:19:19] Production.ERROR: pbx CDR StartTime 2025-02-03 21:19:06 - End Time 2025-02-04 00:19:06 [2025-02-04 00:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396642', 'tblTempUsageDetail_20' ) start [2025-02-04 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396642', 'tblTempUsageDetail_20' ) end [2025-02-04 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396642', 'tblTempVendorCDR_20' ) start [2025-02-04 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396642', 'tblTempVendorCDR_20' ) end [2025-02-04 00:19:19] Production.INFO: ProcessCDR(1,14396642,1,1,2) [2025-02-04 00:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396642', 'tblTempUsageDetail_20' ) start [2025-02-04 00:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396642', 'tblTempUsageDetail_20' ) end [2025-02-04 00:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:19:23] Production.INFO: ==25592== Releasing lock... [2025-02-04 00:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:19:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-04 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:20:06 [end_date_ymd] => 2025-02-04 00:20:06 [RateCDR] => 1 ) [2025-02-04 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:20:06' and `end` < '2025-02-04 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:20:18] Production.INFO: count ==576 [2025-02-04 00:20:19] Production.ERROR: pbx CDR StartTime 2025-02-03 21:20:06 - End Time 2025-02-04 00:20:06 [2025-02-04 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396647', 'tblTempUsageDetail_20' ) start [2025-02-04 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396647', 'tblTempUsageDetail_20' ) end [2025-02-04 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396647', 'tblTempVendorCDR_20' ) start [2025-02-04 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396647', 'tblTempVendorCDR_20' ) end [2025-02-04 00:20:19] Production.INFO: ProcessCDR(1,14396647,1,1,2) [2025-02-04 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396647', 'tblTempUsageDetail_20' ) start [2025-02-04 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396647', 'tblTempUsageDetail_20' ) end [2025-02-04 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:20:22] Production.INFO: ==25666== Releasing lock... [2025-02-04 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:20:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-04 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:21:05 [end_date_ymd] => 2025-02-04 00:21:05 [RateCDR] => 1 ) [2025-02-04 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:21:05' and `end` < '2025-02-04 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:21:19] Production.INFO: count ==576 [2025-02-04 00:21:20] Production.ERROR: pbx CDR StartTime 2025-02-03 21:21:05 - End Time 2025-02-04 00:21:05 [2025-02-04 00:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396653', 'tblTempUsageDetail_20' ) start [2025-02-04 00:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396653', 'tblTempUsageDetail_20' ) end [2025-02-04 00:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396653', 'tblTempVendorCDR_20' ) start [2025-02-04 00:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396653', 'tblTempVendorCDR_20' ) end [2025-02-04 00:21:20] Production.INFO: ProcessCDR(1,14396653,1,1,2) [2025-02-04 00:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396653', 'tblTempUsageDetail_20' ) start [2025-02-04 00:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396653', 'tblTempUsageDetail_20' ) end [2025-02-04 00:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:21:23] Production.INFO: ==25742== Releasing lock... [2025-02-04 00:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:21:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-04 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:22:05 [end_date_ymd] => 2025-02-04 00:22:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 21:22:05' and `end` < '2025-02-04 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-02-04 00:22:18] Production.INFO: count ==577 [2025-02-04 00:22:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:22:05 - End Time 2025-02-04 00:22:05 [2025-02-04 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396658', 'tblTempUsageDetail_20' ) start [2025-02-04 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396658', 'tblTempUsageDetail_20' ) end [2025-02-04 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396658', 'tblTempVendorCDR_20' ) start [2025-02-04 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396658', 'tblTempVendorCDR_20' ) end [2025-02-04 00:22:18] Production.INFO: ProcessCDR(1,14396658,1,1,2) [2025-02-04 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396658', 'tblTempUsageDetail_20' ) start [2025-02-04 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396658', 'tblTempUsageDetail_20' ) end [2025-02-04 00:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:22:22] Production.INFO: ==25814== Releasing lock... [2025-02-04 00:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:22:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-04 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:23:05 [end_date_ymd] => 2025-02-04 00:23:05 [RateCDR] => 1 ) [2025-02-04 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:23:05' and `end` < '2025-02-04 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:23:19] Production.INFO: count ==578 [2025-02-04 00:23:20] Production.ERROR: pbx CDR StartTime 2025-02-03 21:23:05 - End Time 2025-02-04 00:23:05 [2025-02-04 00:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396663', 'tblTempUsageDetail_20' ) start [2025-02-04 00:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396663', 'tblTempUsageDetail_20' ) end [2025-02-04 00:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396663', 'tblTempVendorCDR_20' ) start [2025-02-04 00:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396663', 'tblTempVendorCDR_20' ) end [2025-02-04 00:23:20] Production.INFO: ProcessCDR(1,14396663,1,1,2) [2025-02-04 00:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396663', 'tblTempUsageDetail_20' ) start [2025-02-04 00:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396663', 'tblTempUsageDetail_20' ) end [2025-02-04 00:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:23:24] Production.INFO: ==25888== Releasing lock... [2025-02-04 00:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:23:24] Production.INFO: 32.75 MB #Memory Used# [2025-02-04 00:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:24:06 [end_date_ymd] => 2025-02-04 00:24:06 [RateCDR] => 1 ) [2025-02-04 00:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:24:06' and `end` < '2025-02-04 00:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:24:18] Production.INFO: count ==576 [2025-02-04 00:24:19] Production.ERROR: pbx CDR StartTime 2025-02-03 21:24:06 - End Time 2025-02-04 00:24:06 [2025-02-04 00:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396668', 'tblTempUsageDetail_20' ) start [2025-02-04 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396668', 'tblTempUsageDetail_20' ) end [2025-02-04 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396668', 'tblTempVendorCDR_20' ) start [2025-02-04 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396668', 'tblTempVendorCDR_20' ) end [2025-02-04 00:24:19] Production.INFO: ProcessCDR(1,14396668,1,1,2) [2025-02-04 00:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396668', 'tblTempUsageDetail_20' ) start [2025-02-04 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396668', 'tblTempUsageDetail_20' ) end [2025-02-04 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:24:22] Production.INFO: ==25964== Releasing lock... [2025-02-04 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:24:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-04 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:25:05 [end_date_ymd] => 2025-02-04 00:25:05 [RateCDR] => 1 ) [2025-02-04 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:25:05' and `end` < '2025-02-04 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:25:18] Production.INFO: count ==577 [2025-02-04 00:25:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:25:05 - End Time 2025-02-04 00:25:05 [2025-02-04 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396673', 'tblTempUsageDetail_20' ) start [2025-02-04 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396673', 'tblTempUsageDetail_20' ) end [2025-02-04 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396673', 'tblTempVendorCDR_20' ) start [2025-02-04 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396673', 'tblTempVendorCDR_20' ) end [2025-02-04 00:25:18] Production.INFO: ProcessCDR(1,14396673,1,1,2) [2025-02-04 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396673', 'tblTempUsageDetail_20' ) start [2025-02-04 00:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396673', 'tblTempUsageDetail_20' ) end [2025-02-04 00:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:25:23] Production.INFO: ==26034== Releasing lock... [2025-02-04 00:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:25:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-04 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:26:05 [end_date_ymd] => 2025-02-04 00:26:05 [RateCDR] => 1 ) [2025-02-04 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:26:05' and `end` < '2025-02-04 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:26:17] Production.INFO: count ==576 [2025-02-04 00:26:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:26:05 - End Time 2025-02-04 00:26:05 [2025-02-04 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396677', 'tblTempUsageDetail_20' ) start [2025-02-04 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396677', 'tblTempUsageDetail_20' ) end [2025-02-04 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396677', 'tblTempVendorCDR_20' ) start [2025-02-04 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396677', 'tblTempVendorCDR_20' ) end [2025-02-04 00:26:18] Production.INFO: ProcessCDR(1,14396677,1,1,2) [2025-02-04 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396677', 'tblTempUsageDetail_20' ) start [2025-02-04 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396677', 'tblTempUsageDetail_20' ) end [2025-02-04 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:26:21] Production.INFO: ==26110== Releasing lock... [2025-02-04 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:26:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-04 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:27:05 [end_date_ymd] => 2025-02-04 00:27:05 [RateCDR] => 1 ) [2025-02-04 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:27:05' and `end` < '2025-02-04 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:27:18] Production.INFO: count ==576 [2025-02-04 00:27:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:27:05 - End Time 2025-02-04 00:27:05 [2025-02-04 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396683', 'tblTempUsageDetail_20' ) start [2025-02-04 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396683', 'tblTempUsageDetail_20' ) end [2025-02-04 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396683', 'tblTempVendorCDR_20' ) start [2025-02-04 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396683', 'tblTempVendorCDR_20' ) end [2025-02-04 00:27:18] Production.INFO: ProcessCDR(1,14396683,1,1,2) [2025-02-04 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396683', 'tblTempUsageDetail_20' ) start [2025-02-04 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396683', 'tblTempUsageDetail_20' ) end [2025-02-04 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:27:21] Production.INFO: ==26185== Releasing lock... [2025-02-04 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:27:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-04 00:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:28:06 [end_date_ymd] => 2025-02-04 00:28:06 [RateCDR] => 1 ) [2025-02-04 00:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:28:06' and `end` < '2025-02-04 00:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:28:19] Production.INFO: count ==576 [2025-02-04 00:28:19] Production.ERROR: pbx CDR StartTime 2025-02-03 21:28:06 - End Time 2025-02-04 00:28:06 [2025-02-04 00:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396688', 'tblTempUsageDetail_20' ) start [2025-02-04 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396688', 'tblTempUsageDetail_20' ) end [2025-02-04 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396688', 'tblTempVendorCDR_20' ) start [2025-02-04 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396688', 'tblTempVendorCDR_20' ) end [2025-02-04 00:28:19] Production.INFO: ProcessCDR(1,14396688,1,1,2) [2025-02-04 00:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396688', 'tblTempUsageDetail_20' ) start [2025-02-04 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396688', 'tblTempUsageDetail_20' ) end [2025-02-04 00:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:28:22] Production.INFO: ==26263== Releasing lock... [2025-02-04 00:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:28:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-04 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:29:05 [end_date_ymd] => 2025-02-04 00:29:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 21:29:05' and `end` < '2025-02-04 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-02-04 00:29:18] Production.INFO: count ==583 [2025-02-04 00:29:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:29:05 - End Time 2025-02-04 00:29:05 [2025-02-04 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396689', 'tblTempUsageDetail_20' ) start [2025-02-04 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396689', 'tblTempUsageDetail_20' ) end [2025-02-04 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396689', 'tblTempVendorCDR_20' ) start [2025-02-04 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396689', 'tblTempVendorCDR_20' ) end [2025-02-04 00:29:18] Production.INFO: ProcessCDR(1,14396689,1,1,2) [2025-02-04 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396689', 'tblTempUsageDetail_20' ) start [2025-02-04 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396689', 'tblTempUsageDetail_20' ) end [2025-02-04 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:29:22] Production.INFO: ==26339== Releasing lock... [2025-02-04 00:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:29:22] Production.INFO: 33 MB #Memory Used# [2025-02-04 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:30:06 [end_date_ymd] => 2025-02-04 00:30:06 [RateCDR] => 1 ) [2025-02-04 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:30:06' and `end` < '2025-02-04 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:30:19] Production.INFO: count ==591 [2025-02-04 00:30:19] Production.ERROR: pbx CDR StartTime 2025-02-03 21:30:06 - End Time 2025-02-04 00:30:06 [2025-02-04 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396699', 'tblTempUsageDetail_20' ) start [2025-02-04 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396699', 'tblTempUsageDetail_20' ) end [2025-02-04 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396699', 'tblTempVendorCDR_20' ) start [2025-02-04 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396699', 'tblTempVendorCDR_20' ) end [2025-02-04 00:30:19] Production.INFO: ProcessCDR(1,14396699,1,1,2) [2025-02-04 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396699', 'tblTempUsageDetail_20' ) start [2025-02-04 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396699', 'tblTempUsageDetail_20' ) end [2025-02-04 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:30:22] Production.INFO: ==26419== Releasing lock... [2025-02-04 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:30:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-04 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:31:05 [end_date_ymd] => 2025-02-04 00:31:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 21:31:05' and `end` < '2025-02-04 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-02-04 00:31:18] Production.INFO: count ==629 [2025-02-04 00:31:19] Production.ERROR: pbx CDR StartTime 2025-02-03 21:31:05 - End Time 2025-02-04 00:31:05 [2025-02-04 00:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396704', 'tblTempUsageDetail_20' ) start [2025-02-04 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396704', 'tblTempUsageDetail_20' ) end [2025-02-04 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396704', 'tblTempVendorCDR_20' ) start [2025-02-04 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396704', 'tblTempVendorCDR_20' ) end [2025-02-04 00:31:19] Production.INFO: ProcessCDR(1,14396704,1,1,2) [2025-02-04 00:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396704', 'tblTempUsageDetail_20' ) start [2025-02-04 00:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396704', 'tblTempUsageDetail_20' ) end [2025-02-04 00:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:31:23] Production.INFO: ==26534== Releasing lock... [2025-02-04 00:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:31:23] Production.INFO: 33 MB #Memory Used# [2025-02-04 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:32:05 [end_date_ymd] => 2025-02-04 00:32:05 [RateCDR] => 1 ) [2025-02-04 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:32:05' and `end` < '2025-02-04 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:32:18] Production.INFO: count ==630 [2025-02-04 00:32:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:32:05 - End Time 2025-02-04 00:32:05 [2025-02-04 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396709', 'tblTempUsageDetail_20' ) start [2025-02-04 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396709', 'tblTempUsageDetail_20' ) end [2025-02-04 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396709', 'tblTempVendorCDR_20' ) start [2025-02-04 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396709', 'tblTempVendorCDR_20' ) end [2025-02-04 00:32:18] Production.INFO: ProcessCDR(1,14396709,1,1,2) [2025-02-04 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396709', 'tblTempUsageDetail_20' ) start [2025-02-04 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396709', 'tblTempUsageDetail_20' ) end [2025-02-04 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:32:23] Production.INFO: ==26607== Releasing lock... [2025-02-04 00:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:32:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-04 00:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:33:04 [end_date_ymd] => 2025-02-04 00:33:04 [RateCDR] => 1 ) [2025-02-04 00: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-02-03 21:33:04' and `end` < '2025-02-04 00: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-02-04 00:33:18] Production.INFO: count ==627 [2025-02-04 00:33:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:33:04 - End Time 2025-02-04 00:33:04 [2025-02-04 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396714', 'tblTempUsageDetail_20' ) start [2025-02-04 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396714', 'tblTempUsageDetail_20' ) end [2025-02-04 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396714', 'tblTempVendorCDR_20' ) start [2025-02-04 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396714', 'tblTempVendorCDR_20' ) end [2025-02-04 00:33:18] Production.INFO: ProcessCDR(1,14396714,1,1,2) [2025-02-04 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396714', 'tblTempUsageDetail_20' ) start [2025-02-04 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396714', 'tblTempUsageDetail_20' ) end [2025-02-04 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:33:21] Production.INFO: ==26681== Releasing lock... [2025-02-04 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:33:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-04 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:34:05 [end_date_ymd] => 2025-02-04 00:34:05 [RateCDR] => 1 ) [2025-02-04 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:34:05' and `end` < '2025-02-04 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:34:19] Production.INFO: count ==624 [2025-02-04 00:34:19] Production.ERROR: pbx CDR StartTime 2025-02-03 21:34:05 - End Time 2025-02-04 00:34:05 [2025-02-04 00:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396719', 'tblTempUsageDetail_20' ) start [2025-02-04 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396719', 'tblTempUsageDetail_20' ) end [2025-02-04 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396719', 'tblTempVendorCDR_20' ) start [2025-02-04 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396719', 'tblTempVendorCDR_20' ) end [2025-02-04 00:34:19] Production.INFO: ProcessCDR(1,14396719,1,1,2) [2025-02-04 00:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396719', 'tblTempUsageDetail_20' ) start [2025-02-04 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396719', 'tblTempUsageDetail_20' ) end [2025-02-04 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:34:22] Production.INFO: ==26757== Releasing lock... [2025-02-04 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:34:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-04 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:35:05 [end_date_ymd] => 2025-02-04 00:35:05 [RateCDR] => 1 ) [2025-02-04 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:35:05' and `end` < '2025-02-04 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:35:18] Production.INFO: count ==623 [2025-02-04 00:35:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:35:05 - End Time 2025-02-04 00:35:05 [2025-02-04 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396724', 'tblTempUsageDetail_20' ) start [2025-02-04 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396724', 'tblTempUsageDetail_20' ) end [2025-02-04 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396724', 'tblTempVendorCDR_20' ) start [2025-02-04 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396724', 'tblTempVendorCDR_20' ) end [2025-02-04 00:35:18] Production.INFO: ProcessCDR(1,14396724,1,1,2) [2025-02-04 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396724', 'tblTempUsageDetail_20' ) start [2025-02-04 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396724', 'tblTempUsageDetail_20' ) end [2025-02-04 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:35:21] Production.INFO: ==26836== Releasing lock... [2025-02-04 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:35:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-04 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:36:05 [end_date_ymd] => 2025-02-04 00:36:05 [RateCDR] => 1 ) [2025-02-04 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:36:05' and `end` < '2025-02-04 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:36:18] Production.INFO: count ==623 [2025-02-04 00:36:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:36:05 - End Time 2025-02-04 00:36:05 [2025-02-04 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396729', 'tblTempUsageDetail_20' ) start [2025-02-04 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396729', 'tblTempUsageDetail_20' ) end [2025-02-04 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396729', 'tblTempVendorCDR_20' ) start [2025-02-04 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396729', 'tblTempVendorCDR_20' ) end [2025-02-04 00:36:18] Production.INFO: ProcessCDR(1,14396729,1,1,2) [2025-02-04 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396729', 'tblTempUsageDetail_20' ) start [2025-02-04 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396729', 'tblTempUsageDetail_20' ) end [2025-02-04 00:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:36:22] Production.INFO: ==26909== Releasing lock... [2025-02-04 00:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:36:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-04 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:37:05 [end_date_ymd] => 2025-02-04 00:37:05 [RateCDR] => 1 ) [2025-02-04 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:37:05' and `end` < '2025-02-04 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:37:18] Production.INFO: count ==623 [2025-02-04 00:37:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:37:05 - End Time 2025-02-04 00:37:05 [2025-02-04 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396734', 'tblTempUsageDetail_20' ) start [2025-02-04 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396734', 'tblTempUsageDetail_20' ) end [2025-02-04 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396734', 'tblTempVendorCDR_20' ) start [2025-02-04 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396734', 'tblTempVendorCDR_20' ) end [2025-02-04 00:37:18] Production.INFO: ProcessCDR(1,14396734,1,1,2) [2025-02-04 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396734', 'tblTempUsageDetail_20' ) start [2025-02-04 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396734', 'tblTempUsageDetail_20' ) end [2025-02-04 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:37:21] Production.INFO: ==26987== Releasing lock... [2025-02-04 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:37:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-04 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:38:05 [end_date_ymd] => 2025-02-04 00:38:05 [RateCDR] => 1 ) [2025-02-04 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:38:05' and `end` < '2025-02-04 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:38:19] Production.INFO: count ==623 [2025-02-04 00:38:19] Production.ERROR: pbx CDR StartTime 2025-02-03 21:38:05 - End Time 2025-02-04 00:38:05 [2025-02-04 00:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396739', 'tblTempUsageDetail_20' ) start [2025-02-04 00:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396739', 'tblTempUsageDetail_20' ) end [2025-02-04 00:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396739', 'tblTempVendorCDR_20' ) start [2025-02-04 00:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396739', 'tblTempVendorCDR_20' ) end [2025-02-04 00:38:20] Production.INFO: ProcessCDR(1,14396739,1,1,2) [2025-02-04 00:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396739', 'tblTempUsageDetail_20' ) start [2025-02-04 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396739', 'tblTempUsageDetail_20' ) end [2025-02-04 00:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:38:23] Production.INFO: ==27063== Releasing lock... [2025-02-04 00:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:38:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-04 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:39:05 [end_date_ymd] => 2025-02-04 00:39:05 [RateCDR] => 1 ) [2025-02-04 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:39:05' and `end` < '2025-02-04 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:39:19] Production.INFO: count ==624 [2025-02-04 00:39:19] Production.ERROR: pbx CDR StartTime 2025-02-03 21:39:05 - End Time 2025-02-04 00:39:05 [2025-02-04 00:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396744', 'tblTempUsageDetail_20' ) start [2025-02-04 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396744', 'tblTempUsageDetail_20' ) end [2025-02-04 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396744', 'tblTempVendorCDR_20' ) start [2025-02-04 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396744', 'tblTempVendorCDR_20' ) end [2025-02-04 00:39:19] Production.INFO: ProcessCDR(1,14396744,1,1,2) [2025-02-04 00:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396744', 'tblTempUsageDetail_20' ) start [2025-02-04 00:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396744', 'tblTempUsageDetail_20' ) end [2025-02-04 00:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:39:24] Production.INFO: ==27139== Releasing lock... [2025-02-04 00:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:39:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-04 00:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:40:05 [end_date_ymd] => 2025-02-04 00:40:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 21:40:05' and `end` < '2025-02-04 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-02-04 00:40:18] Production.INFO: count ==630 [2025-02-04 00:40:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:40:05 - End Time 2025-02-04 00:40:05 [2025-02-04 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396750', 'tblTempUsageDetail_20' ) start [2025-02-04 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396750', 'tblTempUsageDetail_20' ) end [2025-02-04 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396750', 'tblTempVendorCDR_20' ) start [2025-02-04 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396750', 'tblTempVendorCDR_20' ) end [2025-02-04 00:40:18] Production.INFO: ProcessCDR(1,14396750,1,1,2) [2025-02-04 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396750', 'tblTempUsageDetail_20' ) start [2025-02-04 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396750', 'tblTempUsageDetail_20' ) end [2025-02-04 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:40:21] Production.INFO: ==27219== Releasing lock... [2025-02-04 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:40:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-04 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:41:05 [end_date_ymd] => 2025-02-04 00:41:05 [RateCDR] => 1 ) [2025-02-04 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:41:05' and `end` < '2025-02-04 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:41:20] Production.INFO: count ==646 [2025-02-04 00:41:20] Production.ERROR: pbx CDR StartTime 2025-02-03 21:41:05 - End Time 2025-02-04 00:41:05 [2025-02-04 00:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396755', 'tblTempUsageDetail_20' ) start [2025-02-04 00:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396755', 'tblTempUsageDetail_20' ) end [2025-02-04 00:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396755', 'tblTempVendorCDR_20' ) start [2025-02-04 00:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396755', 'tblTempVendorCDR_20' ) end [2025-02-04 00:41:20] Production.INFO: ProcessCDR(1,14396755,1,1,2) [2025-02-04 00:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396755', 'tblTempUsageDetail_20' ) start [2025-02-04 00:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396755', 'tblTempUsageDetail_20' ) end [2025-02-04 00:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:41:25] Production.INFO: ==27297== Releasing lock... [2025-02-04 00:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:41:25] Production.INFO: 33.5 MB #Memory Used# [2025-02-04 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:42:05 [end_date_ymd] => 2025-02-04 00:42:05 [RateCDR] => 1 ) [2025-02-04 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:42:05' and `end` < '2025-02-04 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:42:17] Production.INFO: count ==646 [2025-02-04 00:42:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:42:05 - End Time 2025-02-04 00:42:05 [2025-02-04 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396760', 'tblTempUsageDetail_20' ) start [2025-02-04 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396760', 'tblTempUsageDetail_20' ) end [2025-02-04 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396760', 'tblTempVendorCDR_20' ) start [2025-02-04 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396760', 'tblTempVendorCDR_20' ) end [2025-02-04 00:42:18] Production.INFO: ProcessCDR(1,14396760,1,1,2) [2025-02-04 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396760', 'tblTempUsageDetail_20' ) start [2025-02-04 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396760', 'tblTempUsageDetail_20' ) end [2025-02-04 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:42:21] Production.INFO: ==27372== Releasing lock... [2025-02-04 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:42:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-04 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:43:05 [end_date_ymd] => 2025-02-04 00:43:05 [RateCDR] => 1 ) [2025-02-04 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:43:05' and `end` < '2025-02-04 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:43:18] Production.INFO: count ==646 [2025-02-04 00:43:19] Production.ERROR: pbx CDR StartTime 2025-02-03 21:43:05 - End Time 2025-02-04 00:43:05 [2025-02-04 00:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396765', 'tblTempUsageDetail_20' ) start [2025-02-04 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396765', 'tblTempUsageDetail_20' ) end [2025-02-04 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396765', 'tblTempVendorCDR_20' ) start [2025-02-04 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396765', 'tblTempVendorCDR_20' ) end [2025-02-04 00:43:19] Production.INFO: ProcessCDR(1,14396765,1,1,2) [2025-02-04 00:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396765', 'tblTempUsageDetail_20' ) start [2025-02-04 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396765', 'tblTempUsageDetail_20' ) end [2025-02-04 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:43:22] Production.INFO: ==27448== Releasing lock... [2025-02-04 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:43:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-04 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:44:05 [end_date_ymd] => 2025-02-04 00:44:05 [RateCDR] => 1 ) [2025-02-04 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:44:05' and `end` < '2025-02-04 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:44:18] Production.INFO: count ==645 [2025-02-04 00:44:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:44:05 - End Time 2025-02-04 00:44:05 [2025-02-04 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396770', 'tblTempUsageDetail_20' ) start [2025-02-04 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396770', 'tblTempUsageDetail_20' ) end [2025-02-04 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396770', 'tblTempVendorCDR_20' ) start [2025-02-04 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396770', 'tblTempVendorCDR_20' ) end [2025-02-04 00:44:19] Production.INFO: ProcessCDR(1,14396770,1,1,2) [2025-02-04 00:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396770', 'tblTempUsageDetail_20' ) start [2025-02-04 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396770', 'tblTempUsageDetail_20' ) end [2025-02-04 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:44:22] Production.INFO: ==27523== Releasing lock... [2025-02-04 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:44:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-04 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:45:05 [end_date_ymd] => 2025-02-04 00:45:05 [RateCDR] => 1 ) [2025-02-04 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:45:05' and `end` < '2025-02-04 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:45:18] Production.INFO: count ==645 [2025-02-04 00:45:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:45:05 - End Time 2025-02-04 00:45:05 [2025-02-04 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396775', 'tblTempUsageDetail_20' ) start [2025-02-04 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396775', 'tblTempUsageDetail_20' ) end [2025-02-04 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396775', 'tblTempVendorCDR_20' ) start [2025-02-04 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396775', 'tblTempVendorCDR_20' ) end [2025-02-04 00:45:18] Production.INFO: ProcessCDR(1,14396775,1,1,2) [2025-02-04 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396775', 'tblTempUsageDetail_20' ) start [2025-02-04 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396775', 'tblTempUsageDetail_20' ) end [2025-02-04 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:45:21] Production.INFO: ==27599== Releasing lock... [2025-02-04 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:45:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-04 00:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:46:06 [end_date_ymd] => 2025-02-04 00:46:06 [RateCDR] => 1 ) [2025-02-04 00:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:46:06' and `end` < '2025-02-04 00:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:46:20] Production.INFO: count ==603 [2025-02-04 00:46:20] Production.ERROR: pbx CDR StartTime 2025-02-03 21:46:06 - End Time 2025-02-04 00:46:06 [2025-02-04 00:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396780', 'tblTempUsageDetail_20' ) start [2025-02-04 00:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396780', 'tblTempUsageDetail_20' ) end [2025-02-04 00:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396780', 'tblTempVendorCDR_20' ) start [2025-02-04 00:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396780', 'tblTempVendorCDR_20' ) end [2025-02-04 00:46:20] Production.INFO: ProcessCDR(1,14396780,1,1,2) [2025-02-04 00:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396780', 'tblTempUsageDetail_20' ) start [2025-02-04 00:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396780', 'tblTempUsageDetail_20' ) end [2025-02-04 00:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:46:23] Production.INFO: ==27712== Releasing lock... [2025-02-04 00:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:46:23] Production.INFO: 33 MB #Memory Used# [2025-02-04 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:47:05 [end_date_ymd] => 2025-02-04 00:47:05 [RateCDR] => 1 ) [2025-02-04 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:47:05' and `end` < '2025-02-04 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:47:18] Production.INFO: count ==527 [2025-02-04 00:47:19] Production.ERROR: pbx CDR StartTime 2025-02-03 21:47:05 - End Time 2025-02-04 00:47:05 [2025-02-04 00:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396785', 'tblTempUsageDetail_20' ) start [2025-02-04 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396785', 'tblTempUsageDetail_20' ) end [2025-02-04 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396785', 'tblTempVendorCDR_20' ) start [2025-02-04 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396785', 'tblTempVendorCDR_20' ) end [2025-02-04 00:47:19] Production.INFO: ProcessCDR(1,14396785,1,1,2) [2025-02-04 00:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396785', 'tblTempUsageDetail_20' ) start [2025-02-04 00:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396785', 'tblTempUsageDetail_20' ) end [2025-02-04 00:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:47:23] Production.INFO: ==27787== Releasing lock... [2025-02-04 00:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:47:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-04 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:48:05 [end_date_ymd] => 2025-02-04 00:48:05 [RateCDR] => 1 ) [2025-02-04 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:48:05' and `end` < '2025-02-04 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:48:18] Production.INFO: count ==445 [2025-02-04 00:48:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:48:05 - End Time 2025-02-04 00:48:05 [2025-02-04 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396790', 'tblTempUsageDetail_20' ) start [2025-02-04 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396790', 'tblTempUsageDetail_20' ) end [2025-02-04 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396790', 'tblTempVendorCDR_20' ) start [2025-02-04 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396790', 'tblTempVendorCDR_20' ) end [2025-02-04 00:48:18] Production.INFO: ProcessCDR(1,14396790,1,1,2) [2025-02-04 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396790', 'tblTempUsageDetail_20' ) start [2025-02-04 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396790', 'tblTempUsageDetail_20' ) end [2025-02-04 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:48:21] Production.INFO: ==27862== Releasing lock... [2025-02-04 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:48:21] Production.INFO: 32 MB #Memory Used# [2025-02-04 00:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:49:06 [end_date_ymd] => 2025-02-04 00:49:06 [RateCDR] => 1 ) [2025-02-04 00:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:49:06' and `end` < '2025-02-04 00:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:49:19] Production.INFO: count ==363 [2025-02-04 00:49:19] Production.ERROR: pbx CDR StartTime 2025-02-03 21:49:06 - End Time 2025-02-04 00:49:06 [2025-02-04 00:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396795', 'tblTempUsageDetail_20' ) start [2025-02-04 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396795', 'tblTempUsageDetail_20' ) end [2025-02-04 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396795', 'tblTempVendorCDR_20' ) start [2025-02-04 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396795', 'tblTempVendorCDR_20' ) end [2025-02-04 00:49:19] Production.INFO: ProcessCDR(1,14396795,1,1,2) [2025-02-04 00:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396795', 'tblTempUsageDetail_20' ) start [2025-02-04 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396795', 'tblTempUsageDetail_20' ) end [2025-02-04 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:49:22] Production.INFO: ==27942== Releasing lock... [2025-02-04 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:49:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-04 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:50:05 [end_date_ymd] => 2025-02-04 00:50:05 [RateCDR] => 1 ) [2025-02-04 00:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:50:05' and `end` < '2025-02-04 00:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:50:18] Production.INFO: count ==295 [2025-02-04 00:50:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:50:05 - End Time 2025-02-04 00:50:05 [2025-02-04 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396800', 'tblTempUsageDetail_20' ) start [2025-02-04 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396800', 'tblTempUsageDetail_20' ) end [2025-02-04 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396800', 'tblTempVendorCDR_20' ) start [2025-02-04 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396800', 'tblTempVendorCDR_20' ) end [2025-02-04 00:50:18] Production.INFO: ProcessCDR(1,14396800,1,1,2) [2025-02-04 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396800', 'tblTempUsageDetail_20' ) start [2025-02-04 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396800', 'tblTempUsageDetail_20' ) end [2025-02-04 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:50:21] Production.INFO: ==28018== Releasing lock... [2025-02-04 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:50:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:51:05 [end_date_ymd] => 2025-02-04 00:51:05 [RateCDR] => 1 ) [2025-02-04 00:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:51:05' and `end` < '2025-02-04 00:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:51:19] Production.INFO: count ==280 [2025-02-04 00:51:19] Production.ERROR: pbx CDR StartTime 2025-02-03 21:51:05 - End Time 2025-02-04 00:51:05 [2025-02-04 00:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396806', 'tblTempUsageDetail_20' ) start [2025-02-04 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396806', 'tblTempUsageDetail_20' ) end [2025-02-04 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396806', 'tblTempVendorCDR_20' ) start [2025-02-04 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396806', 'tblTempVendorCDR_20' ) end [2025-02-04 00:51:19] Production.INFO: ProcessCDR(1,14396806,1,1,2) [2025-02-04 00:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396806', 'tblTempUsageDetail_20' ) start [2025-02-04 00:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396806', 'tblTempUsageDetail_20' ) end [2025-02-04 00:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:51:23] Production.INFO: ==28096== Releasing lock... [2025-02-04 00:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:51:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-04 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:52:05 [end_date_ymd] => 2025-02-04 00:52:05 [RateCDR] => 1 ) [2025-02-04 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:52:05' and `end` < '2025-02-04 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:52:19] Production.INFO: count ==283 [2025-02-04 00:52:19] Production.ERROR: pbx CDR StartTime 2025-02-03 21:52:05 - End Time 2025-02-04 00:52:05 [2025-02-04 00:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396811', 'tblTempUsageDetail_20' ) start [2025-02-04 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396811', 'tblTempUsageDetail_20' ) end [2025-02-04 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396811', 'tblTempVendorCDR_20' ) start [2025-02-04 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396811', 'tblTempVendorCDR_20' ) end [2025-02-04 00:52:19] Production.INFO: ProcessCDR(1,14396811,1,1,2) [2025-02-04 00:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396811', 'tblTempUsageDetail_20' ) start [2025-02-04 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396811', 'tblTempUsageDetail_20' ) end [2025-02-04 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:52:22] Production.INFO: ==28171== Releasing lock... [2025-02-04 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:52:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-04 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:53:05 [end_date_ymd] => 2025-02-04 00:53:05 [RateCDR] => 1 ) [2025-02-04 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:53:05' and `end` < '2025-02-04 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:53:18] Production.INFO: count ==282 [2025-02-04 00:53:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:53:05 - End Time 2025-02-04 00:53:05 [2025-02-04 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396816', 'tblTempUsageDetail_20' ) start [2025-02-04 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396816', 'tblTempUsageDetail_20' ) end [2025-02-04 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396816', 'tblTempVendorCDR_20' ) start [2025-02-04 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396816', 'tblTempVendorCDR_20' ) end [2025-02-04 00:53:18] Production.INFO: ProcessCDR(1,14396816,1,1,2) [2025-02-04 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396816', 'tblTempUsageDetail_20' ) start [2025-02-04 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396816', 'tblTempUsageDetail_20' ) end [2025-02-04 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:53:21] Production.INFO: ==28246== Releasing lock... [2025-02-04 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:53:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-04 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:54:05 [end_date_ymd] => 2025-02-04 00:54:05 [RateCDR] => 1 ) [2025-02-04 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:54:05' and `end` < '2025-02-04 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:54:19] Production.INFO: count ==281 [2025-02-04 00:54:20] Production.ERROR: pbx CDR StartTime 2025-02-03 21:54:05 - End Time 2025-02-04 00:54:05 [2025-02-04 00:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396821', 'tblTempUsageDetail_20' ) start [2025-02-04 00:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396821', 'tblTempUsageDetail_20' ) end [2025-02-04 00:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396821', 'tblTempVendorCDR_20' ) start [2025-02-04 00:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396821', 'tblTempVendorCDR_20' ) end [2025-02-04 00:54:20] Production.INFO: ProcessCDR(1,14396821,1,1,2) [2025-02-04 00:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396821', 'tblTempUsageDetail_20' ) start [2025-02-04 00:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396821', 'tblTempUsageDetail_20' ) end [2025-02-04 00:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:54:23] Production.INFO: ==28325== Releasing lock... [2025-02-04 00:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:54:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-04 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:55:05 [end_date_ymd] => 2025-02-04 00:55:05 [RateCDR] => 1 ) [2025-02-04 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:55:05' and `end` < '2025-02-04 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:55:18] Production.INFO: count ==281 [2025-02-04 00:55:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:55:05 - End Time 2025-02-04 00:55:05 [2025-02-04 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396826', 'tblTempUsageDetail_20' ) start [2025-02-04 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396826', 'tblTempUsageDetail_20' ) end [2025-02-04 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396826', 'tblTempVendorCDR_20' ) start [2025-02-04 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396826', 'tblTempVendorCDR_20' ) end [2025-02-04 00:55:18] Production.INFO: ProcessCDR(1,14396826,1,1,2) [2025-02-04 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396826', 'tblTempUsageDetail_20' ) start [2025-02-04 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396826', 'tblTempUsageDetail_20' ) end [2025-02-04 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:55:21] Production.INFO: ==28402== Releasing lock... [2025-02-04 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:55:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-04 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:56:05 [end_date_ymd] => 2025-02-04 00:56:05 [RateCDR] => 1 ) [2025-02-04 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:56:05' and `end` < '2025-02-04 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:56:18] Production.INFO: count ==281 [2025-02-04 00:56:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:56:05 - End Time 2025-02-04 00:56:05 [2025-02-04 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396831', 'tblTempUsageDetail_20' ) start [2025-02-04 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396831', 'tblTempUsageDetail_20' ) end [2025-02-04 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396831', 'tblTempVendorCDR_20' ) start [2025-02-04 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396831', 'tblTempVendorCDR_20' ) end [2025-02-04 00:56:19] Production.INFO: ProcessCDR(1,14396831,1,1,2) [2025-02-04 00:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396831', 'tblTempUsageDetail_20' ) start [2025-02-04 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396831', 'tblTempUsageDetail_20' ) end [2025-02-04 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:56:22] Production.INFO: ==28478== Releasing lock... [2025-02-04 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:56:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-04 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:57:05 [end_date_ymd] => 2025-02-04 00:57:05 [RateCDR] => 1 ) [2025-02-04 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:57:05' and `end` < '2025-02-04 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:57:18] Production.INFO: count ==279 [2025-02-04 00:57:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:57:05 - End Time 2025-02-04 00:57:05 [2025-02-04 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396836', 'tblTempUsageDetail_20' ) start [2025-02-04 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396836', 'tblTempUsageDetail_20' ) end [2025-02-04 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396836', 'tblTempVendorCDR_20' ) start [2025-02-04 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396836', 'tblTempVendorCDR_20' ) end [2025-02-04 00:57:18] Production.INFO: ProcessCDR(1,14396836,1,1,2) [2025-02-04 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396836', 'tblTempUsageDetail_20' ) start [2025-02-04 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396836', 'tblTempUsageDetail_20' ) end [2025-02-04 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:57:21] Production.INFO: ==28555== Releasing lock... [2025-02-04 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:57:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-04 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:58:05 [end_date_ymd] => 2025-02-04 00:58:05 [RateCDR] => 1 ) [2025-02-04 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:58:05' and `end` < '2025-02-04 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:58:18] Production.INFO: count ==280 [2025-02-04 00:58:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:58:05 - End Time 2025-02-04 00:58:05 [2025-02-04 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396841', 'tblTempUsageDetail_20' ) start [2025-02-04 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396841', 'tblTempUsageDetail_20' ) end [2025-02-04 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396841', 'tblTempVendorCDR_20' ) start [2025-02-04 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396841', 'tblTempVendorCDR_20' ) end [2025-02-04 00:58:18] Production.INFO: ProcessCDR(1,14396841,1,1,2) [2025-02-04 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396841', 'tblTempUsageDetail_20' ) start [2025-02-04 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396841', 'tblTempUsageDetail_20' ) end [2025-02-04 00:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:58:22] Production.INFO: ==28629== Releasing lock... [2025-02-04 00:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:58:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-04 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 21:59:05 [end_date_ymd] => 2025-02-04 00:59:05 [RateCDR] => 1 ) [2025-02-04 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 21:59:05' and `end` < '2025-02-04 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 00:59:18] Production.INFO: count ==274 [2025-02-04 00:59:18] Production.ERROR: pbx CDR StartTime 2025-02-03 21:59:05 - End Time 2025-02-04 00:59:05 [2025-02-04 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396846', 'tblTempUsageDetail_20' ) start [2025-02-04 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396846', 'tblTempUsageDetail_20' ) end [2025-02-04 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396846', 'tblTempVendorCDR_20' ) start [2025-02-04 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396846', 'tblTempVendorCDR_20' ) end [2025-02-04 00:59:18] Production.INFO: ProcessCDR(1,14396846,1,1,2) [2025-02-04 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396846', 'tblTempUsageDetail_20' ) start [2025-02-04 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396846', 'tblTempUsageDetail_20' ) end [2025-02-04 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 00:59:21] Production.INFO: ==28704== Releasing lock... [2025-02-04 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 00:59:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-04 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:00:06 [end_date_ymd] => 2025-02-04 01:00:06 [RateCDR] => 1 ) [2025-02-04 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:00:06' and `end` < '2025-02-04 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:00:19] Production.INFO: count ==284 [2025-02-04 01:00:19] Production.ERROR: pbx CDR StartTime 2025-02-03 22:00:06 - End Time 2025-02-04 01:00:06 [2025-02-04 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396851', 'tblTempUsageDetail_20' ) start [2025-02-04 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396851', 'tblTempUsageDetail_20' ) end [2025-02-04 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396851', 'tblTempVendorCDR_20' ) start [2025-02-04 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396851', 'tblTempVendorCDR_20' ) end [2025-02-04 01:00:19] Production.INFO: ProcessCDR(1,14396851,1,1,2) [2025-02-04 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396851', 'tblTempUsageDetail_20' ) start [2025-02-04 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396851', 'tblTempUsageDetail_20' ) end [2025-02-04 01:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:00:23] Production.INFO: ==28780== Releasing lock... [2025-02-04 01:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:00:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-04 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:01:05 [end_date_ymd] => 2025-02-04 01:01:05 [RateCDR] => 1 ) [2025-02-04 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:01:05' and `end` < '2025-02-04 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:01:18] Production.INFO: count ==300 [2025-02-04 01:01:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:01:05 - End Time 2025-02-04 01:01:05 [2025-02-04 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396857', 'tblTempUsageDetail_20' ) start [2025-02-04 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396857', 'tblTempUsageDetail_20' ) end [2025-02-04 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396857', 'tblTempVendorCDR_20' ) start [2025-02-04 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396857', 'tblTempVendorCDR_20' ) end [2025-02-04 01:01:18] Production.INFO: ProcessCDR(1,14396857,1,1,2) [2025-02-04 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396857', 'tblTempUsageDetail_20' ) start [2025-02-04 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396857', 'tblTempUsageDetail_20' ) end [2025-02-04 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:01:21] Production.INFO: ==28871== Releasing lock... [2025-02-04 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:01:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-04 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:02:05 [end_date_ymd] => 2025-02-04 01:02:05 [RateCDR] => 1 ) [2025-02-04 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:02:05' and `end` < '2025-02-04 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:02:19] Production.INFO: count ==300 [2025-02-04 01:02:19] Production.ERROR: pbx CDR StartTime 2025-02-03 22:02:05 - End Time 2025-02-04 01:02:05 [2025-02-04 01:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396862', 'tblTempUsageDetail_20' ) start [2025-02-04 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396862', 'tblTempUsageDetail_20' ) end [2025-02-04 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396862', 'tblTempVendorCDR_20' ) start [2025-02-04 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396862', 'tblTempVendorCDR_20' ) end [2025-02-04 01:02:19] Production.INFO: ProcessCDR(1,14396862,1,1,2) [2025-02-04 01:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396862', 'tblTempUsageDetail_20' ) start [2025-02-04 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396862', 'tblTempUsageDetail_20' ) end [2025-02-04 01:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:02:22] Production.INFO: ==28985== Releasing lock... [2025-02-04 01:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:02:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-04 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:03:05 [end_date_ymd] => 2025-02-04 01:03:05 [RateCDR] => 1 ) [2025-02-04 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:03:05' and `end` < '2025-02-04 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:03:19] Production.INFO: count ==300 [2025-02-04 01:03:19] Production.ERROR: pbx CDR StartTime 2025-02-03 22:03:05 - End Time 2025-02-04 01:03:05 [2025-02-04 01:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396867', 'tblTempUsageDetail_20' ) start [2025-02-04 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396867', 'tblTempUsageDetail_20' ) end [2025-02-04 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396867', 'tblTempVendorCDR_20' ) start [2025-02-04 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396867', 'tblTempVendorCDR_20' ) end [2025-02-04 01:03:19] Production.INFO: ProcessCDR(1,14396867,1,1,2) [2025-02-04 01:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396867', 'tblTempUsageDetail_20' ) start [2025-02-04 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396867', 'tblTempUsageDetail_20' ) end [2025-02-04 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:03:22] Production.INFO: ==29059== Releasing lock... [2025-02-04 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:03:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-04 01:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:04:06 [end_date_ymd] => 2025-02-04 01:04:06 [RateCDR] => 1 ) [2025-02-04 01:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:04:06' and `end` < '2025-02-04 01:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:04:18] Production.INFO: count ==304 [2025-02-04 01:04:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:04:06 - End Time 2025-02-04 01:04:06 [2025-02-04 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396872', 'tblTempUsageDetail_20' ) start [2025-02-04 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396872', 'tblTempUsageDetail_20' ) end [2025-02-04 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396872', 'tblTempVendorCDR_20' ) start [2025-02-04 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396872', 'tblTempVendorCDR_20' ) end [2025-02-04 01:04:18] Production.INFO: ProcessCDR(1,14396872,1,1,2) [2025-02-04 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396872', 'tblTempUsageDetail_20' ) start [2025-02-04 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396872', 'tblTempUsageDetail_20' ) end [2025-02-04 01:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:04:22] Production.INFO: ==29133== Releasing lock... [2025-02-04 01:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:04:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-04 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:05:05 [end_date_ymd] => 2025-02-04 01:05:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 22:05:05' and `end` < '2025-02-04 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-02-04 01:05:17] Production.INFO: count ==304 [2025-02-04 01:05:17] Production.ERROR: pbx CDR StartTime 2025-02-03 22:05:05 - End Time 2025-02-04 01:05:05 [2025-02-04 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396877', 'tblTempUsageDetail_20' ) start [2025-02-04 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396877', 'tblTempUsageDetail_20' ) end [2025-02-04 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396877', 'tblTempVendorCDR_20' ) start [2025-02-04 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396877', 'tblTempVendorCDR_20' ) end [2025-02-04 01:05:17] Production.INFO: ProcessCDR(1,14396877,1,1,2) [2025-02-04 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396877', 'tblTempUsageDetail_20' ) start [2025-02-04 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396877', 'tblTempUsageDetail_20' ) end [2025-02-04 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:05:21] Production.INFO: ==29205== Releasing lock... [2025-02-04 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:05:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-04 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:06:05 [end_date_ymd] => 2025-02-04 01:06:05 [RateCDR] => 1 ) [2025-02-04 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:06:05' and `end` < '2025-02-04 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:06:19] Production.INFO: count ==305 [2025-02-04 01:06:19] Production.ERROR: pbx CDR StartTime 2025-02-03 22:06:05 - End Time 2025-02-04 01:06:05 [2025-02-04 01:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396882', 'tblTempUsageDetail_20' ) start [2025-02-04 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396882', 'tblTempUsageDetail_20' ) end [2025-02-04 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396882', 'tblTempVendorCDR_20' ) start [2025-02-04 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396882', 'tblTempVendorCDR_20' ) end [2025-02-04 01:06:19] Production.INFO: ProcessCDR(1,14396882,1,1,2) [2025-02-04 01:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396882', 'tblTempUsageDetail_20' ) start [2025-02-04 01:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396882', 'tblTempUsageDetail_20' ) end [2025-02-04 01:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:06:24] Production.INFO: ==29283== Releasing lock... [2025-02-04 01:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:06:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:07:05 [end_date_ymd] => 2025-02-04 01:07:05 [RateCDR] => 1 ) [2025-02-04 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:07:05' and `end` < '2025-02-04 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:07:17] Production.INFO: count ==305 [2025-02-04 01:07:17] Production.ERROR: pbx CDR StartTime 2025-02-03 22:07:05 - End Time 2025-02-04 01:07:05 [2025-02-04 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396887', 'tblTempUsageDetail_20' ) start [2025-02-04 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396887', 'tblTempUsageDetail_20' ) end [2025-02-04 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396887', 'tblTempVendorCDR_20' ) start [2025-02-04 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396887', 'tblTempVendorCDR_20' ) end [2025-02-04 01:07:18] Production.INFO: ProcessCDR(1,14396887,1,1,2) [2025-02-04 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396887', 'tblTempUsageDetail_20' ) start [2025-02-04 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396887', 'tblTempUsageDetail_20' ) end [2025-02-04 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:07:21] Production.INFO: ==29355== Releasing lock... [2025-02-04 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:07:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:08:05 [end_date_ymd] => 2025-02-04 01:08:05 [RateCDR] => 1 ) [2025-02-04 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:08:05' and `end` < '2025-02-04 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:08:19] Production.INFO: count ==305 [2025-02-04 01:08:19] Production.ERROR: pbx CDR StartTime 2025-02-03 22:08:05 - End Time 2025-02-04 01:08:05 [2025-02-04 01:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396892', 'tblTempUsageDetail_20' ) start [2025-02-04 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396892', 'tblTempUsageDetail_20' ) end [2025-02-04 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396892', 'tblTempVendorCDR_20' ) start [2025-02-04 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396892', 'tblTempVendorCDR_20' ) end [2025-02-04 01:08:19] Production.INFO: ProcessCDR(1,14396892,1,1,2) [2025-02-04 01:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396892', 'tblTempUsageDetail_20' ) start [2025-02-04 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396892', 'tblTempUsageDetail_20' ) end [2025-02-04 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:08:22] Production.INFO: ==29431== Releasing lock... [2025-02-04 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:08:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:09:06 [end_date_ymd] => 2025-02-04 01:09:06 [RateCDR] => 1 ) [2025-02-04 01:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:09:06' and `end` < '2025-02-04 01:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:09:19] Production.INFO: count ==305 [2025-02-04 01:09:19] Production.ERROR: pbx CDR StartTime 2025-02-03 22:09:06 - End Time 2025-02-04 01:09:06 [2025-02-04 01:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396897', 'tblTempUsageDetail_20' ) start [2025-02-04 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396897', 'tblTempUsageDetail_20' ) end [2025-02-04 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396897', 'tblTempVendorCDR_20' ) start [2025-02-04 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396897', 'tblTempVendorCDR_20' ) end [2025-02-04 01:09:19] Production.INFO: ProcessCDR(1,14396897,1,1,2) [2025-02-04 01:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396897', 'tblTempUsageDetail_20' ) start [2025-02-04 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396897', 'tblTempUsageDetail_20' ) end [2025-02-04 01:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:09:22] Production.INFO: ==29505== Releasing lock... [2025-02-04 01:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:09:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:10:06 [end_date_ymd] => 2025-02-04 01:10:06 [RateCDR] => 1 ) [2025-02-04 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:10:06' and `end` < '2025-02-04 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:10:18] Production.INFO: count ==315 [2025-02-04 01:10:19] Production.ERROR: pbx CDR StartTime 2025-02-03 22:10:06 - End Time 2025-02-04 01:10:06 [2025-02-04 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396903', 'tblTempUsageDetail_20' ) start [2025-02-04 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396903', 'tblTempUsageDetail_20' ) end [2025-02-04 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396903', 'tblTempVendorCDR_20' ) start [2025-02-04 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396903', 'tblTempVendorCDR_20' ) end [2025-02-04 01:10:19] Production.INFO: ProcessCDR(1,14396903,1,1,2) [2025-02-04 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396903', 'tblTempUsageDetail_20' ) start [2025-02-04 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396903', 'tblTempUsageDetail_20' ) end [2025-02-04 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:10:22] Production.INFO: ==29585== Releasing lock... [2025-02-04 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:10:22] Production.INFO: 31 MB #Memory Used# [2025-02-04 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:11:05 [end_date_ymd] => 2025-02-04 01:11:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 22:11:05' and `end` < '2025-02-04 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-02-04 01:11:19] Production.INFO: count ==331 [2025-02-04 01:11:19] Production.ERROR: pbx CDR StartTime 2025-02-03 22:11:05 - End Time 2025-02-04 01:11:05 [2025-02-04 01:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396908', 'tblTempUsageDetail_20' ) start [2025-02-04 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396908', 'tblTempUsageDetail_20' ) end [2025-02-04 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396908', 'tblTempVendorCDR_20' ) start [2025-02-04 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396908', 'tblTempVendorCDR_20' ) end [2025-02-04 01:11:19] Production.INFO: ProcessCDR(1,14396908,1,1,2) [2025-02-04 01:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396908', 'tblTempUsageDetail_20' ) start [2025-02-04 01:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396908', 'tblTempUsageDetail_20' ) end [2025-02-04 01:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:11:24] Production.INFO: ==29663== Releasing lock... [2025-02-04 01:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:11:24] Production.INFO: 30.5 MB #Memory Used# [2025-02-04 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:12:05 [end_date_ymd] => 2025-02-04 01:12:05 [RateCDR] => 1 ) [2025-02-04 01:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:12:05' and `end` < '2025-02-04 01:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:12:19] Production.INFO: count ==331 [2025-02-04 01:12:19] Production.ERROR: pbx CDR StartTime 2025-02-03 22:12:05 - End Time 2025-02-04 01:12:05 [2025-02-04 01:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396913', 'tblTempUsageDetail_20' ) start [2025-02-04 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396913', 'tblTempUsageDetail_20' ) end [2025-02-04 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396913', 'tblTempVendorCDR_20' ) start [2025-02-04 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396913', 'tblTempVendorCDR_20' ) end [2025-02-04 01:12:19] Production.INFO: ProcessCDR(1,14396913,1,1,2) [2025-02-04 01:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396913', 'tblTempUsageDetail_20' ) start [2025-02-04 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396913', 'tblTempUsageDetail_20' ) end [2025-02-04 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:12:22] Production.INFO: ==29740== Releasing lock... [2025-02-04 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:12:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-04 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:13:05 [end_date_ymd] => 2025-02-04 01:13:05 [RateCDR] => 1 ) [2025-02-04 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:13:05' and `end` < '2025-02-04 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:13:18] Production.INFO: count ==332 [2025-02-04 01:13:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:13:05 - End Time 2025-02-04 01:13:05 [2025-02-04 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396918', 'tblTempUsageDetail_20' ) start [2025-02-04 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396918', 'tblTempUsageDetail_20' ) end [2025-02-04 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396918', 'tblTempVendorCDR_20' ) start [2025-02-04 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396918', 'tblTempVendorCDR_20' ) end [2025-02-04 01:13:18] Production.INFO: ProcessCDR(1,14396918,1,1,2) [2025-02-04 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396918', 'tblTempUsageDetail_20' ) start [2025-02-04 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396918', 'tblTempUsageDetail_20' ) end [2025-02-04 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:13:22] Production.INFO: ==29817== Releasing lock... [2025-02-04 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:13:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:14:05 [end_date_ymd] => 2025-02-04 01:14:05 [RateCDR] => 1 ) [2025-02-04 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:14:05' and `end` < '2025-02-04 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:14:17] Production.INFO: count ==332 [2025-02-04 01:14:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:14:05 - End Time 2025-02-04 01:14:05 [2025-02-04 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396923', 'tblTempUsageDetail_20' ) start [2025-02-04 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396923', 'tblTempUsageDetail_20' ) end [2025-02-04 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396923', 'tblTempVendorCDR_20' ) start [2025-02-04 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396923', 'tblTempVendorCDR_20' ) end [2025-02-04 01:14:18] Production.INFO: ProcessCDR(1,14396923,1,1,2) [2025-02-04 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396923', 'tblTempUsageDetail_20' ) start [2025-02-04 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396923', 'tblTempUsageDetail_20' ) end [2025-02-04 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:14:21] Production.INFO: ==29900== Releasing lock... [2025-02-04 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:14:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:15:05 [end_date_ymd] => 2025-02-04 01:15:05 [RateCDR] => 1 ) [2025-02-04 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:15:05' and `end` < '2025-02-04 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:15:18] Production.INFO: count ==332 [2025-02-04 01:15:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:15:05 - End Time 2025-02-04 01:15:05 [2025-02-04 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396928', 'tblTempUsageDetail_20' ) start [2025-02-04 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396928', 'tblTempUsageDetail_20' ) end [2025-02-04 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396928', 'tblTempVendorCDR_20' ) start [2025-02-04 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396928', 'tblTempVendorCDR_20' ) end [2025-02-04 01:15:18] Production.INFO: ProcessCDR(1,14396928,1,1,2) [2025-02-04 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396928', 'tblTempUsageDetail_20' ) start [2025-02-04 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396928', 'tblTempUsageDetail_20' ) end [2025-02-04 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:15:21] Production.INFO: ==29976== Releasing lock... [2025-02-04 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:15:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:16:05 [end_date_ymd] => 2025-02-04 01:16:05 [RateCDR] => 1 ) [2025-02-04 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:16:05' and `end` < '2025-02-04 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:16:18] Production.INFO: count ==336 [2025-02-04 01:16:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:16:05 - End Time 2025-02-04 01:16:05 [2025-02-04 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396933', 'tblTempUsageDetail_20' ) start [2025-02-04 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396933', 'tblTempUsageDetail_20' ) end [2025-02-04 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396933', 'tblTempVendorCDR_20' ) start [2025-02-04 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396933', 'tblTempVendorCDR_20' ) end [2025-02-04 01:16:18] Production.INFO: ProcessCDR(1,14396933,1,1,2) [2025-02-04 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396933', 'tblTempUsageDetail_20' ) start [2025-02-04 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396933', 'tblTempUsageDetail_20' ) end [2025-02-04 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:16:22] Production.INFO: ==30052== Releasing lock... [2025-02-04 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:16:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:17:05 [end_date_ymd] => 2025-02-04 01:17:05 [RateCDR] => 1 ) [2025-02-04 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:17:05' and `end` < '2025-02-04 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:17:18] Production.INFO: count ==337 [2025-02-04 01:17:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:17:05 - End Time 2025-02-04 01:17:05 [2025-02-04 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396938', 'tblTempUsageDetail_20' ) start [2025-02-04 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396938', 'tblTempUsageDetail_20' ) end [2025-02-04 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396938', 'tblTempVendorCDR_20' ) start [2025-02-04 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396938', 'tblTempVendorCDR_20' ) end [2025-02-04 01:17:18] Production.INFO: ProcessCDR(1,14396938,1,1,2) [2025-02-04 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396938', 'tblTempUsageDetail_20' ) start [2025-02-04 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396938', 'tblTempUsageDetail_20' ) end [2025-02-04 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:17:22] Production.INFO: ==30167== Releasing lock... [2025-02-04 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:17:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:18:05 [end_date_ymd] => 2025-02-04 01:18:05 [RateCDR] => 1 ) [2025-02-04 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:18:05' and `end` < '2025-02-04 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:18:19] Production.INFO: count ==337 [2025-02-04 01:18:19] Production.ERROR: pbx CDR StartTime 2025-02-03 22:18:05 - End Time 2025-02-04 01:18:05 [2025-02-04 01:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396943', 'tblTempUsageDetail_20' ) start [2025-02-04 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396943', 'tblTempUsageDetail_20' ) end [2025-02-04 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396943', 'tblTempVendorCDR_20' ) start [2025-02-04 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396943', 'tblTempVendorCDR_20' ) end [2025-02-04 01:18:19] Production.INFO: ProcessCDR(1,14396943,1,1,2) [2025-02-04 01:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396943', 'tblTempUsageDetail_20' ) start [2025-02-04 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396943', 'tblTempUsageDetail_20' ) end [2025-02-04 01:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:18:22] Production.INFO: ==30243== Releasing lock... [2025-02-04 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:18:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:19:05 [end_date_ymd] => 2025-02-04 01:19:05 [RateCDR] => 1 ) [2025-02-04 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:19:05' and `end` < '2025-02-04 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:19:18] Production.INFO: count ==336 [2025-02-04 01:19:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:19:05 - End Time 2025-02-04 01:19:05 [2025-02-04 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396948', 'tblTempUsageDetail_20' ) start [2025-02-04 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396948', 'tblTempUsageDetail_20' ) end [2025-02-04 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396948', 'tblTempVendorCDR_20' ) start [2025-02-04 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396948', 'tblTempVendorCDR_20' ) end [2025-02-04 01:19:18] Production.INFO: ProcessCDR(1,14396948,1,1,2) [2025-02-04 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396948', 'tblTempUsageDetail_20' ) start [2025-02-04 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396948', 'tblTempUsageDetail_20' ) end [2025-02-04 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:19:21] Production.INFO: ==30318== Releasing lock... [2025-02-04 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:19:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:20:06 [end_date_ymd] => 2025-02-04 01:20:06 [RateCDR] => 1 ) [2025-02-04 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:20:06' and `end` < '2025-02-04 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:20:19] Production.INFO: count ==340 [2025-02-04 01:20:19] Production.ERROR: pbx CDR StartTime 2025-02-03 22:20:06 - End Time 2025-02-04 01:20:06 [2025-02-04 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396954', 'tblTempUsageDetail_20' ) start [2025-02-04 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396954', 'tblTempUsageDetail_20' ) end [2025-02-04 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396954', 'tblTempVendorCDR_20' ) start [2025-02-04 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396954', 'tblTempVendorCDR_20' ) end [2025-02-04 01:20:19] Production.INFO: ProcessCDR(1,14396954,1,1,2) [2025-02-04 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396954', 'tblTempUsageDetail_20' ) start [2025-02-04 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396954', 'tblTempUsageDetail_20' ) end [2025-02-04 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:20:22] Production.INFO: ==30397== Releasing lock... [2025-02-04 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:20:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:21:04 [end_date_ymd] => 2025-02-04 01:21:04 [RateCDR] => 1 ) [2025-02-04 01:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:21:04' and `end` < '2025-02-04 01:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:21:18] Production.INFO: count ==340 [2025-02-04 01:21:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:21:04 - End Time 2025-02-04 01:21:04 [2025-02-04 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396959', 'tblTempUsageDetail_20' ) start [2025-02-04 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396959', 'tblTempUsageDetail_20' ) end [2025-02-04 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396959', 'tblTempVendorCDR_20' ) start [2025-02-04 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396959', 'tblTempVendorCDR_20' ) end [2025-02-04 01:21:18] Production.INFO: ProcessCDR(1,14396959,1,1,2) [2025-02-04 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396959', 'tblTempUsageDetail_20' ) start [2025-02-04 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396959', 'tblTempUsageDetail_20' ) end [2025-02-04 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:21:21] Production.INFO: ==30477== Releasing lock... [2025-02-04 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:21:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:22:05 [end_date_ymd] => 2025-02-04 01:22:05 [RateCDR] => 1 ) [2025-02-04 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:22:05' and `end` < '2025-02-04 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:22:18] Production.INFO: count ==340 [2025-02-04 01:22:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:22:05 - End Time 2025-02-04 01:22:05 [2025-02-04 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396964', 'tblTempUsageDetail_20' ) start [2025-02-04 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396964', 'tblTempUsageDetail_20' ) end [2025-02-04 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396964', 'tblTempVendorCDR_20' ) start [2025-02-04 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396964', 'tblTempVendorCDR_20' ) end [2025-02-04 01:22:18] Production.INFO: ProcessCDR(1,14396964,1,1,2) [2025-02-04 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396964', 'tblTempUsageDetail_20' ) start [2025-02-04 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396964', 'tblTempUsageDetail_20' ) end [2025-02-04 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:22:21] Production.INFO: ==30555== Releasing lock... [2025-02-04 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:22:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:23:06 [end_date_ymd] => 2025-02-04 01:23:06 [RateCDR] => 1 ) [2025-02-04 01:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:23:06' and `end` < '2025-02-04 01:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:23:19] Production.INFO: count ==339 [2025-02-04 01:23:19] Production.ERROR: pbx CDR StartTime 2025-02-03 22:23:06 - End Time 2025-02-04 01:23:06 [2025-02-04 01:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396969', 'tblTempUsageDetail_20' ) start [2025-02-04 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396969', 'tblTempUsageDetail_20' ) end [2025-02-04 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396969', 'tblTempVendorCDR_20' ) start [2025-02-04 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396969', 'tblTempVendorCDR_20' ) end [2025-02-04 01:23:19] Production.INFO: ProcessCDR(1,14396969,1,1,2) [2025-02-04 01:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396969', 'tblTempUsageDetail_20' ) start [2025-02-04 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396969', 'tblTempUsageDetail_20' ) end [2025-02-04 01:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:23:22] Production.INFO: ==30638== Releasing lock... [2025-02-04 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:23:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:24:05 [end_date_ymd] => 2025-02-04 01:24:05 [RateCDR] => 1 ) [2025-02-04 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:24:05' and `end` < '2025-02-04 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:24:18] Production.INFO: count ==340 [2025-02-04 01:24:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:24:05 - End Time 2025-02-04 01:24:05 [2025-02-04 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396974', 'tblTempUsageDetail_20' ) start [2025-02-04 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396974', 'tblTempUsageDetail_20' ) end [2025-02-04 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396974', 'tblTempVendorCDR_20' ) start [2025-02-04 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396974', 'tblTempVendorCDR_20' ) end [2025-02-04 01:24:18] Production.INFO: ProcessCDR(1,14396974,1,1,2) [2025-02-04 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396974', 'tblTempUsageDetail_20' ) start [2025-02-04 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396974', 'tblTempUsageDetail_20' ) end [2025-02-04 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:24:22] Production.INFO: ==30714== Releasing lock... [2025-02-04 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:24:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:25:05 [end_date_ymd] => 2025-02-04 01:25:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 22:25:05' and `end` < '2025-02-04 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-02-04 01:25:18] Production.INFO: count ==340 [2025-02-04 01:25:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:25:05 - End Time 2025-02-04 01:25:05 [2025-02-04 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396979', 'tblTempUsageDetail_20' ) start [2025-02-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396979', 'tblTempUsageDetail_20' ) end [2025-02-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396979', 'tblTempVendorCDR_20' ) start [2025-02-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396979', 'tblTempVendorCDR_20' ) end [2025-02-04 01:25:18] Production.INFO: ProcessCDR(1,14396979,1,1,2) [2025-02-04 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396979', 'tblTempUsageDetail_20' ) start [2025-02-04 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396979', 'tblTempUsageDetail_20' ) end [2025-02-04 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:25:21] Production.INFO: ==30794== Releasing lock... [2025-02-04 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:25:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:26:04 [end_date_ymd] => 2025-02-04 01:26:04 [RateCDR] => 1 ) [2025-02-04 01: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-02-03 22:26:04' and `end` < '2025-02-04 01: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-02-04 01:26:17] Production.INFO: count ==340 [2025-02-04 01:26:17] Production.ERROR: pbx CDR StartTime 2025-02-03 22:26:04 - End Time 2025-02-04 01:26:04 [2025-02-04 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396984', 'tblTempUsageDetail_20' ) start [2025-02-04 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396984', 'tblTempUsageDetail_20' ) end [2025-02-04 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396984', 'tblTempVendorCDR_20' ) start [2025-02-04 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396984', 'tblTempVendorCDR_20' ) end [2025-02-04 01:26:17] Production.INFO: ProcessCDR(1,14396984,1,1,2) [2025-02-04 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396984', 'tblTempUsageDetail_20' ) start [2025-02-04 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396984', 'tblTempUsageDetail_20' ) end [2025-02-04 01:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:26:20] Production.INFO: ==30867== Releasing lock... [2025-02-04 01:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:26:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:27:05 [end_date_ymd] => 2025-02-04 01:27:05 [RateCDR] => 1 ) [2025-02-04 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:27:05' and `end` < '2025-02-04 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:27:18] Production.INFO: count ==341 [2025-02-04 01:27:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:27:05 - End Time 2025-02-04 01:27:05 [2025-02-04 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396989', 'tblTempUsageDetail_20' ) start [2025-02-04 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396989', 'tblTempUsageDetail_20' ) end [2025-02-04 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396989', 'tblTempVendorCDR_20' ) start [2025-02-04 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396989', 'tblTempVendorCDR_20' ) end [2025-02-04 01:27:18] Production.INFO: ProcessCDR(1,14396989,1,1,2) [2025-02-04 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396989', 'tblTempUsageDetail_20' ) start [2025-02-04 01:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396989', 'tblTempUsageDetail_20' ) end [2025-02-04 01:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:27:23] Production.INFO: ==30958== Releasing lock... [2025-02-04 01:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:27:23] Production.INFO: 31 MB #Memory Used# [2025-02-04 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:28:05 [end_date_ymd] => 2025-02-04 01:28:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 22:28:05' and `end` < '2025-02-04 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-02-04 01:28:17] Production.INFO: count ==338 [2025-02-04 01:28:17] Production.ERROR: pbx CDR StartTime 2025-02-03 22:28:05 - End Time 2025-02-04 01:28:05 [2025-02-04 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396994', 'tblTempUsageDetail_20' ) start [2025-02-04 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396994', 'tblTempUsageDetail_20' ) end [2025-02-04 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396994', 'tblTempVendorCDR_20' ) start [2025-02-04 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396994', 'tblTempVendorCDR_20' ) end [2025-02-04 01:28:17] Production.INFO: ProcessCDR(1,14396994,1,1,2) [2025-02-04 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396994', 'tblTempUsageDetail_20' ) start [2025-02-04 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396994', 'tblTempUsageDetail_20' ) end [2025-02-04 01:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:28:20] Production.INFO: ==31041== Releasing lock... [2025-02-04 01:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:28:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:29:05 [end_date_ymd] => 2025-02-04 01:29:05 [RateCDR] => 1 ) [2025-02-04 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:29:05' and `end` < '2025-02-04 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:29:19] Production.INFO: count ==329 [2025-02-04 01:29:19] Production.ERROR: pbx CDR StartTime 2025-02-03 22:29:05 - End Time 2025-02-04 01:29:05 [2025-02-04 01:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396999', 'tblTempUsageDetail_20' ) start [2025-02-04 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396999', 'tblTempUsageDetail_20' ) end [2025-02-04 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396999', 'tblTempVendorCDR_20' ) start [2025-02-04 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396999', 'tblTempVendorCDR_20' ) end [2025-02-04 01:29:19] Production.INFO: ProcessCDR(1,14396999,1,1,2) [2025-02-04 01:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396999', 'tblTempUsageDetail_20' ) start [2025-02-04 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396999', 'tblTempUsageDetail_20' ) end [2025-02-04 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:29:22] Production.INFO: ==31117== Releasing lock... [2025-02-04 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:29:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-04 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:30:06 [end_date_ymd] => 2025-02-04 01:30:06 [RateCDR] => 1 ) [2025-02-04 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:30:06' and `end` < '2025-02-04 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:30:20] Production.INFO: count ==332 [2025-02-04 01:30:20] Production.ERROR: pbx CDR StartTime 2025-02-03 22:30:06 - End Time 2025-02-04 01:30:06 [2025-02-04 01:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397004', 'tblTempUsageDetail_20' ) start [2025-02-04 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397004', 'tblTempUsageDetail_20' ) end [2025-02-04 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397004', 'tblTempVendorCDR_20' ) start [2025-02-04 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397004', 'tblTempVendorCDR_20' ) end [2025-02-04 01:30:20] Production.INFO: ProcessCDR(1,14397004,1,1,2) [2025-02-04 01:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397004', 'tblTempUsageDetail_20' ) start [2025-02-04 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397004', 'tblTempUsageDetail_20' ) end [2025-02-04 01:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:30:23] Production.INFO: ==31200== Releasing lock... [2025-02-04 01:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:30:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:31:05 [end_date_ymd] => 2025-02-04 01:31:05 [RateCDR] => 1 ) [2025-02-04 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:31:05' and `end` < '2025-02-04 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:31:18] Production.INFO: count ==330 [2025-02-04 01:31:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:31:05 - End Time 2025-02-04 01:31:05 [2025-02-04 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397010', 'tblTempUsageDetail_20' ) start [2025-02-04 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397010', 'tblTempUsageDetail_20' ) end [2025-02-04 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397010', 'tblTempVendorCDR_20' ) start [2025-02-04 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397010', 'tblTempVendorCDR_20' ) end [2025-02-04 01:31:18] Production.INFO: ProcessCDR(1,14397010,1,1,2) [2025-02-04 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397010', 'tblTempUsageDetail_20' ) start [2025-02-04 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397010', 'tblTempUsageDetail_20' ) end [2025-02-04 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:31:21] Production.INFO: ==31280== Releasing lock... [2025-02-04 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:31:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:32:05 [end_date_ymd] => 2025-02-04 01:32:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 22:32:05' and `end` < '2025-02-04 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-02-04 01:32:19] Production.INFO: count ==327 [2025-02-04 01:32:19] Production.ERROR: pbx CDR StartTime 2025-02-03 22:32:05 - End Time 2025-02-04 01:32:05 [2025-02-04 01:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397015', 'tblTempUsageDetail_20' ) start [2025-02-04 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397015', 'tblTempUsageDetail_20' ) end [2025-02-04 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397015', 'tblTempVendorCDR_20' ) start [2025-02-04 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397015', 'tblTempVendorCDR_20' ) end [2025-02-04 01:32:19] Production.INFO: ProcessCDR(1,14397015,1,1,2) [2025-02-04 01:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397015', 'tblTempUsageDetail_20' ) start [2025-02-04 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397015', 'tblTempUsageDetail_20' ) end [2025-02-04 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:32:22] Production.INFO: ==31357== Releasing lock... [2025-02-04 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:32:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:33:05 [end_date_ymd] => 2025-02-04 01:33:05 [RateCDR] => 1 ) [2025-02-04 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:33:05' and `end` < '2025-02-04 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:33:18] Production.INFO: count ==325 [2025-02-04 01:33:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:33:05 - End Time 2025-02-04 01:33:05 [2025-02-04 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397020', 'tblTempUsageDetail_20' ) start [2025-02-04 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397020', 'tblTempUsageDetail_20' ) end [2025-02-04 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397020', 'tblTempVendorCDR_20' ) start [2025-02-04 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397020', 'tblTempVendorCDR_20' ) end [2025-02-04 01:33:18] Production.INFO: ProcessCDR(1,14397020,1,1,2) [2025-02-04 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397020', 'tblTempUsageDetail_20' ) start [2025-02-04 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397020', 'tblTempUsageDetail_20' ) end [2025-02-04 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:33:21] Production.INFO: ==31479== Releasing lock... [2025-02-04 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:33:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-04 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:34:06 [end_date_ymd] => 2025-02-04 01:34:06 [RateCDR] => 1 ) [2025-02-04 01:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:34:06' and `end` < '2025-02-04 01:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:34:19] Production.INFO: count ==324 [2025-02-04 01:34:19] Production.ERROR: pbx CDR StartTime 2025-02-03 22:34:06 - End Time 2025-02-04 01:34:06 [2025-02-04 01:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397025', 'tblTempUsageDetail_20' ) start [2025-02-04 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397025', 'tblTempUsageDetail_20' ) end [2025-02-04 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397025', 'tblTempVendorCDR_20' ) start [2025-02-04 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397025', 'tblTempVendorCDR_20' ) end [2025-02-04 01:34:19] Production.INFO: ProcessCDR(1,14397025,1,1,2) [2025-02-04 01:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397025', 'tblTempUsageDetail_20' ) start [2025-02-04 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397025', 'tblTempUsageDetail_20' ) end [2025-02-04 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:34:22] Production.INFO: ==31560== Releasing lock... [2025-02-04 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:34:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-04 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:35:05 [end_date_ymd] => 2025-02-04 01:35:05 [RateCDR] => 1 ) [2025-02-04 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:35:05' and `end` < '2025-02-04 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:35:18] Production.INFO: count ==325 [2025-02-04 01:35:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:35:05 - End Time 2025-02-04 01:35:05 [2025-02-04 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397030', 'tblTempUsageDetail_20' ) start [2025-02-04 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397030', 'tblTempUsageDetail_20' ) end [2025-02-04 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397030', 'tblTempVendorCDR_20' ) start [2025-02-04 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397030', 'tblTempVendorCDR_20' ) end [2025-02-04 01:35:18] Production.INFO: ProcessCDR(1,14397030,1,1,2) [2025-02-04 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397030', 'tblTempUsageDetail_20' ) start [2025-02-04 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397030', 'tblTempUsageDetail_20' ) end [2025-02-04 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:35:22] Production.INFO: ==31636== Releasing lock... [2025-02-04 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:35:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-04 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:36:05 [end_date_ymd] => 2025-02-04 01:36:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 22:36:05' and `end` < '2025-02-04 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-02-04 01:36:19] Production.INFO: count ==325 [2025-02-04 01:36:19] Production.ERROR: pbx CDR StartTime 2025-02-03 22:36:05 - End Time 2025-02-04 01:36:05 [2025-02-04 01:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397035', 'tblTempUsageDetail_20' ) start [2025-02-04 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397035', 'tblTempUsageDetail_20' ) end [2025-02-04 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397035', 'tblTempVendorCDR_20' ) start [2025-02-04 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397035', 'tblTempVendorCDR_20' ) end [2025-02-04 01:36:19] Production.INFO: ProcessCDR(1,14397035,1,1,2) [2025-02-04 01:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397035', 'tblTempUsageDetail_20' ) start [2025-02-04 01:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397035', 'tblTempUsageDetail_20' ) end [2025-02-04 01:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:36:23] Production.INFO: ==31716== Releasing lock... [2025-02-04 01:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:36:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-04 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:37:05 [end_date_ymd] => 2025-02-04 01:37:05 [RateCDR] => 1 ) [2025-02-04 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:37:05' and `end` < '2025-02-04 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:37:18] Production.INFO: count ==325 [2025-02-04 01:37:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:37:05 - End Time 2025-02-04 01:37:05 [2025-02-04 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397040', 'tblTempUsageDetail_20' ) start [2025-02-04 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397040', 'tblTempUsageDetail_20' ) end [2025-02-04 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397040', 'tblTempVendorCDR_20' ) start [2025-02-04 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397040', 'tblTempVendorCDR_20' ) end [2025-02-04 01:37:18] Production.INFO: ProcessCDR(1,14397040,1,1,2) [2025-02-04 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397040', 'tblTempUsageDetail_20' ) start [2025-02-04 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397040', 'tblTempUsageDetail_20' ) end [2025-02-04 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:37:21] Production.INFO: ==31800== Releasing lock... [2025-02-04 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:37:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-04 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:38:05 [end_date_ymd] => 2025-02-04 01:38:05 [RateCDR] => 1 ) [2025-02-04 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:38:05' and `end` < '2025-02-04 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:38:19] Production.INFO: count ==325 [2025-02-04 01:38:19] Production.ERROR: pbx CDR StartTime 2025-02-03 22:38:05 - End Time 2025-02-04 01:38:05 [2025-02-04 01:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397045', 'tblTempUsageDetail_20' ) start [2025-02-04 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397045', 'tblTempUsageDetail_20' ) end [2025-02-04 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397045', 'tblTempVendorCDR_20' ) start [2025-02-04 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397045', 'tblTempVendorCDR_20' ) end [2025-02-04 01:38:19] Production.INFO: ProcessCDR(1,14397045,1,1,2) [2025-02-04 01:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397045', 'tblTempUsageDetail_20' ) start [2025-02-04 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397045', 'tblTempUsageDetail_20' ) end [2025-02-04 01:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:38:23] Production.INFO: ==31882== Releasing lock... [2025-02-04 01:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:38:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-04 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:39:05 [end_date_ymd] => 2025-02-04 01:39:05 [RateCDR] => 1 ) [2025-02-04 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:39:05' and `end` < '2025-02-04 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:39:18] Production.INFO: count ==325 [2025-02-04 01:39:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:39:05 - End Time 2025-02-04 01:39:05 [2025-02-04 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397050', 'tblTempUsageDetail_20' ) start [2025-02-04 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397050', 'tblTempUsageDetail_20' ) end [2025-02-04 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397050', 'tblTempVendorCDR_20' ) start [2025-02-04 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397050', 'tblTempVendorCDR_20' ) end [2025-02-04 01:39:18] Production.INFO: ProcessCDR(1,14397050,1,1,2) [2025-02-04 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397050', 'tblTempUsageDetail_20' ) start [2025-02-04 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397050', 'tblTempUsageDetail_20' ) end [2025-02-04 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:39:21] Production.INFO: ==31967== Releasing lock... [2025-02-04 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:39:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-04 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:40:05 [end_date_ymd] => 2025-02-04 01:40:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 22:40:05' and `end` < '2025-02-04 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-02-04 01:40:18] Production.INFO: count ==329 [2025-02-04 01:40:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:40:05 - End Time 2025-02-04 01:40:05 [2025-02-04 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397055', 'tblTempUsageDetail_20' ) start [2025-02-04 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397055', 'tblTempUsageDetail_20' ) end [2025-02-04 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397055', 'tblTempVendorCDR_20' ) start [2025-02-04 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397055', 'tblTempVendorCDR_20' ) end [2025-02-04 01:40:18] Production.INFO: ProcessCDR(1,14397055,1,1,2) [2025-02-04 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397055', 'tblTempUsageDetail_20' ) start [2025-02-04 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397055', 'tblTempUsageDetail_20' ) end [2025-02-04 01:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:40:21] Production.INFO: ==32054== Releasing lock... [2025-02-04 01:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:40:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-04 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:41:06 [end_date_ymd] => 2025-02-04 01:41:06 [RateCDR] => 1 ) [2025-02-04 01:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:41:06' and `end` < '2025-02-04 01:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:41:20] Production.INFO: count ==329 [2025-02-04 01:41:20] Production.ERROR: pbx CDR StartTime 2025-02-03 22:41:06 - End Time 2025-02-04 01:41:06 [2025-02-04 01:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397061', 'tblTempUsageDetail_20' ) start [2025-02-04 01:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397061', 'tblTempUsageDetail_20' ) end [2025-02-04 01:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397061', 'tblTempVendorCDR_20' ) start [2025-02-04 01:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397061', 'tblTempVendorCDR_20' ) end [2025-02-04 01:41:20] Production.INFO: ProcessCDR(1,14397061,1,1,2) [2025-02-04 01:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397061', 'tblTempUsageDetail_20' ) start [2025-02-04 01:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397061', 'tblTempUsageDetail_20' ) end [2025-02-04 01:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:41:23] Production.INFO: ==32139== Releasing lock... [2025-02-04 01:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:41:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-04 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:42:05 [end_date_ymd] => 2025-02-04 01:42:05 [RateCDR] => 1 ) [2025-02-04 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:42:05' and `end` < '2025-02-04 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:42:19] Production.INFO: count ==329 [2025-02-04 01:42:19] Production.ERROR: pbx CDR StartTime 2025-02-03 22:42:05 - End Time 2025-02-04 01:42:05 [2025-02-04 01:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397066', 'tblTempUsageDetail_20' ) start [2025-02-04 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397066', 'tblTempUsageDetail_20' ) end [2025-02-04 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397066', 'tblTempVendorCDR_20' ) start [2025-02-04 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397066', 'tblTempVendorCDR_20' ) end [2025-02-04 01:42:19] Production.INFO: ProcessCDR(1,14397066,1,1,2) [2025-02-04 01:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397066', 'tblTempUsageDetail_20' ) start [2025-02-04 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397066', 'tblTempUsageDetail_20' ) end [2025-02-04 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:42:22] Production.INFO: ==32221== Releasing lock... [2025-02-04 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:42:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-04 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:43:05 [end_date_ymd] => 2025-02-04 01:43:05 [RateCDR] => 1 ) [2025-02-04 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:43:05' and `end` < '2025-02-04 01:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:43:19] Production.INFO: count ==329 [2025-02-04 01:43:19] Production.ERROR: pbx CDR StartTime 2025-02-03 22:43:05 - End Time 2025-02-04 01:43:05 [2025-02-04 01:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397071', 'tblTempUsageDetail_20' ) start [2025-02-04 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397071', 'tblTempUsageDetail_20' ) end [2025-02-04 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397071', 'tblTempVendorCDR_20' ) start [2025-02-04 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397071', 'tblTempVendorCDR_20' ) end [2025-02-04 01:43:19] Production.INFO: ProcessCDR(1,14397071,1,1,2) [2025-02-04 01:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397071', 'tblTempUsageDetail_20' ) start [2025-02-04 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397071', 'tblTempUsageDetail_20' ) end [2025-02-04 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:43:22] Production.INFO: ==32304== Releasing lock... [2025-02-04 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:43:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-04 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:44:05 [end_date_ymd] => 2025-02-04 01:44:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 22:44:05' and `end` < '2025-02-04 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-02-04 01:44:19] Production.INFO: count ==329 [2025-02-04 01:44:19] Production.ERROR: pbx CDR StartTime 2025-02-03 22:44:05 - End Time 2025-02-04 01:44:05 [2025-02-04 01:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397076', 'tblTempUsageDetail_20' ) start [2025-02-04 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397076', 'tblTempUsageDetail_20' ) end [2025-02-04 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397076', 'tblTempVendorCDR_20' ) start [2025-02-04 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397076', 'tblTempVendorCDR_20' ) end [2025-02-04 01:44:19] Production.INFO: ProcessCDR(1,14397076,1,1,2) [2025-02-04 01:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397076', 'tblTempUsageDetail_20' ) start [2025-02-04 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397076', 'tblTempUsageDetail_20' ) end [2025-02-04 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:44:22] Production.INFO: ==32391== Releasing lock... [2025-02-04 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:44:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-04 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:45:05 [end_date_ymd] => 2025-02-04 01:45:05 [RateCDR] => 1 ) [2025-02-04 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:45:05' and `end` < '2025-02-04 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:45:18] Production.INFO: count ==333 [2025-02-04 01:45:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:45:05 - End Time 2025-02-04 01:45:05 [2025-02-04 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397081', 'tblTempUsageDetail_20' ) start [2025-02-04 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397081', 'tblTempUsageDetail_20' ) end [2025-02-04 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397081', 'tblTempVendorCDR_20' ) start [2025-02-04 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397081', 'tblTempVendorCDR_20' ) end [2025-02-04 01:45:18] Production.INFO: ProcessCDR(1,14397081,1,1,2) [2025-02-04 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397081', 'tblTempUsageDetail_20' ) start [2025-02-04 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397081', 'tblTempUsageDetail_20' ) end [2025-02-04 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:45:21] Production.INFO: ==32471== Releasing lock... [2025-02-04 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:45:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:46:04 [end_date_ymd] => 2025-02-04 01:46:04 [RateCDR] => 1 ) [2025-02-04 01:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:46:04' and `end` < '2025-02-04 01:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:46:18] Production.INFO: count ==333 [2025-02-04 01:46:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:46:04 - End Time 2025-02-04 01:46:04 [2025-02-04 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397086', 'tblTempUsageDetail_20' ) start [2025-02-04 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397086', 'tblTempUsageDetail_20' ) end [2025-02-04 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397086', 'tblTempVendorCDR_20' ) start [2025-02-04 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397086', 'tblTempVendorCDR_20' ) end [2025-02-04 01:46:18] Production.INFO: ProcessCDR(1,14397086,1,1,2) [2025-02-04 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397086', 'tblTempUsageDetail_20' ) start [2025-02-04 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397086', 'tblTempUsageDetail_20' ) end [2025-02-04 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:46:21] Production.INFO: ==32547== Releasing lock... [2025-02-04 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:46:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:47:05 [end_date_ymd] => 2025-02-04 01:47:05 [RateCDR] => 1 ) [2025-02-04 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:47:05' and `end` < '2025-02-04 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:47:19] Production.INFO: count ==333 [2025-02-04 01:47:19] Production.ERROR: pbx CDR StartTime 2025-02-03 22:47:05 - End Time 2025-02-04 01:47:05 [2025-02-04 01:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397091', 'tblTempUsageDetail_20' ) start [2025-02-04 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397091', 'tblTempUsageDetail_20' ) end [2025-02-04 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397091', 'tblTempVendorCDR_20' ) start [2025-02-04 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397091', 'tblTempVendorCDR_20' ) end [2025-02-04 01:47:19] Production.INFO: ProcessCDR(1,14397091,1,1,2) [2025-02-04 01:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397091', 'tblTempUsageDetail_20' ) start [2025-02-04 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397091', 'tblTempUsageDetail_20' ) end [2025-02-04 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:47:22] Production.INFO: ==32628== Releasing lock... [2025-02-04 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:47:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:48:05 [end_date_ymd] => 2025-02-04 01:48:05 [RateCDR] => 1 ) [2025-02-04 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:48:05' and `end` < '2025-02-04 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:48:18] Production.INFO: count ==333 [2025-02-04 01:48:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:48:05 - End Time 2025-02-04 01:48:05 [2025-02-04 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397096', 'tblTempUsageDetail_20' ) start [2025-02-04 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397096', 'tblTempUsageDetail_20' ) end [2025-02-04 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397096', 'tblTempVendorCDR_20' ) start [2025-02-04 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397096', 'tblTempVendorCDR_20' ) end [2025-02-04 01:48:18] Production.INFO: ProcessCDR(1,14397096,1,1,2) [2025-02-04 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397096', 'tblTempUsageDetail_20' ) start [2025-02-04 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397096', 'tblTempUsageDetail_20' ) end [2025-02-04 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:48:21] Production.INFO: ==32742== Releasing lock... [2025-02-04 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:48:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:49:04 [end_date_ymd] => 2025-02-04 01:49:04 [RateCDR] => 1 ) [2025-02-04 01:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:49:04' and `end` < '2025-02-04 01:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:49:18] Production.INFO: count ==333 [2025-02-04 01:49:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:49:04 - End Time 2025-02-04 01:49:04 [2025-02-04 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397101', 'tblTempUsageDetail_20' ) start [2025-02-04 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397101', 'tblTempUsageDetail_20' ) end [2025-02-04 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397101', 'tblTempVendorCDR_20' ) start [2025-02-04 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397101', 'tblTempVendorCDR_20' ) end [2025-02-04 01:49:18] Production.INFO: ProcessCDR(1,14397101,1,1,2) [2025-02-04 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397101', 'tblTempUsageDetail_20' ) start [2025-02-04 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397101', 'tblTempUsageDetail_20' ) end [2025-02-04 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:49:21] Production.INFO: ==375== Releasing lock... [2025-02-04 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:49:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:50:06 [end_date_ymd] => 2025-02-04 01:50:06 [RateCDR] => 1 ) [2025-02-04 01:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:50:06' and `end` < '2025-02-04 01:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:50:18] Production.INFO: count ==338 [2025-02-04 01:50:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:50:06 - End Time 2025-02-04 01:50:06 [2025-02-04 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397106', 'tblTempUsageDetail_20' ) start [2025-02-04 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397106', 'tblTempUsageDetail_20' ) end [2025-02-04 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397106', 'tblTempVendorCDR_20' ) start [2025-02-04 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397106', 'tblTempVendorCDR_20' ) end [2025-02-04 01:50:18] Production.INFO: ProcessCDR(1,14397106,1,1,2) [2025-02-04 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397106', 'tblTempUsageDetail_20' ) start [2025-02-04 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397106', 'tblTempUsageDetail_20' ) end [2025-02-04 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:50:22] Production.INFO: ==456== Releasing lock... [2025-02-04 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:50:22] Production.INFO: 31 MB #Memory Used# [2025-02-04 01:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:51:04 [end_date_ymd] => 2025-02-04 01:51:04 [RateCDR] => 1 ) [2025-02-04 01:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:51:04' and `end` < '2025-02-04 01:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:51:17] Production.INFO: count ==351 [2025-02-04 01:51:17] Production.ERROR: pbx CDR StartTime 2025-02-03 22:51:04 - End Time 2025-02-04 01:51:04 [2025-02-04 01:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397112', 'tblTempUsageDetail_20' ) start [2025-02-04 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397112', 'tblTempUsageDetail_20' ) end [2025-02-04 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397112', 'tblTempVendorCDR_20' ) start [2025-02-04 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397112', 'tblTempVendorCDR_20' ) end [2025-02-04 01:51:17] Production.INFO: ProcessCDR(1,14397112,1,1,2) [2025-02-04 01:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397112', 'tblTempUsageDetail_20' ) start [2025-02-04 01:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397112', 'tblTempUsageDetail_20' ) end [2025-02-04 01:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:51:20] Production.INFO: ==537== Releasing lock... [2025-02-04 01:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:51:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:52:05 [end_date_ymd] => 2025-02-04 01:52:05 [RateCDR] => 1 ) [2025-02-04 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:52:05' and `end` < '2025-02-04 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:52:18] Production.INFO: count ==340 [2025-02-04 01:52:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:52:05 - End Time 2025-02-04 01:52:05 [2025-02-04 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397117', 'tblTempUsageDetail_20' ) start [2025-02-04 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397117', 'tblTempUsageDetail_20' ) end [2025-02-04 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397117', 'tblTempVendorCDR_20' ) start [2025-02-04 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397117', 'tblTempVendorCDR_20' ) end [2025-02-04 01:52:18] Production.INFO: ProcessCDR(1,14397117,1,1,2) [2025-02-04 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397117', 'tblTempUsageDetail_20' ) start [2025-02-04 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397117', 'tblTempUsageDetail_20' ) end [2025-02-04 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:52:21] Production.INFO: ==621== Releasing lock... [2025-02-04 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:52:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-04 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:53:05 [end_date_ymd] => 2025-02-04 01:53:05 [RateCDR] => 1 ) [2025-02-04 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:53:05' and `end` < '2025-02-04 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:53:18] Production.INFO: count ==332 [2025-02-04 01:53:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:53:05 - End Time 2025-02-04 01:53:05 [2025-02-04 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397122', 'tblTempUsageDetail_20' ) start [2025-02-04 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397122', 'tblTempUsageDetail_20' ) end [2025-02-04 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397122', 'tblTempVendorCDR_20' ) start [2025-02-04 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397122', 'tblTempVendorCDR_20' ) end [2025-02-04 01:53:18] Production.INFO: ProcessCDR(1,14397122,1,1,2) [2025-02-04 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397122', 'tblTempUsageDetail_20' ) start [2025-02-04 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397122', 'tblTempUsageDetail_20' ) end [2025-02-04 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:53:21] Production.INFO: ==731== Releasing lock... [2025-02-04 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:53:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:54:05 [end_date_ymd] => 2025-02-04 01:54:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 22:54:05' and `end` < '2025-02-04 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-02-04 01:54:19] Production.INFO: count ==330 [2025-02-04 01:54:19] Production.ERROR: pbx CDR StartTime 2025-02-03 22:54:05 - End Time 2025-02-04 01:54:05 [2025-02-04 01:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397127', 'tblTempUsageDetail_20' ) start [2025-02-04 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397127', 'tblTempUsageDetail_20' ) end [2025-02-04 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397127', 'tblTempVendorCDR_20' ) start [2025-02-04 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397127', 'tblTempVendorCDR_20' ) end [2025-02-04 01:54:19] Production.INFO: ProcessCDR(1,14397127,1,1,2) [2025-02-04 01:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397127', 'tblTempUsageDetail_20' ) start [2025-02-04 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397127', 'tblTempUsageDetail_20' ) end [2025-02-04 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:54:22] Production.INFO: ==809== Releasing lock... [2025-02-04 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:54:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-04 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:55:05 [end_date_ymd] => 2025-02-04 01:55:05 [RateCDR] => 1 ) [2025-02-04 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:55:05' and `end` < '2025-02-04 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:55:18] Production.INFO: count ==328 [2025-02-04 01:55:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:55:05 - End Time 2025-02-04 01:55:05 [2025-02-04 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397132', 'tblTempUsageDetail_20' ) start [2025-02-04 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397132', 'tblTempUsageDetail_20' ) end [2025-02-04 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397132', 'tblTempVendorCDR_20' ) start [2025-02-04 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397132', 'tblTempVendorCDR_20' ) end [2025-02-04 01:55:18] Production.INFO: ProcessCDR(1,14397132,1,1,2) [2025-02-04 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397132', 'tblTempUsageDetail_20' ) start [2025-02-04 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397132', 'tblTempUsageDetail_20' ) end [2025-02-04 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:55:21] Production.INFO: ==889== Releasing lock... [2025-02-04 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:55:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-04 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:56:05 [end_date_ymd] => 2025-02-04 01:56:05 [RateCDR] => 1 ) [2025-02-04 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:56:05' and `end` < '2025-02-04 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:56:19] Production.INFO: count ==328 [2025-02-04 01:56:19] Production.ERROR: pbx CDR StartTime 2025-02-03 22:56:05 - End Time 2025-02-04 01:56:05 [2025-02-04 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397137', 'tblTempUsageDetail_20' ) start [2025-02-04 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397137', 'tblTempUsageDetail_20' ) end [2025-02-04 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397137', 'tblTempVendorCDR_20' ) start [2025-02-04 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397137', 'tblTempVendorCDR_20' ) end [2025-02-04 01:56:19] Production.INFO: ProcessCDR(1,14397137,1,1,2) [2025-02-04 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397137', 'tblTempUsageDetail_20' ) start [2025-02-04 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397137', 'tblTempUsageDetail_20' ) end [2025-02-04 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:56:22] Production.INFO: ==968== Releasing lock... [2025-02-04 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:56:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-04 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:57:05 [end_date_ymd] => 2025-02-04 01:57:05 [RateCDR] => 1 ) [2025-02-04 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:57:05' and `end` < '2025-02-04 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:57:18] Production.INFO: count ==327 [2025-02-04 01:57:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:57:05 - End Time 2025-02-04 01:57:05 [2025-02-04 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397142', 'tblTempUsageDetail_20' ) start [2025-02-04 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397142', 'tblTempUsageDetail_20' ) end [2025-02-04 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397142', 'tblTempVendorCDR_20' ) start [2025-02-04 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397142', 'tblTempVendorCDR_20' ) end [2025-02-04 01:57:18] Production.INFO: ProcessCDR(1,14397142,1,1,2) [2025-02-04 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397142', 'tblTempUsageDetail_20' ) start [2025-02-04 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397142', 'tblTempUsageDetail_20' ) end [2025-02-04 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:57:22] Production.INFO: ==1045== Releasing lock... [2025-02-04 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:57:22] Production.INFO: 30 MB #Memory Used# [2025-02-04 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:58:05 [end_date_ymd] => 2025-02-04 01:58:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 22:58:05' and `end` < '2025-02-04 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-02-04 01:58:18] Production.INFO: count ==326 [2025-02-04 01:58:18] Production.ERROR: pbx CDR StartTime 2025-02-03 22:58:05 - End Time 2025-02-04 01:58:05 [2025-02-04 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397147', 'tblTempUsageDetail_20' ) start [2025-02-04 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397147', 'tblTempUsageDetail_20' ) end [2025-02-04 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397147', 'tblTempVendorCDR_20' ) start [2025-02-04 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397147', 'tblTempVendorCDR_20' ) end [2025-02-04 01:58:18] Production.INFO: ProcessCDR(1,14397147,1,1,2) [2025-02-04 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397147', 'tblTempUsageDetail_20' ) start [2025-02-04 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397147', 'tblTempUsageDetail_20' ) end [2025-02-04 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:58:21] Production.INFO: ==1123== Releasing lock... [2025-02-04 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:58:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 22:59:05 [end_date_ymd] => 2025-02-04 01:59:05 [RateCDR] => 1 ) [2025-02-04 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 22:59:05' and `end` < '2025-02-04 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 01:59:19] Production.INFO: count ==326 [2025-02-04 01:59:19] Production.ERROR: pbx CDR StartTime 2025-02-03 22:59:05 - End Time 2025-02-04 01:59:05 [2025-02-04 01:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397152', 'tblTempUsageDetail_20' ) start [2025-02-04 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397152', 'tblTempUsageDetail_20' ) end [2025-02-04 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397152', 'tblTempVendorCDR_20' ) start [2025-02-04 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397152', 'tblTempVendorCDR_20' ) end [2025-02-04 01:59:19] Production.INFO: ProcessCDR(1,14397152,1,1,2) [2025-02-04 01:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 01:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397152', 'tblTempUsageDetail_20' ) start [2025-02-04 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397152', 'tblTempUsageDetail_20' ) end [2025-02-04 01:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 01:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 01:59:23] Production.INFO: ==1205== Releasing lock... [2025-02-04 01:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 01:59:23] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:00:06 [end_date_ymd] => 2025-02-04 02:00:06 [RateCDR] => 1 ) [2025-02-04 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-02-03 23:00:06' and `end` < '2025-02-04 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-02-04 02:00:19] Production.INFO: count ==335 [2025-02-04 02:00:19] Production.ERROR: pbx CDR StartTime 2025-02-03 23:00:06 - End Time 2025-02-04 02:00:06 [2025-02-04 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397158', 'tblTempUsageDetail_20' ) start [2025-02-04 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397158', 'tblTempUsageDetail_20' ) end [2025-02-04 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397158', 'tblTempVendorCDR_20' ) start [2025-02-04 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397158', 'tblTempVendorCDR_20' ) end [2025-02-04 02:00:19] Production.INFO: ProcessCDR(1,14397158,1,1,2) [2025-02-04 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397158', 'tblTempUsageDetail_20' ) start [2025-02-04 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397158', 'tblTempUsageDetail_20' ) end [2025-02-04 02:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:00:24] Production.INFO: ==1296== Releasing lock... [2025-02-04 02:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:00:24] Production.INFO: 30.25 MB #Memory Used# [2025-02-04 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:01:05 [end_date_ymd] => 2025-02-04 02:01:05 [RateCDR] => 1 ) [2025-02-04 02:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:01:05' and `end` < '2025-02-04 02:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:01:19] Production.INFO: count ==337 [2025-02-04 02:01:19] Production.ERROR: pbx CDR StartTime 2025-02-03 23:01:05 - End Time 2025-02-04 02:01:05 [2025-02-04 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397163', 'tblTempUsageDetail_20' ) start [2025-02-04 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397163', 'tblTempUsageDetail_20' ) end [2025-02-04 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397163', 'tblTempVendorCDR_20' ) start [2025-02-04 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397163', 'tblTempVendorCDR_20' ) end [2025-02-04 02:01:19] Production.INFO: ProcessCDR(1,14397163,1,1,2) [2025-02-04 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397163', 'tblTempUsageDetail_20' ) start [2025-02-04 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397163', 'tblTempUsageDetail_20' ) end [2025-02-04 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:01:22] Production.INFO: ==1474== Releasing lock... [2025-02-04 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:01:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-04 02:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:02:04 [end_date_ymd] => 2025-02-04 02:02:04 [RateCDR] => 1 ) [2025-02-04 02:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:02:04' and `end` < '2025-02-04 02:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:02:17] Production.INFO: count ==333 [2025-02-04 02:02:17] Production.ERROR: pbx CDR StartTime 2025-02-03 23:02:04 - End Time 2025-02-04 02:02:04 [2025-02-04 02:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397168', 'tblTempUsageDetail_20' ) start [2025-02-04 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397168', 'tblTempUsageDetail_20' ) end [2025-02-04 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397168', 'tblTempVendorCDR_20' ) start [2025-02-04 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397168', 'tblTempVendorCDR_20' ) end [2025-02-04 02:02:17] Production.INFO: ProcessCDR(1,14397168,1,1,2) [2025-02-04 02:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397168', 'tblTempUsageDetail_20' ) start [2025-02-04 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397168', 'tblTempUsageDetail_20' ) end [2025-02-04 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:02:21] Production.INFO: ==1584== Releasing lock... [2025-02-04 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:02:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:03:05 [end_date_ymd] => 2025-02-04 02:03:05 [RateCDR] => 1 ) [2025-02-04 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:03:05' and `end` < '2025-02-04 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:03:20] Production.INFO: count ==326 [2025-02-04 02:03:20] Production.ERROR: pbx CDR StartTime 2025-02-03 23:03:05 - End Time 2025-02-04 02:03:05 [2025-02-04 02:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397173', 'tblTempUsageDetail_20' ) start [2025-02-04 02:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397173', 'tblTempUsageDetail_20' ) end [2025-02-04 02:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397173', 'tblTempVendorCDR_20' ) start [2025-02-04 02:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397173', 'tblTempVendorCDR_20' ) end [2025-02-04 02:03:20] Production.INFO: ProcessCDR(1,14397173,1,1,2) [2025-02-04 02:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397173', 'tblTempUsageDetail_20' ) start [2025-02-04 02:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397173', 'tblTempUsageDetail_20' ) end [2025-02-04 02:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:03:23] Production.INFO: ==1655== Releasing lock... [2025-02-04 02:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:03:23] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:04:06 [end_date_ymd] => 2025-02-04 02:04:06 [RateCDR] => 1 ) [2025-02-04 02:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:04:06' and `end` < '2025-02-04 02:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:04:20] Production.INFO: count ==325 [2025-02-04 02:04:20] Production.ERROR: pbx CDR StartTime 2025-02-03 23:04:06 - End Time 2025-02-04 02:04:06 [2025-02-04 02:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397178', 'tblTempUsageDetail_20' ) start [2025-02-04 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397178', 'tblTempUsageDetail_20' ) end [2025-02-04 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397178', 'tblTempVendorCDR_20' ) start [2025-02-04 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397178', 'tblTempVendorCDR_20' ) end [2025-02-04 02:04:20] Production.INFO: ProcessCDR(1,14397178,1,1,2) [2025-02-04 02:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397178', 'tblTempUsageDetail_20' ) start [2025-02-04 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397178', 'tblTempUsageDetail_20' ) end [2025-02-04 02:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:04:23] Production.INFO: ==1772== Releasing lock... [2025-02-04 02:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:04:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-04 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:05:05 [end_date_ymd] => 2025-02-04 02:05:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 23:05:05' and `end` < '2025-02-04 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-02-04 02:05:17] Production.INFO: count ==325 [2025-02-04 02:05:17] Production.ERROR: pbx CDR StartTime 2025-02-03 23:05:05 - End Time 2025-02-04 02:05:05 [2025-02-04 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397183', 'tblTempUsageDetail_20' ) start [2025-02-04 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397183', 'tblTempUsageDetail_20' ) end [2025-02-04 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397183', 'tblTempVendorCDR_20' ) start [2025-02-04 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397183', 'tblTempVendorCDR_20' ) end [2025-02-04 02:05:17] Production.INFO: ProcessCDR(1,14397183,1,1,2) [2025-02-04 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397183', 'tblTempUsageDetail_20' ) start [2025-02-04 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397183', 'tblTempUsageDetail_20' ) end [2025-02-04 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:05:21] Production.INFO: ==1849== Releasing lock... [2025-02-04 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:05:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-04 02:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:06:06 [end_date_ymd] => 2025-02-04 02:06:06 [RateCDR] => 1 ) [2025-02-04 02:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:06:06' and `end` < '2025-02-04 02:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:06:20] Production.INFO: count ==325 [2025-02-04 02:06:20] Production.ERROR: pbx CDR StartTime 2025-02-03 23:06:06 - End Time 2025-02-04 02:06:06 [2025-02-04 02:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397188', 'tblTempUsageDetail_20' ) start [2025-02-04 02:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397188', 'tblTempUsageDetail_20' ) end [2025-02-04 02:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397188', 'tblTempVendorCDR_20' ) start [2025-02-04 02:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397188', 'tblTempVendorCDR_20' ) end [2025-02-04 02:06:20] Production.INFO: ProcessCDR(1,14397188,1,1,2) [2025-02-04 02:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397188', 'tblTempUsageDetail_20' ) start [2025-02-04 02:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397188', 'tblTempUsageDetail_20' ) end [2025-02-04 02:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:06:24] Production.INFO: ==1932== Releasing lock... [2025-02-04 02:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:06:24] Production.INFO: 30.25 MB #Memory Used# [2025-02-04 02:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:07:04 [end_date_ymd] => 2025-02-04 02:07:04 [RateCDR] => 1 ) [2025-02-04 02:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:07:04' and `end` < '2025-02-04 02:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:07:17] Production.INFO: count ==325 [2025-02-04 02:07:17] Production.ERROR: pbx CDR StartTime 2025-02-03 23:07:04 - End Time 2025-02-04 02:07:04 [2025-02-04 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397191', 'tblTempUsageDetail_20' ) start [2025-02-04 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397191', 'tblTempUsageDetail_20' ) end [2025-02-04 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397191', 'tblTempVendorCDR_20' ) start [2025-02-04 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397191', 'tblTempVendorCDR_20' ) end [2025-02-04 02:07:17] Production.INFO: ProcessCDR(1,14397191,1,1,2) [2025-02-04 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397191', 'tblTempUsageDetail_20' ) start [2025-02-04 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397191', 'tblTempUsageDetail_20' ) end [2025-02-04 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:07:21] Production.INFO: ==2080== Releasing lock... [2025-02-04 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:07:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-04 02:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:08:06 [end_date_ymd] => 2025-02-04 02:08:06 [RateCDR] => 1 ) [2025-02-04 02:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:08:06' and `end` < '2025-02-04 02:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:08:18] Production.INFO: count ==325 [2025-02-04 02:08:19] Production.ERROR: pbx CDR StartTime 2025-02-03 23:08:06 - End Time 2025-02-04 02:08:06 [2025-02-04 02:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397198', 'tblTempUsageDetail_20' ) start [2025-02-04 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397198', 'tblTempUsageDetail_20' ) end [2025-02-04 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397198', 'tblTempVendorCDR_20' ) start [2025-02-04 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397198', 'tblTempVendorCDR_20' ) end [2025-02-04 02:08:19] Production.INFO: ProcessCDR(1,14397198,1,1,2) [2025-02-04 02:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397198', 'tblTempUsageDetail_20' ) start [2025-02-04 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397198', 'tblTempUsageDetail_20' ) end [2025-02-04 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:08:22] Production.INFO: ==2158== Releasing lock... [2025-02-04 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:08:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-04 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:09:05 [end_date_ymd] => 2025-02-04 02:09:05 [RateCDR] => 1 ) [2025-02-04 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:09:05' and `end` < '2025-02-04 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:09:18] Production.INFO: count ==325 [2025-02-04 02:09:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:09:05 - End Time 2025-02-04 02:09:05 [2025-02-04 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397203', 'tblTempUsageDetail_20' ) start [2025-02-04 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397203', 'tblTempUsageDetail_20' ) end [2025-02-04 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397203', 'tblTempVendorCDR_20' ) start [2025-02-04 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397203', 'tblTempVendorCDR_20' ) end [2025-02-04 02:09:18] Production.INFO: ProcessCDR(1,14397203,1,1,2) [2025-02-04 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397203', 'tblTempUsageDetail_20' ) start [2025-02-04 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397203', 'tblTempUsageDetail_20' ) end [2025-02-04 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:09:21] Production.INFO: ==2232== Releasing lock... [2025-02-04 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:09:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-04 02:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:10:05 [end_date_ymd] => 2025-02-04 02:10:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 23:10:05' and `end` < '2025-02-04 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-02-04 02:10:18] Production.INFO: count ==329 [2025-02-04 02:10:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:10:05 - End Time 2025-02-04 02:10:05 [2025-02-04 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397207', 'tblTempUsageDetail_20' ) start [2025-02-04 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397207', 'tblTempUsageDetail_20' ) end [2025-02-04 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397207', 'tblTempVendorCDR_20' ) start [2025-02-04 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397207', 'tblTempVendorCDR_20' ) end [2025-02-04 02:10:18] Production.INFO: ProcessCDR(1,14397207,1,1,2) [2025-02-04 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397207', 'tblTempUsageDetail_20' ) start [2025-02-04 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397207', 'tblTempUsageDetail_20' ) end [2025-02-04 02:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:10:21] Production.INFO: ==2313== Releasing lock... [2025-02-04 02:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:10:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:11:06 [end_date_ymd] => 2025-02-04 02:11:06 [RateCDR] => 1 ) [2025-02-04 02:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:11:06' and `end` < '2025-02-04 02:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:11:18] Production.INFO: count ==327 [2025-02-04 02:11:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:11:06 - End Time 2025-02-04 02:11:06 [2025-02-04 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397214', 'tblTempUsageDetail_20' ) start [2025-02-04 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397214', 'tblTempUsageDetail_20' ) end [2025-02-04 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397214', 'tblTempVendorCDR_20' ) start [2025-02-04 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397214', 'tblTempVendorCDR_20' ) end [2025-02-04 02:11:18] Production.INFO: ProcessCDR(1,14397214,1,1,2) [2025-02-04 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397214', 'tblTempUsageDetail_20' ) start [2025-02-04 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397214', 'tblTempUsageDetail_20' ) end [2025-02-04 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:11:21] Production.INFO: ==2397== Releasing lock... [2025-02-04 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:11:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:12:05 [end_date_ymd] => 2025-02-04 02:12:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 23:12:05' and `end` < '2025-02-04 02:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:12:18] Production.INFO: count ==327 [2025-02-04 02:12:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:12:05 - End Time 2025-02-04 02:12:05 [2025-02-04 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397219', 'tblTempUsageDetail_20' ) start [2025-02-04 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397219', 'tblTempUsageDetail_20' ) end [2025-02-04 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397219', 'tblTempVendorCDR_20' ) start [2025-02-04 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397219', 'tblTempVendorCDR_20' ) end [2025-02-04 02:12:18] Production.INFO: ProcessCDR(1,14397219,1,1,2) [2025-02-04 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397219', 'tblTempUsageDetail_20' ) start [2025-02-04 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397219', 'tblTempUsageDetail_20' ) end [2025-02-04 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:12:21] Production.INFO: ==2475== Releasing lock... [2025-02-04 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:12:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:13:05 [end_date_ymd] => 2025-02-04 02:13:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 23:13:05' and `end` < '2025-02-04 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-02-04 02:13:18] Production.INFO: count ==327 [2025-02-04 02:13:19] Production.ERROR: pbx CDR StartTime 2025-02-03 23:13:05 - End Time 2025-02-04 02:13:05 [2025-02-04 02:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397224', 'tblTempUsageDetail_20' ) start [2025-02-04 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397224', 'tblTempUsageDetail_20' ) end [2025-02-04 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397224', 'tblTempVendorCDR_20' ) start [2025-02-04 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397224', 'tblTempVendorCDR_20' ) end [2025-02-04 02:13:19] Production.INFO: ProcessCDR(1,14397224,1,1,2) [2025-02-04 02:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397224', 'tblTempUsageDetail_20' ) start [2025-02-04 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397224', 'tblTempUsageDetail_20' ) end [2025-02-04 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:13:22] Production.INFO: ==2559== Releasing lock... [2025-02-04 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:13:22] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:14:05 [end_date_ymd] => 2025-02-04 02:14:05 [RateCDR] => 1 ) [2025-02-04 02:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:14:05' and `end` < '2025-02-04 02:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:14:18] Production.INFO: count ==327 [2025-02-04 02:14:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:14:05 - End Time 2025-02-04 02:14:05 [2025-02-04 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397229', 'tblTempUsageDetail_20' ) start [2025-02-04 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397229', 'tblTempUsageDetail_20' ) end [2025-02-04 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397229', 'tblTempVendorCDR_20' ) start [2025-02-04 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397229', 'tblTempVendorCDR_20' ) end [2025-02-04 02:14:18] Production.INFO: ProcessCDR(1,14397229,1,1,2) [2025-02-04 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397229', 'tblTempUsageDetail_20' ) start [2025-02-04 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397229', 'tblTempUsageDetail_20' ) end [2025-02-04 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:14:21] Production.INFO: ==2634== Releasing lock... [2025-02-04 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:14:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:15:05 [end_date_ymd] => 2025-02-04 02:15:05 [RateCDR] => 1 ) [2025-02-04 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:15:05' and `end` < '2025-02-04 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:15:18] Production.INFO: count ==325 [2025-02-04 02:15:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:15:05 - End Time 2025-02-04 02:15:05 [2025-02-04 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397234', 'tblTempUsageDetail_20' ) start [2025-02-04 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397234', 'tblTempUsageDetail_20' ) end [2025-02-04 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397234', 'tblTempVendorCDR_20' ) start [2025-02-04 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397234', 'tblTempVendorCDR_20' ) end [2025-02-04 02:15:18] Production.INFO: ProcessCDR(1,14397234,1,1,2) [2025-02-04 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397234', 'tblTempUsageDetail_20' ) start [2025-02-04 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397234', 'tblTempUsageDetail_20' ) end [2025-02-04 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:15:21] Production.INFO: ==2713== Releasing lock... [2025-02-04 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:15:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:16:05 [end_date_ymd] => 2025-02-04 02:16:05 [RateCDR] => 1 ) [2025-02-04 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:16:05' and `end` < '2025-02-04 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:16:19] Production.INFO: count ==325 [2025-02-04 02:16:19] Production.ERROR: pbx CDR StartTime 2025-02-03 23:16:05 - End Time 2025-02-04 02:16:05 [2025-02-04 02:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397239', 'tblTempUsageDetail_20' ) start [2025-02-04 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397239', 'tblTempUsageDetail_20' ) end [2025-02-04 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397239', 'tblTempVendorCDR_20' ) start [2025-02-04 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397239', 'tblTempVendorCDR_20' ) end [2025-02-04 02:16:19] Production.INFO: ProcessCDR(1,14397239,1,1,2) [2025-02-04 02:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397239', 'tblTempUsageDetail_20' ) start [2025-02-04 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397239', 'tblTempUsageDetail_20' ) end [2025-02-04 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:16:22] Production.INFO: ==2793== Releasing lock... [2025-02-04 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:16:22] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:17:05 [end_date_ymd] => 2025-02-04 02:17:05 [RateCDR] => 1 ) [2025-02-04 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:17:05' and `end` < '2025-02-04 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:17:18] Production.INFO: count ==321 [2025-02-04 02:17:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:17:05 - End Time 2025-02-04 02:17:05 [2025-02-04 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397244', 'tblTempUsageDetail_20' ) start [2025-02-04 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397244', 'tblTempUsageDetail_20' ) end [2025-02-04 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397244', 'tblTempVendorCDR_20' ) start [2025-02-04 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397244', 'tblTempVendorCDR_20' ) end [2025-02-04 02:17:18] Production.INFO: ProcessCDR(1,14397244,1,1,2) [2025-02-04 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397244', 'tblTempUsageDetail_20' ) start [2025-02-04 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397244', 'tblTempUsageDetail_20' ) end [2025-02-04 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:17:22] Production.INFO: ==2866== Releasing lock... [2025-02-04 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:17:22] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:18:05 [end_date_ymd] => 2025-02-04 02:18:05 [RateCDR] => 1 ) [2025-02-04 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:18:05' and `end` < '2025-02-04 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:18:18] Production.INFO: count ==319 [2025-02-04 02:18:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:18:05 - End Time 2025-02-04 02:18:05 [2025-02-04 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397249', 'tblTempUsageDetail_20' ) start [2025-02-04 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397249', 'tblTempUsageDetail_20' ) end [2025-02-04 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397249', 'tblTempVendorCDR_20' ) start [2025-02-04 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397249', 'tblTempVendorCDR_20' ) end [2025-02-04 02:18:18] Production.INFO: ProcessCDR(1,14397249,1,1,2) [2025-02-04 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397249', 'tblTempUsageDetail_20' ) start [2025-02-04 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397249', 'tblTempUsageDetail_20' ) end [2025-02-04 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:18:21] Production.INFO: ==2950== Releasing lock... [2025-02-04 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:18:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-04 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:19:05 [end_date_ymd] => 2025-02-04 02:19:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 23:19:05' and `end` < '2025-02-04 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-02-04 02:19:18] Production.INFO: count ==319 [2025-02-04 02:19:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:19:05 - End Time 2025-02-04 02:19:05 [2025-02-04 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397254', 'tblTempUsageDetail_20' ) start [2025-02-04 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397254', 'tblTempUsageDetail_20' ) end [2025-02-04 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397254', 'tblTempVendorCDR_20' ) start [2025-02-04 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397254', 'tblTempVendorCDR_20' ) end [2025-02-04 02:19:18] Production.INFO: ProcessCDR(1,14397254,1,1,2) [2025-02-04 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397254', 'tblTempUsageDetail_20' ) start [2025-02-04 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397254', 'tblTempUsageDetail_20' ) end [2025-02-04 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:19:21] Production.INFO: ==3067== Releasing lock... [2025-02-04 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:19:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-04 02:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:20:05 [end_date_ymd] => 2025-02-04 02:20:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 23:20:05' and `end` < '2025-02-04 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-02-04 02:20:18] Production.INFO: count ==323 [2025-02-04 02:20:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:20:05 - End Time 2025-02-04 02:20:05 [2025-02-04 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397259', 'tblTempUsageDetail_20' ) start [2025-02-04 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397259', 'tblTempUsageDetail_20' ) end [2025-02-04 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397259', 'tblTempVendorCDR_20' ) start [2025-02-04 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397259', 'tblTempVendorCDR_20' ) end [2025-02-04 02:20:18] Production.INFO: ProcessCDR(1,14397259,1,1,2) [2025-02-04 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397259', 'tblTempUsageDetail_20' ) start [2025-02-04 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397259', 'tblTempUsageDetail_20' ) end [2025-02-04 02:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:20:21] Production.INFO: ==3144== Releasing lock... [2025-02-04 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:20:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:21:05 [end_date_ymd] => 2025-02-04 02:21:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 23:21:05' and `end` < '2025-02-04 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-02-04 02:21:18] Production.INFO: count ==323 [2025-02-04 02:21:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:21:05 - End Time 2025-02-04 02:21:05 [2025-02-04 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397265', 'tblTempUsageDetail_20' ) start [2025-02-04 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397265', 'tblTempUsageDetail_20' ) end [2025-02-04 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397265', 'tblTempVendorCDR_20' ) start [2025-02-04 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397265', 'tblTempVendorCDR_20' ) end [2025-02-04 02:21:18] Production.INFO: ProcessCDR(1,14397265,1,1,2) [2025-02-04 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397265', 'tblTempUsageDetail_20' ) start [2025-02-04 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397265', 'tblTempUsageDetail_20' ) end [2025-02-04 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:21:21] Production.INFO: ==3223== Releasing lock... [2025-02-04 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:21:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:22:05 [end_date_ymd] => 2025-02-04 02:22:05 [RateCDR] => 1 ) [2025-02-04 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:22:05' and `end` < '2025-02-04 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:22:18] Production.INFO: count ==323 [2025-02-04 02:22:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:22:05 - End Time 2025-02-04 02:22:05 [2025-02-04 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397270', 'tblTempUsageDetail_20' ) start [2025-02-04 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397270', 'tblTempUsageDetail_20' ) end [2025-02-04 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397270', 'tblTempVendorCDR_20' ) start [2025-02-04 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397270', 'tblTempVendorCDR_20' ) end [2025-02-04 02:22:18] Production.INFO: ProcessCDR(1,14397270,1,1,2) [2025-02-04 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397270', 'tblTempUsageDetail_20' ) start [2025-02-04 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397270', 'tblTempUsageDetail_20' ) end [2025-02-04 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:22:21] Production.INFO: ==3299== Releasing lock... [2025-02-04 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:22:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:23:05 [end_date_ymd] => 2025-02-04 02:23:05 [RateCDR] => 1 ) [2025-02-04 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:23:05' and `end` < '2025-02-04 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:23:19] Production.INFO: count ==323 [2025-02-04 02:23:19] Production.ERROR: pbx CDR StartTime 2025-02-03 23:23:05 - End Time 2025-02-04 02:23:05 [2025-02-04 02:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397275', 'tblTempUsageDetail_20' ) start [2025-02-04 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397275', 'tblTempUsageDetail_20' ) end [2025-02-04 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397275', 'tblTempVendorCDR_20' ) start [2025-02-04 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397275', 'tblTempVendorCDR_20' ) end [2025-02-04 02:23:19] Production.INFO: ProcessCDR(1,14397275,1,1,2) [2025-02-04 02:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397275', 'tblTempUsageDetail_20' ) start [2025-02-04 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397275', 'tblTempUsageDetail_20' ) end [2025-02-04 02:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:23:22] Production.INFO: ==3381== Releasing lock... [2025-02-04 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:23:22] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:24:05 [end_date_ymd] => 2025-02-04 02:24:05 [RateCDR] => 1 ) [2025-02-04 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:24:05' and `end` < '2025-02-04 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:24:18] Production.INFO: count ==323 [2025-02-04 02:24:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:24:05 - End Time 2025-02-04 02:24:05 [2025-02-04 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397280', 'tblTempUsageDetail_20' ) start [2025-02-04 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397280', 'tblTempUsageDetail_20' ) end [2025-02-04 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397280', 'tblTempVendorCDR_20' ) start [2025-02-04 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397280', 'tblTempVendorCDR_20' ) end [2025-02-04 02:24:18] Production.INFO: ProcessCDR(1,14397280,1,1,2) [2025-02-04 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397280', 'tblTempUsageDetail_20' ) start [2025-02-04 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397280', 'tblTempUsageDetail_20' ) end [2025-02-04 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:24:21] Production.INFO: ==3455== Releasing lock... [2025-02-04 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:24:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:25:06 [end_date_ymd] => 2025-02-04 02:25:06 [RateCDR] => 1 ) [2025-02-04 02:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:25:06' and `end` < '2025-02-04 02:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:25:19] Production.INFO: count ==323 [2025-02-04 02:25:19] Production.ERROR: pbx CDR StartTime 2025-02-03 23:25:06 - End Time 2025-02-04 02:25:06 [2025-02-04 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397285', 'tblTempUsageDetail_20' ) start [2025-02-04 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397285', 'tblTempUsageDetail_20' ) end [2025-02-04 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397285', 'tblTempVendorCDR_20' ) start [2025-02-04 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397285', 'tblTempVendorCDR_20' ) end [2025-02-04 02:25:19] Production.INFO: ProcessCDR(1,14397285,1,1,2) [2025-02-04 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397285', 'tblTempUsageDetail_20' ) start [2025-02-04 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397285', 'tblTempUsageDetail_20' ) end [2025-02-04 02:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:25:22] Production.INFO: ==3534== Releasing lock... [2025-02-04 02:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:25:22] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:26:05 [end_date_ymd] => 2025-02-04 02:26:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 23:26:05' and `end` < '2025-02-04 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-02-04 02:26:18] Production.INFO: count ==322 [2025-02-04 02:26:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:26:05 - End Time 2025-02-04 02:26:05 [2025-02-04 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397290', 'tblTempUsageDetail_20' ) start [2025-02-04 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397290', 'tblTempUsageDetail_20' ) end [2025-02-04 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397290', 'tblTempVendorCDR_20' ) start [2025-02-04 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397290', 'tblTempVendorCDR_20' ) end [2025-02-04 02:26:18] Production.INFO: ProcessCDR(1,14397290,1,1,2) [2025-02-04 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397290', 'tblTempUsageDetail_20' ) start [2025-02-04 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397290', 'tblTempUsageDetail_20' ) end [2025-02-04 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:26:21] Production.INFO: ==3615== Releasing lock... [2025-02-04 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:26:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:27:05 [end_date_ymd] => 2025-02-04 02:27:05 [RateCDR] => 1 ) [2025-02-04 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:27:05' and `end` < '2025-02-04 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:27:18] Production.INFO: count ==322 [2025-02-04 02:27:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:27:05 - End Time 2025-02-04 02:27:05 [2025-02-04 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397295', 'tblTempUsageDetail_20' ) start [2025-02-04 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397295', 'tblTempUsageDetail_20' ) end [2025-02-04 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397295', 'tblTempVendorCDR_20' ) start [2025-02-04 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397295', 'tblTempVendorCDR_20' ) end [2025-02-04 02:27:18] Production.INFO: ProcessCDR(1,14397295,1,1,2) [2025-02-04 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397295', 'tblTempUsageDetail_20' ) start [2025-02-04 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397295', 'tblTempUsageDetail_20' ) end [2025-02-04 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:27:21] Production.INFO: ==3693== Releasing lock... [2025-02-04 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:27:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:28:05 [end_date_ymd] => 2025-02-04 02:28:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 23:28:05' and `end` < '2025-02-04 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-02-04 02:28:18] Production.INFO: count ==322 [2025-02-04 02:28:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:28:05 - End Time 2025-02-04 02:28:05 [2025-02-04 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397300', 'tblTempUsageDetail_20' ) start [2025-02-04 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397300', 'tblTempUsageDetail_20' ) end [2025-02-04 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397300', 'tblTempVendorCDR_20' ) start [2025-02-04 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397300', 'tblTempVendorCDR_20' ) end [2025-02-04 02:28:18] Production.INFO: ProcessCDR(1,14397300,1,1,2) [2025-02-04 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397300', 'tblTempUsageDetail_20' ) start [2025-02-04 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397300', 'tblTempUsageDetail_20' ) end [2025-02-04 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:28:21] Production.INFO: ==3771== Releasing lock... [2025-02-04 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:28:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:29:04 [end_date_ymd] => 2025-02-04 02:29:04 [RateCDR] => 1 ) [2025-02-04 02:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:29:04' and `end` < '2025-02-04 02:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:29:18] Production.INFO: count ==322 [2025-02-04 02:29:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:29:04 - End Time 2025-02-04 02:29:04 [2025-02-04 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397305', 'tblTempUsageDetail_20' ) start [2025-02-04 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397305', 'tblTempUsageDetail_20' ) end [2025-02-04 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397305', 'tblTempVendorCDR_20' ) start [2025-02-04 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397305', 'tblTempVendorCDR_20' ) end [2025-02-04 02:29:18] Production.INFO: ProcessCDR(1,14397305,1,1,2) [2025-02-04 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397305', 'tblTempUsageDetail_20' ) start [2025-02-04 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397305', 'tblTempUsageDetail_20' ) end [2025-02-04 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:29:21] Production.INFO: ==3851== Releasing lock... [2025-02-04 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:29:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:30:06 [end_date_ymd] => 2025-02-04 02:30:06 [RateCDR] => 1 ) [2025-02-04 02:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:30:06' and `end` < '2025-02-04 02:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:30:19] Production.INFO: count ==324 [2025-02-04 02:30:19] Production.ERROR: pbx CDR StartTime 2025-02-03 23:30:06 - End Time 2025-02-04 02:30:06 [2025-02-04 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397310', 'tblTempUsageDetail_20' ) start [2025-02-04 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397310', 'tblTempUsageDetail_20' ) end [2025-02-04 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397310', 'tblTempVendorCDR_20' ) start [2025-02-04 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397310', 'tblTempVendorCDR_20' ) end [2025-02-04 02:30:19] Production.INFO: ProcessCDR(1,14397310,1,1,2) [2025-02-04 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397310', 'tblTempUsageDetail_20' ) start [2025-02-04 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397310', 'tblTempUsageDetail_20' ) end [2025-02-04 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:30:22] Production.INFO: ==3927== Releasing lock... [2025-02-04 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:30:22] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:31:04 [end_date_ymd] => 2025-02-04 02:31:04 [RateCDR] => 1 ) [2025-02-04 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-02-03 23:31:04' and `end` < '2025-02-04 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-02-04 02:31:17] Production.INFO: count ==325 [2025-02-04 02:31:17] Production.ERROR: pbx CDR StartTime 2025-02-03 23:31:04 - End Time 2025-02-04 02:31:04 [2025-02-04 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397316', 'tblTempUsageDetail_20' ) start [2025-02-04 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397316', 'tblTempUsageDetail_20' ) end [2025-02-04 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397316', 'tblTempVendorCDR_20' ) start [2025-02-04 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397316', 'tblTempVendorCDR_20' ) end [2025-02-04 02:31:17] Production.INFO: ProcessCDR(1,14397316,1,1,2) [2025-02-04 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397316', 'tblTempUsageDetail_20' ) start [2025-02-04 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397316', 'tblTempUsageDetail_20' ) end [2025-02-04 02:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:31:20] Production.INFO: ==4027== Releasing lock... [2025-02-04 02:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:31:20] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:32:05 [end_date_ymd] => 2025-02-04 02:32:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 23:32:05' and `end` < '2025-02-04 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-02-04 02:32:18] Production.INFO: count ==320 [2025-02-04 02:32:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:32:05 - End Time 2025-02-04 02:32:05 [2025-02-04 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397321', 'tblTempUsageDetail_20' ) start [2025-02-04 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397321', 'tblTempUsageDetail_20' ) end [2025-02-04 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397321', 'tblTempVendorCDR_20' ) start [2025-02-04 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397321', 'tblTempVendorCDR_20' ) end [2025-02-04 02:32:18] Production.INFO: ProcessCDR(1,14397321,1,1,2) [2025-02-04 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397321', 'tblTempUsageDetail_20' ) start [2025-02-04 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397321', 'tblTempUsageDetail_20' ) end [2025-02-04 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:32:21] Production.INFO: ==4137== Releasing lock... [2025-02-04 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:32:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:33:05 [end_date_ymd] => 2025-02-04 02:33:05 [RateCDR] => 1 ) [2025-02-04 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:33:05' and `end` < '2025-02-04 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:33:18] Production.INFO: count ==320 [2025-02-04 02:33:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:33:05 - End Time 2025-02-04 02:33:05 [2025-02-04 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397326', 'tblTempUsageDetail_20' ) start [2025-02-04 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397326', 'tblTempUsageDetail_20' ) end [2025-02-04 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397326', 'tblTempVendorCDR_20' ) start [2025-02-04 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397326', 'tblTempVendorCDR_20' ) end [2025-02-04 02:33:18] Production.INFO: ProcessCDR(1,14397326,1,1,2) [2025-02-04 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397326', 'tblTempUsageDetail_20' ) start [2025-02-04 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397326', 'tblTempUsageDetail_20' ) end [2025-02-04 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:33:21] Production.INFO: ==4246== Releasing lock... [2025-02-04 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:33:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:34:05 [end_date_ymd] => 2025-02-04 02:34:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 23:34:05' and `end` < '2025-02-04 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-02-04 02:34:18] Production.INFO: count ==320 [2025-02-04 02:34:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:34:05 - End Time 2025-02-04 02:34:05 [2025-02-04 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397331', 'tblTempUsageDetail_20' ) start [2025-02-04 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397331', 'tblTempUsageDetail_20' ) end [2025-02-04 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397331', 'tblTempVendorCDR_20' ) start [2025-02-04 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397331', 'tblTempVendorCDR_20' ) end [2025-02-04 02:34:18] Production.INFO: ProcessCDR(1,14397331,1,1,2) [2025-02-04 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397331', 'tblTempUsageDetail_20' ) start [2025-02-04 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397331', 'tblTempUsageDetail_20' ) end [2025-02-04 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:34:21] Production.INFO: ==4365== Releasing lock... [2025-02-04 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:34:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:35:05 [end_date_ymd] => 2025-02-04 02:35:05 [RateCDR] => 1 ) [2025-02-04 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:35:05' and `end` < '2025-02-04 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:35:18] Production.INFO: count ==320 [2025-02-04 02:35:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:35:05 - End Time 2025-02-04 02:35:05 [2025-02-04 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397336', 'tblTempUsageDetail_20' ) start [2025-02-04 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397336', 'tblTempUsageDetail_20' ) end [2025-02-04 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397336', 'tblTempVendorCDR_20' ) start [2025-02-04 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397336', 'tblTempVendorCDR_20' ) end [2025-02-04 02:35:18] Production.INFO: ProcessCDR(1,14397336,1,1,2) [2025-02-04 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397336', 'tblTempUsageDetail_20' ) start [2025-02-04 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397336', 'tblTempUsageDetail_20' ) end [2025-02-04 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:35:21] Production.INFO: ==4508== Releasing lock... [2025-02-04 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:35:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:36:05 [end_date_ymd] => 2025-02-04 02:36:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 23:36:05' and `end` < '2025-02-04 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-02-04 02:36:18] Production.INFO: count ==320 [2025-02-04 02:36:19] Production.ERROR: pbx CDR StartTime 2025-02-03 23:36:05 - End Time 2025-02-04 02:36:05 [2025-02-04 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397341', 'tblTempUsageDetail_20' ) start [2025-02-04 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397341', 'tblTempUsageDetail_20' ) end [2025-02-04 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397341', 'tblTempVendorCDR_20' ) start [2025-02-04 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397341', 'tblTempVendorCDR_20' ) end [2025-02-04 02:36:19] Production.INFO: ProcessCDR(1,14397341,1,1,2) [2025-02-04 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397341', 'tblTempUsageDetail_20' ) start [2025-02-04 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397341', 'tblTempUsageDetail_20' ) end [2025-02-04 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:36:22] Production.INFO: ==4625== Releasing lock... [2025-02-04 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:36:22] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:37:05 [end_date_ymd] => 2025-02-04 02:37:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 23:37:05' and `end` < '2025-02-04 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-02-04 02:37:18] Production.INFO: count ==320 [2025-02-04 02:37:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:37:05 - End Time 2025-02-04 02:37:05 [2025-02-04 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397346', 'tblTempUsageDetail_20' ) start [2025-02-04 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397346', 'tblTempUsageDetail_20' ) end [2025-02-04 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397346', 'tblTempVendorCDR_20' ) start [2025-02-04 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397346', 'tblTempVendorCDR_20' ) end [2025-02-04 02:37:18] Production.INFO: ProcessCDR(1,14397346,1,1,2) [2025-02-04 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397346', 'tblTempUsageDetail_20' ) start [2025-02-04 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397346', 'tblTempUsageDetail_20' ) end [2025-02-04 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:37:21] Production.INFO: ==4736== Releasing lock... [2025-02-04 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:37:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:38:05 [end_date_ymd] => 2025-02-04 02:38:05 [RateCDR] => 1 ) [2025-02-04 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:38:05' and `end` < '2025-02-04 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:38:18] Production.INFO: count ==320 [2025-02-04 02:38:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:38:05 - End Time 2025-02-04 02:38:05 [2025-02-04 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397351', 'tblTempUsageDetail_20' ) start [2025-02-04 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397351', 'tblTempUsageDetail_20' ) end [2025-02-04 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397351', 'tblTempVendorCDR_20' ) start [2025-02-04 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397351', 'tblTempVendorCDR_20' ) end [2025-02-04 02:38:18] Production.INFO: ProcessCDR(1,14397351,1,1,2) [2025-02-04 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397351', 'tblTempUsageDetail_20' ) start [2025-02-04 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397351', 'tblTempUsageDetail_20' ) end [2025-02-04 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:38:21] Production.INFO: ==4841== Releasing lock... [2025-02-04 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:38:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:39:05 [end_date_ymd] => 2025-02-04 02:39:05 [RateCDR] => 1 ) [2025-02-04 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:39:05' and `end` < '2025-02-04 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:39:18] Production.INFO: count ==319 [2025-02-04 02:39:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:39:05 - End Time 2025-02-04 02:39:05 [2025-02-04 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397356', 'tblTempUsageDetail_20' ) start [2025-02-04 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397356', 'tblTempUsageDetail_20' ) end [2025-02-04 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397356', 'tblTempVendorCDR_20' ) start [2025-02-04 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397356', 'tblTempVendorCDR_20' ) end [2025-02-04 02:39:18] Production.INFO: ProcessCDR(1,14397356,1,1,2) [2025-02-04 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397356', 'tblTempUsageDetail_20' ) start [2025-02-04 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397356', 'tblTempUsageDetail_20' ) end [2025-02-04 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:39:21] Production.INFO: ==4943== Releasing lock... [2025-02-04 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:39:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-04 02:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:40:05 [end_date_ymd] => 2025-02-04 02:40:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 23:40:05' and `end` < '2025-02-04 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-02-04 02:40:18] Production.INFO: count ==325 [2025-02-04 02:40:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:40:05 - End Time 2025-02-04 02:40:05 [2025-02-04 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397362', 'tblTempUsageDetail_20' ) start [2025-02-04 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397362', 'tblTempUsageDetail_20' ) end [2025-02-04 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397362', 'tblTempVendorCDR_20' ) start [2025-02-04 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397362', 'tblTempVendorCDR_20' ) end [2025-02-04 02:40:18] Production.INFO: ProcessCDR(1,14397362,1,1,2) [2025-02-04 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397362', 'tblTempUsageDetail_20' ) start [2025-02-04 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397362', 'tblTempUsageDetail_20' ) end [2025-02-04 02:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:40:21] Production.INFO: ==5048== Releasing lock... [2025-02-04 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:40:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:41:05 [end_date_ymd] => 2025-02-04 02:41:05 [RateCDR] => 1 ) [2025-02-04 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:41:05' and `end` < '2025-02-04 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:41:19] Production.INFO: count ==325 [2025-02-04 02:41:19] Production.ERROR: pbx CDR StartTime 2025-02-03 23:41:05 - End Time 2025-02-04 02:41:05 [2025-02-04 02:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397367', 'tblTempUsageDetail_20' ) start [2025-02-04 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397367', 'tblTempUsageDetail_20' ) end [2025-02-04 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397367', 'tblTempVendorCDR_20' ) start [2025-02-04 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397367', 'tblTempVendorCDR_20' ) end [2025-02-04 02:41:19] Production.INFO: ProcessCDR(1,14397367,1,1,2) [2025-02-04 02:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397367', 'tblTempUsageDetail_20' ) start [2025-02-04 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397367', 'tblTempUsageDetail_20' ) end [2025-02-04 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:41:22] Production.INFO: ==5157== Releasing lock... [2025-02-04 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:41:22] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:42:05 [end_date_ymd] => 2025-02-04 02:42:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 23:42:05' and `end` < '2025-02-04 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-02-04 02:42:18] Production.INFO: count ==324 [2025-02-04 02:42:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:42:05 - End Time 2025-02-04 02:42:05 [2025-02-04 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397372', 'tblTempUsageDetail_20' ) start [2025-02-04 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397372', 'tblTempUsageDetail_20' ) end [2025-02-04 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397372', 'tblTempVendorCDR_20' ) start [2025-02-04 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397372', 'tblTempVendorCDR_20' ) end [2025-02-04 02:42:18] Production.INFO: ProcessCDR(1,14397372,1,1,2) [2025-02-04 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397372', 'tblTempUsageDetail_20' ) start [2025-02-04 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397372', 'tblTempUsageDetail_20' ) end [2025-02-04 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:42:21] Production.INFO: ==5266== Releasing lock... [2025-02-04 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:42:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:43:04 [end_date_ymd] => 2025-02-04 02:43:04 [RateCDR] => 1 ) [2025-02-04 02:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:43:04' and `end` < '2025-02-04 02:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:43:18] Production.INFO: count ==324 [2025-02-04 02:43:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:43:04 - End Time 2025-02-04 02:43:04 [2025-02-04 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397377', 'tblTempUsageDetail_20' ) start [2025-02-04 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397377', 'tblTempUsageDetail_20' ) end [2025-02-04 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397377', 'tblTempVendorCDR_20' ) start [2025-02-04 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397377', 'tblTempVendorCDR_20' ) end [2025-02-04 02:43:18] Production.INFO: ProcessCDR(1,14397377,1,1,2) [2025-02-04 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397377', 'tblTempUsageDetail_20' ) start [2025-02-04 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397377', 'tblTempUsageDetail_20' ) end [2025-02-04 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:43:21] Production.INFO: ==5371== Releasing lock... [2025-02-04 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:43:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:44:05 [end_date_ymd] => 2025-02-04 02:44:05 [RateCDR] => 1 ) [2025-02-04 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:44:05' and `end` < '2025-02-04 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:44:19] Production.INFO: count ==324 [2025-02-04 02:44:19] Production.ERROR: pbx CDR StartTime 2025-02-03 23:44:05 - End Time 2025-02-04 02:44:05 [2025-02-04 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397382', 'tblTempUsageDetail_20' ) start [2025-02-04 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397382', 'tblTempUsageDetail_20' ) end [2025-02-04 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397382', 'tblTempVendorCDR_20' ) start [2025-02-04 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397382', 'tblTempVendorCDR_20' ) end [2025-02-04 02:44:19] Production.INFO: ProcessCDR(1,14397382,1,1,2) [2025-02-04 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397382', 'tblTempUsageDetail_20' ) start [2025-02-04 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397382', 'tblTempUsageDetail_20' ) end [2025-02-04 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:44:22] Production.INFO: ==5479== Releasing lock... [2025-02-04 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:44:22] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:45:05 [end_date_ymd] => 2025-02-04 02:45:05 [RateCDR] => 1 ) [2025-02-04 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:45:05' and `end` < '2025-02-04 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:45:18] Production.INFO: count ==324 [2025-02-04 02:45:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:45:05 - End Time 2025-02-04 02:45:05 [2025-02-04 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397387', 'tblTempUsageDetail_20' ) start [2025-02-04 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397387', 'tblTempUsageDetail_20' ) end [2025-02-04 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397387', 'tblTempVendorCDR_20' ) start [2025-02-04 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397387', 'tblTempVendorCDR_20' ) end [2025-02-04 02:45:18] Production.INFO: ProcessCDR(1,14397387,1,1,2) [2025-02-04 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397387', 'tblTempUsageDetail_20' ) start [2025-02-04 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397387', 'tblTempUsageDetail_20' ) end [2025-02-04 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:45:21] Production.INFO: ==5560== Releasing lock... [2025-02-04 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:45:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:46:05 [end_date_ymd] => 2025-02-04 02:46:05 [RateCDR] => 1 ) [2025-02-04 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:46:05' and `end` < '2025-02-04 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:46:19] Production.INFO: count ==323 [2025-02-04 02:46:19] Production.ERROR: pbx CDR StartTime 2025-02-03 23:46:05 - End Time 2025-02-04 02:46:05 [2025-02-04 02:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397392', 'tblTempUsageDetail_20' ) start [2025-02-04 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397392', 'tblTempUsageDetail_20' ) end [2025-02-04 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397392', 'tblTempVendorCDR_20' ) start [2025-02-04 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397392', 'tblTempVendorCDR_20' ) end [2025-02-04 02:46:19] Production.INFO: ProcessCDR(1,14397392,1,1,2) [2025-02-04 02:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397392', 'tblTempUsageDetail_20' ) start [2025-02-04 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397392', 'tblTempUsageDetail_20' ) end [2025-02-04 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:46:22] Production.INFO: ==5635== Releasing lock... [2025-02-04 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:46:22] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:47:05 [end_date_ymd] => 2025-02-04 02:47:05 [RateCDR] => 1 ) [2025-02-04 02:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:47:05' and `end` < '2025-02-04 02:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:47:18] Production.INFO: count ==322 [2025-02-04 02:47:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:47:05 - End Time 2025-02-04 02:47:05 [2025-02-04 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397397', 'tblTempUsageDetail_20' ) start [2025-02-04 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397397', 'tblTempUsageDetail_20' ) end [2025-02-04 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397397', 'tblTempVendorCDR_20' ) start [2025-02-04 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397397', 'tblTempVendorCDR_20' ) end [2025-02-04 02:47:18] Production.INFO: ProcessCDR(1,14397397,1,1,2) [2025-02-04 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397397', 'tblTempUsageDetail_20' ) start [2025-02-04 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397397', 'tblTempUsageDetail_20' ) end [2025-02-04 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:47:21] Production.INFO: ==5713== Releasing lock... [2025-02-04 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:47:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:48:06 [end_date_ymd] => 2025-02-04 02:48:06 [RateCDR] => 1 ) [2025-02-04 02:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:48:06' and `end` < '2025-02-04 02:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:48:19] Production.INFO: count ==322 [2025-02-04 02:48:19] Production.ERROR: pbx CDR StartTime 2025-02-03 23:48:06 - End Time 2025-02-04 02:48:06 [2025-02-04 02:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397402', 'tblTempUsageDetail_20' ) start [2025-02-04 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397402', 'tblTempUsageDetail_20' ) end [2025-02-04 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397402', 'tblTempVendorCDR_20' ) start [2025-02-04 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397402', 'tblTempVendorCDR_20' ) end [2025-02-04 02:48:19] Production.INFO: ProcessCDR(1,14397402,1,1,2) [2025-02-04 02:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397402', 'tblTempUsageDetail_20' ) start [2025-02-04 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397402', 'tblTempUsageDetail_20' ) end [2025-02-04 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:48:22] Production.INFO: ==5783== Releasing lock... [2025-02-04 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:48:22] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:49:05 [end_date_ymd] => 2025-02-04 02:49:05 [RateCDR] => 1 ) [2025-02-04 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:49:05' and `end` < '2025-02-04 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:49:18] Production.INFO: count ==322 [2025-02-04 02:49:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:49:05 - End Time 2025-02-04 02:49:05 [2025-02-04 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397407', 'tblTempUsageDetail_20' ) start [2025-02-04 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397407', 'tblTempUsageDetail_20' ) end [2025-02-04 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397407', 'tblTempVendorCDR_20' ) start [2025-02-04 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397407', 'tblTempVendorCDR_20' ) end [2025-02-04 02:49:18] Production.INFO: ProcessCDR(1,14397407,1,1,2) [2025-02-04 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397407', 'tblTempUsageDetail_20' ) start [2025-02-04 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397407', 'tblTempUsageDetail_20' ) end [2025-02-04 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:49:21] Production.INFO: ==5858== Releasing lock... [2025-02-04 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:49:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:50:06 [end_date_ymd] => 2025-02-04 02:50:06 [RateCDR] => 1 ) [2025-02-04 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:50:06' and `end` < '2025-02-04 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:50:19] Production.INFO: count ==327 [2025-02-04 02:50:19] Production.ERROR: pbx CDR StartTime 2025-02-03 23:50:06 - End Time 2025-02-04 02:50:06 [2025-02-04 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397413', 'tblTempUsageDetail_20' ) start [2025-02-04 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397413', 'tblTempUsageDetail_20' ) end [2025-02-04 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397413', 'tblTempVendorCDR_20' ) start [2025-02-04 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397413', 'tblTempVendorCDR_20' ) end [2025-02-04 02:50:19] Production.INFO: ProcessCDR(1,14397413,1,1,2) [2025-02-04 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397413', 'tblTempUsageDetail_20' ) start [2025-02-04 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397413', 'tblTempUsageDetail_20' ) end [2025-02-04 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:50:22] Production.INFO: ==5969== Releasing lock... [2025-02-04 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:50:22] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:51:05 [end_date_ymd] => 2025-02-04 02:51:05 [RateCDR] => 1 ) [2025-02-04 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:51:05' and `end` < '2025-02-04 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:51:18] Production.INFO: count ==331 [2025-02-04 02:51:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:51:05 - End Time 2025-02-04 02:51:05 [2025-02-04 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397418', 'tblTempUsageDetail_20' ) start [2025-02-04 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397418', 'tblTempUsageDetail_20' ) end [2025-02-04 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397418', 'tblTempVendorCDR_20' ) start [2025-02-04 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397418', 'tblTempVendorCDR_20' ) end [2025-02-04 02:51:18] Production.INFO: ProcessCDR(1,14397418,1,1,2) [2025-02-04 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397418', 'tblTempUsageDetail_20' ) start [2025-02-04 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397418', 'tblTempUsageDetail_20' ) end [2025-02-04 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:51:21] Production.INFO: ==6048== Releasing lock... [2025-02-04 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:51:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:52:04 [end_date_ymd] => 2025-02-04 02:52:04 [RateCDR] => 1 ) [2025-02-04 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:52:04' and `end` < '2025-02-04 02:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:52:17] Production.INFO: count ==330 [2025-02-04 02:52:17] Production.ERROR: pbx CDR StartTime 2025-02-03 23:52:04 - End Time 2025-02-04 02:52:04 [2025-02-04 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397423', 'tblTempUsageDetail_20' ) start [2025-02-04 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397423', 'tblTempUsageDetail_20' ) end [2025-02-04 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397423', 'tblTempVendorCDR_20' ) start [2025-02-04 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397423', 'tblTempVendorCDR_20' ) end [2025-02-04 02:52:17] Production.INFO: ProcessCDR(1,14397423,1,1,2) [2025-02-04 02:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397423', 'tblTempUsageDetail_20' ) start [2025-02-04 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397423', 'tblTempUsageDetail_20' ) end [2025-02-04 02:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:52:20] Production.INFO: ==6117== Releasing lock... [2025-02-04 02:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:52:20] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:53:05 [end_date_ymd] => 2025-02-04 02:53:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 23:53:05' and `end` < '2025-02-04 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-02-04 02:53:18] Production.INFO: count ==330 [2025-02-04 02:53:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:53:05 - End Time 2025-02-04 02:53:05 [2025-02-04 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397428', 'tblTempUsageDetail_20' ) start [2025-02-04 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397428', 'tblTempUsageDetail_20' ) end [2025-02-04 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397428', 'tblTempVendorCDR_20' ) start [2025-02-04 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397428', 'tblTempVendorCDR_20' ) end [2025-02-04 02:53:18] Production.INFO: ProcessCDR(1,14397428,1,1,2) [2025-02-04 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397428', 'tblTempUsageDetail_20' ) start [2025-02-04 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397428', 'tblTempUsageDetail_20' ) end [2025-02-04 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:53:21] Production.INFO: ==6190== Releasing lock... [2025-02-04 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:53:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:54:05 [end_date_ymd] => 2025-02-04 02:54:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 23:54:05' and `end` < '2025-02-04 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-02-04 02:54:17] Production.INFO: count ==330 [2025-02-04 02:54:17] Production.ERROR: pbx CDR StartTime 2025-02-03 23:54:05 - End Time 2025-02-04 02:54:05 [2025-02-04 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397433', 'tblTempUsageDetail_20' ) start [2025-02-04 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397433', 'tblTempUsageDetail_20' ) end [2025-02-04 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397433', 'tblTempVendorCDR_20' ) start [2025-02-04 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397433', 'tblTempVendorCDR_20' ) end [2025-02-04 02:54:17] Production.INFO: ProcessCDR(1,14397433,1,1,2) [2025-02-04 02:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397433', 'tblTempUsageDetail_20' ) start [2025-02-04 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397433', 'tblTempUsageDetail_20' ) end [2025-02-04 02:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:54:21] Production.INFO: ==6266== Releasing lock... [2025-02-04 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:54:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:55:05 [end_date_ymd] => 2025-02-04 02:55:05 [RateCDR] => 1 ) [2025-02-04 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:55:05' and `end` < '2025-02-04 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:55:18] Production.INFO: count ==327 [2025-02-04 02:55:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:55:05 - End Time 2025-02-04 02:55:05 [2025-02-04 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397438', 'tblTempUsageDetail_20' ) start [2025-02-04 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397438', 'tblTempUsageDetail_20' ) end [2025-02-04 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397438', 'tblTempVendorCDR_20' ) start [2025-02-04 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397438', 'tblTempVendorCDR_20' ) end [2025-02-04 02:55:18] Production.INFO: ProcessCDR(1,14397438,1,1,2) [2025-02-04 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397438', 'tblTempUsageDetail_20' ) start [2025-02-04 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397438', 'tblTempUsageDetail_20' ) end [2025-02-04 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:55:21] Production.INFO: ==6340== Releasing lock... [2025-02-04 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:55:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:56:05 [end_date_ymd] => 2025-02-04 02:56:05 [RateCDR] => 1 ) [2025-02-04 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:56:05' and `end` < '2025-02-04 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:56:20] Production.INFO: count ==326 [2025-02-04 02:56:20] Production.ERROR: pbx CDR StartTime 2025-02-03 23:56:05 - End Time 2025-02-04 02:56:05 [2025-02-04 02:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397443', 'tblTempUsageDetail_20' ) start [2025-02-04 02:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397443', 'tblTempUsageDetail_20' ) end [2025-02-04 02:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397443', 'tblTempVendorCDR_20' ) start [2025-02-04 02:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397443', 'tblTempVendorCDR_20' ) end [2025-02-04 02:56:20] Production.INFO: ProcessCDR(1,14397443,1,1,2) [2025-02-04 02:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397443', 'tblTempUsageDetail_20' ) start [2025-02-04 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397443', 'tblTempUsageDetail_20' ) end [2025-02-04 02:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:56:23] Production.INFO: ==6411== Releasing lock... [2025-02-04 02:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:56:23] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:57:05 [end_date_ymd] => 2025-02-04 02:57:05 [RateCDR] => 1 ) [2025-02-04 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-02-03 23:57:05' and `end` < '2025-02-04 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-02-04 02:57:19] Production.INFO: count ==326 [2025-02-04 02:57:19] Production.ERROR: pbx CDR StartTime 2025-02-03 23:57:05 - End Time 2025-02-04 02:57:05 [2025-02-04 02:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397448', 'tblTempUsageDetail_20' ) start [2025-02-04 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397448', 'tblTempUsageDetail_20' ) end [2025-02-04 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397448', 'tblTempVendorCDR_20' ) start [2025-02-04 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397448', 'tblTempVendorCDR_20' ) end [2025-02-04 02:57:19] Production.INFO: ProcessCDR(1,14397448,1,1,2) [2025-02-04 02:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397448', 'tblTempUsageDetail_20' ) start [2025-02-04 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397448', 'tblTempUsageDetail_20' ) end [2025-02-04 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:57:22] Production.INFO: ==6482== Releasing lock... [2025-02-04 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:57:22] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:58:06 [end_date_ymd] => 2025-02-04 02:58:06 [RateCDR] => 1 ) [2025-02-04 02:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:58:06' and `end` < '2025-02-04 02:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:58:18] Production.INFO: count ==326 [2025-02-04 02:58:19] Production.ERROR: pbx CDR StartTime 2025-02-03 23:58:06 - End Time 2025-02-04 02:58:06 [2025-02-04 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397453', 'tblTempUsageDetail_20' ) start [2025-02-04 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397453', 'tblTempUsageDetail_20' ) end [2025-02-04 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397453', 'tblTempVendorCDR_20' ) start [2025-02-04 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397453', 'tblTempVendorCDR_20' ) end [2025-02-04 02:58:19] Production.INFO: ProcessCDR(1,14397453,1,1,2) [2025-02-04 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397453', 'tblTempUsageDetail_20' ) start [2025-02-04 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397453', 'tblTempUsageDetail_20' ) end [2025-02-04 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:58:22] Production.INFO: ==6553== Releasing lock... [2025-02-04 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:58:22] Production.INFO: 30 MB #Memory Used# [2025-02-04 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 23:59:05 [end_date_ymd] => 2025-02-04 02:59:05 [RateCDR] => 1 ) [2025-02-04 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 23:59:05' and `end` < '2025-02-04 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 02:59:18] Production.INFO: count ==326 [2025-02-04 02:59:18] Production.ERROR: pbx CDR StartTime 2025-02-03 23:59:05 - End Time 2025-02-04 02:59:05 [2025-02-04 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397458', 'tblTempUsageDetail_20' ) start [2025-02-04 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397458', 'tblTempUsageDetail_20' ) end [2025-02-04 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397458', 'tblTempVendorCDR_20' ) start [2025-02-04 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397458', 'tblTempVendorCDR_20' ) end [2025-02-04 02:59:18] Production.INFO: ProcessCDR(1,14397458,1,1,2) [2025-02-04 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397458', 'tblTempUsageDetail_20' ) start [2025-02-04 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397458', 'tblTempUsageDetail_20' ) end [2025-02-04 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 02:59:21] Production.INFO: ==6622== Releasing lock... [2025-02-04 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 02:59:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:00:06 [end_date_ymd] => 2025-02-04 03:00:06 [RateCDR] => 1 ) [2025-02-04 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:00:06' and `end` < '2025-02-04 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:00:19] Production.INFO: count ==332 [2025-02-04 03:00:19] Production.ERROR: pbx CDR StartTime 2025-02-04 00:00:06 - End Time 2025-02-04 03:00:06 [2025-02-04 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397464', 'tblTempUsageDetail_20' ) start [2025-02-04 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397464', 'tblTempUsageDetail_20' ) end [2025-02-04 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397464', 'tblTempVendorCDR_20' ) start [2025-02-04 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397464', 'tblTempVendorCDR_20' ) end [2025-02-04 03:00:19] Production.INFO: ProcessCDR(1,14397464,1,1,2) [2025-02-04 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397464', 'tblTempUsageDetail_20' ) start [2025-02-04 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397464', 'tblTempUsageDetail_20' ) end [2025-02-04 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:00:22] Production.INFO: ==6701== Releasing lock... [2025-02-04 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:00:22] Production.INFO: 30 MB #Memory Used# [2025-02-04 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:01:05 [end_date_ymd] => 2025-02-04 03:01:05 [RateCDR] => 1 ) [2025-02-04 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:01:05' and `end` < '2025-02-04 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:01:18] Production.INFO: count ==332 [2025-02-04 03:01:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:01:05 - End Time 2025-02-04 03:01:05 [2025-02-04 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397469', 'tblTempUsageDetail_20' ) start [2025-02-04 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397469', 'tblTempUsageDetail_20' ) end [2025-02-04 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397469', 'tblTempVendorCDR_20' ) start [2025-02-04 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397469', 'tblTempVendorCDR_20' ) end [2025-02-04 03:01:18] Production.INFO: ProcessCDR(1,14397469,1,1,2) [2025-02-04 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397469', 'tblTempUsageDetail_20' ) start [2025-02-04 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397469', 'tblTempUsageDetail_20' ) end [2025-02-04 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:01:21] Production.INFO: ==6787== Releasing lock... [2025-02-04 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:01:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:02:05 [end_date_ymd] => 2025-02-04 03:02:05 [RateCDR] => 1 ) [2025-02-04 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:02:05' and `end` < '2025-02-04 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:02:18] Production.INFO: count ==329 [2025-02-04 03:02:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:02:05 - End Time 2025-02-04 03:02:05 [2025-02-04 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397474', 'tblTempUsageDetail_20' ) start [2025-02-04 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397474', 'tblTempUsageDetail_20' ) end [2025-02-04 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397474', 'tblTempVendorCDR_20' ) start [2025-02-04 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397474', 'tblTempVendorCDR_20' ) end [2025-02-04 03:02:18] Production.INFO: ProcessCDR(1,14397474,1,1,2) [2025-02-04 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397474', 'tblTempUsageDetail_20' ) start [2025-02-04 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397474', 'tblTempUsageDetail_20' ) end [2025-02-04 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:02:21] Production.INFO: ==6934== Releasing lock... [2025-02-04 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:02:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:03:05 [end_date_ymd] => 2025-02-04 03:03:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 00:03:05' and `end` < '2025-02-04 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-02-04 03:03:19] Production.INFO: count ==329 [2025-02-04 03:03:19] Production.ERROR: pbx CDR StartTime 2025-02-04 00:03:05 - End Time 2025-02-04 03:03:05 [2025-02-04 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397479', 'tblTempUsageDetail_20' ) start [2025-02-04 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397479', 'tblTempUsageDetail_20' ) end [2025-02-04 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397479', 'tblTempVendorCDR_20' ) start [2025-02-04 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397479', 'tblTempVendorCDR_20' ) end [2025-02-04 03:03:19] Production.INFO: ProcessCDR(1,14397479,1,1,2) [2025-02-04 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397479', 'tblTempUsageDetail_20' ) start [2025-02-04 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397479', 'tblTempUsageDetail_20' ) end [2025-02-04 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:03:22] Production.INFO: ==7004== Releasing lock... [2025-02-04 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:03:22] Production.INFO: 30 MB #Memory Used# [2025-02-04 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:04:05 [end_date_ymd] => 2025-02-04 03:04:05 [RateCDR] => 1 ) [2025-02-04 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:04:05' and `end` < '2025-02-04 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:04:18] Production.INFO: count ==325 [2025-02-04 03:04:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:04:05 - End Time 2025-02-04 03:04:05 [2025-02-04 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397484', 'tblTempUsageDetail_20' ) start [2025-02-04 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397484', 'tblTempUsageDetail_20' ) end [2025-02-04 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397484', 'tblTempVendorCDR_20' ) start [2025-02-04 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397484', 'tblTempVendorCDR_20' ) end [2025-02-04 03:04:18] Production.INFO: ProcessCDR(1,14397484,1,1,2) [2025-02-04 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397484', 'tblTempUsageDetail_20' ) start [2025-02-04 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397484', 'tblTempUsageDetail_20' ) end [2025-02-04 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:04:22] Production.INFO: ==7074== Releasing lock... [2025-02-04 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:04:22] Production.INFO: 30 MB #Memory Used# [2025-02-04 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:05:05 [end_date_ymd] => 2025-02-04 03:05:05 [RateCDR] => 1 ) [2025-02-04 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:05:05' and `end` < '2025-02-04 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:05:18] Production.INFO: count ==324 [2025-02-04 03:05:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:05:05 - End Time 2025-02-04 03:05:05 [2025-02-04 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397489', 'tblTempUsageDetail_20' ) start [2025-02-04 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397489', 'tblTempUsageDetail_20' ) end [2025-02-04 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397489', 'tblTempVendorCDR_20' ) start [2025-02-04 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397489', 'tblTempVendorCDR_20' ) end [2025-02-04 03:05:18] Production.INFO: ProcessCDR(1,14397489,1,1,2) [2025-02-04 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397489', 'tblTempUsageDetail_20' ) start [2025-02-04 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397489', 'tblTempUsageDetail_20' ) end [2025-02-04 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:05:21] Production.INFO: ==7220== Releasing lock... [2025-02-04 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:05:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:06:05 [end_date_ymd] => 2025-02-04 03:06:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 00:06:05' and `end` < '2025-02-04 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-02-04 03:06:18] Production.INFO: count ==323 [2025-02-04 03:06:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:06:05 - End Time 2025-02-04 03:06:05 [2025-02-04 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397494', 'tblTempUsageDetail_20' ) start [2025-02-04 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397494', 'tblTempUsageDetail_20' ) end [2025-02-04 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397494', 'tblTempVendorCDR_20' ) start [2025-02-04 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397494', 'tblTempVendorCDR_20' ) end [2025-02-04 03:06:18] Production.INFO: ProcessCDR(1,14397494,1,1,2) [2025-02-04 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397494', 'tblTempUsageDetail_20' ) start [2025-02-04 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397494', 'tblTempUsageDetail_20' ) end [2025-02-04 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:06:21] Production.INFO: ==7331== Releasing lock... [2025-02-04 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:06:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:07:05 [end_date_ymd] => 2025-02-04 03:07:05 [RateCDR] => 1 ) [2025-02-04 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:07:05' and `end` < '2025-02-04 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:07:19] Production.INFO: count ==322 [2025-02-04 03:07:19] Production.ERROR: pbx CDR StartTime 2025-02-04 00:07:05 - End Time 2025-02-04 03:07:05 [2025-02-04 03:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397499', 'tblTempUsageDetail_20' ) start [2025-02-04 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397499', 'tblTempUsageDetail_20' ) end [2025-02-04 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397499', 'tblTempVendorCDR_20' ) start [2025-02-04 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397499', 'tblTempVendorCDR_20' ) end [2025-02-04 03:07:19] Production.INFO: ProcessCDR(1,14397499,1,1,2) [2025-02-04 03:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397499', 'tblTempUsageDetail_20' ) start [2025-02-04 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397499', 'tblTempUsageDetail_20' ) end [2025-02-04 03:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:07:22] Production.INFO: ==7439== Releasing lock... [2025-02-04 03:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:07:22] Production.INFO: 30 MB #Memory Used# [2025-02-04 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:08:05 [end_date_ymd] => 2025-02-04 03:08:05 [RateCDR] => 1 ) [2025-02-04 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:08:05' and `end` < '2025-02-04 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:08:18] Production.INFO: count ==322 [2025-02-04 03:08:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:08:05 - End Time 2025-02-04 03:08:05 [2025-02-04 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397504', 'tblTempUsageDetail_20' ) start [2025-02-04 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397504', 'tblTempUsageDetail_20' ) end [2025-02-04 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397504', 'tblTempVendorCDR_20' ) start [2025-02-04 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397504', 'tblTempVendorCDR_20' ) end [2025-02-04 03:08:18] Production.INFO: ProcessCDR(1,14397504,1,1,2) [2025-02-04 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397504', 'tblTempUsageDetail_20' ) start [2025-02-04 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397504', 'tblTempUsageDetail_20' ) end [2025-02-04 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:08:21] Production.INFO: ==7510== Releasing lock... [2025-02-04 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:08:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:09:05 [end_date_ymd] => 2025-02-04 03:09:05 [RateCDR] => 1 ) [2025-02-04 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:09:05' and `end` < '2025-02-04 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:09:18] Production.INFO: count ==322 [2025-02-04 03:09:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:09:05 - End Time 2025-02-04 03:09:05 [2025-02-04 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397509', 'tblTempUsageDetail_20' ) start [2025-02-04 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397509', 'tblTempUsageDetail_20' ) end [2025-02-04 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397509', 'tblTempVendorCDR_20' ) start [2025-02-04 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397509', 'tblTempVendorCDR_20' ) end [2025-02-04 03:09:18] Production.INFO: ProcessCDR(1,14397509,1,1,2) [2025-02-04 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397509', 'tblTempUsageDetail_20' ) start [2025-02-04 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397509', 'tblTempUsageDetail_20' ) end [2025-02-04 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:09:21] Production.INFO: ==7661== Releasing lock... [2025-02-04 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:09:21] Production.INFO: 30 MB #Memory Used# [2025-02-04 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:10:05 [end_date_ymd] => 2025-02-04 03:10:05 [RateCDR] => 1 ) [2025-02-04 03:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:10:05' and `end` < '2025-02-04 03:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:10:19] Production.INFO: count ==324 [2025-02-04 03:10:19] Production.ERROR: pbx CDR StartTime 2025-02-04 00:10:05 - End Time 2025-02-04 03:10:05 [2025-02-04 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397514', 'tblTempUsageDetail_20' ) start [2025-02-04 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397514', 'tblTempUsageDetail_20' ) end [2025-02-04 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397514', 'tblTempVendorCDR_20' ) start [2025-02-04 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397514', 'tblTempVendorCDR_20' ) end [2025-02-04 03:10:19] Production.INFO: ProcessCDR(1,14397514,1,1,2) [2025-02-04 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397514', 'tblTempUsageDetail_20' ) start [2025-02-04 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397514', 'tblTempUsageDetail_20' ) end [2025-02-04 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:10:22] Production.INFO: ==7737== Releasing lock... [2025-02-04 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:10:22] Production.INFO: 30 MB #Memory Used# [2025-02-04 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:11:05 [end_date_ymd] => 2025-02-04 03:11:05 [RateCDR] => 1 ) [2025-02-04 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:11:05' and `end` < '2025-02-04 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:11:18] Production.INFO: count ==303 [2025-02-04 03:11:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:11:05 - End Time 2025-02-04 03:11:05 [2025-02-04 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397519', 'tblTempUsageDetail_20' ) start [2025-02-04 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397519', 'tblTempUsageDetail_20' ) end [2025-02-04 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397519', 'tblTempVendorCDR_20' ) start [2025-02-04 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397519', 'tblTempVendorCDR_20' ) end [2025-02-04 03:11:18] Production.INFO: ProcessCDR(1,14397519,1,1,2) [2025-02-04 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397519', 'tblTempUsageDetail_20' ) start [2025-02-04 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397519', 'tblTempUsageDetail_20' ) end [2025-02-04 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:11:21] Production.INFO: ==7810== Releasing lock... [2025-02-04 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:11:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-04 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:12:05 [end_date_ymd] => 2025-02-04 03:12:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 00:12:05' and `end` < '2025-02-04 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-02-04 03:12:18] Production.INFO: count ==302 [2025-02-04 03:12:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:12:05 - End Time 2025-02-04 03:12:05 [2025-02-04 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397525', 'tblTempUsageDetail_20' ) start [2025-02-04 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397525', 'tblTempUsageDetail_20' ) end [2025-02-04 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397525', 'tblTempVendorCDR_20' ) start [2025-02-04 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397525', 'tblTempVendorCDR_20' ) end [2025-02-04 03:12:18] Production.INFO: ProcessCDR(1,14397525,1,1,2) [2025-02-04 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397525', 'tblTempUsageDetail_20' ) start [2025-02-04 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397525', 'tblTempUsageDetail_20' ) end [2025-02-04 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:12:21] Production.INFO: ==7883== Releasing lock... [2025-02-04 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:12:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-04 03:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:13:06 [end_date_ymd] => 2025-02-04 03:13:06 [RateCDR] => 1 ) [2025-02-04 03:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:13:06' and `end` < '2025-02-04 03:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:13:19] Production.INFO: count ==302 [2025-02-04 03:13:19] Production.ERROR: pbx CDR StartTime 2025-02-04 00:13:06 - End Time 2025-02-04 03:13:06 [2025-02-04 03:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397530', 'tblTempUsageDetail_20' ) start [2025-02-04 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397530', 'tblTempUsageDetail_20' ) end [2025-02-04 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397530', 'tblTempVendorCDR_20' ) start [2025-02-04 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397530', 'tblTempVendorCDR_20' ) end [2025-02-04 03:13:19] Production.INFO: ProcessCDR(1,14397530,1,1,2) [2025-02-04 03:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397530', 'tblTempUsageDetail_20' ) start [2025-02-04 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397530', 'tblTempUsageDetail_20' ) end [2025-02-04 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:13:22] Production.INFO: ==8030== Releasing lock... [2025-02-04 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:13:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-04 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:14:05 [end_date_ymd] => 2025-02-04 03:14:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 00:14:05' and `end` < '2025-02-04 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-02-04 03:14:19] Production.INFO: count ==301 [2025-02-04 03:14:19] Production.ERROR: pbx CDR StartTime 2025-02-04 00:14:05 - End Time 2025-02-04 03:14:05 [2025-02-04 03:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397535', 'tblTempUsageDetail_20' ) start [2025-02-04 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397535', 'tblTempUsageDetail_20' ) end [2025-02-04 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397535', 'tblTempVendorCDR_20' ) start [2025-02-04 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397535', 'tblTempVendorCDR_20' ) end [2025-02-04 03:14:19] Production.INFO: ProcessCDR(1,14397535,1,1,2) [2025-02-04 03:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397535', 'tblTempUsageDetail_20' ) start [2025-02-04 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397535', 'tblTempUsageDetail_20' ) end [2025-02-04 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:14:22] Production.INFO: ==8100== Releasing lock... [2025-02-04 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:14:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-04 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:15:05 [end_date_ymd] => 2025-02-04 03:15:05 [RateCDR] => 1 ) [2025-02-04 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:15:05' and `end` < '2025-02-04 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:15:18] Production.INFO: count ==301 [2025-02-04 03:15:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:15:05 - End Time 2025-02-04 03:15:05 [2025-02-04 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397540', 'tblTempUsageDetail_20' ) start [2025-02-04 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397540', 'tblTempUsageDetail_20' ) end [2025-02-04 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397540', 'tblTempVendorCDR_20' ) start [2025-02-04 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397540', 'tblTempVendorCDR_20' ) end [2025-02-04 03:15:18] Production.INFO: ProcessCDR(1,14397540,1,1,2) [2025-02-04 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397540', 'tblTempUsageDetail_20' ) start [2025-02-04 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397540', 'tblTempUsageDetail_20' ) end [2025-02-04 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:15:21] Production.INFO: ==8170== Releasing lock... [2025-02-04 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:15:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-04 03:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:16:06 [end_date_ymd] => 2025-02-04 03:16:06 [RateCDR] => 1 ) [2025-02-04 03:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:16:06' and `end` < '2025-02-04 03:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:16:19] Production.INFO: count ==301 [2025-02-04 03:16:19] Production.ERROR: pbx CDR StartTime 2025-02-04 00:16:06 - End Time 2025-02-04 03:16:06 [2025-02-04 03:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397545', 'tblTempUsageDetail_20' ) start [2025-02-04 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397545', 'tblTempUsageDetail_20' ) end [2025-02-04 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397545', 'tblTempVendorCDR_20' ) start [2025-02-04 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397545', 'tblTempVendorCDR_20' ) end [2025-02-04 03:16:19] Production.INFO: ProcessCDR(1,14397545,1,1,2) [2025-02-04 03:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397545', 'tblTempUsageDetail_20' ) start [2025-02-04 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397545', 'tblTempUsageDetail_20' ) end [2025-02-04 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:16:22] Production.INFO: ==8240== Releasing lock... [2025-02-04 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:16:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-04 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:17:05 [end_date_ymd] => 2025-02-04 03:17:05 [RateCDR] => 1 ) [2025-02-04 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:17:05' and `end` < '2025-02-04 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:17:18] Production.INFO: count ==300 [2025-02-04 03:17:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:17:05 - End Time 2025-02-04 03:17:05 [2025-02-04 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397550', 'tblTempUsageDetail_20' ) start [2025-02-04 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397550', 'tblTempUsageDetail_20' ) end [2025-02-04 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397550', 'tblTempVendorCDR_20' ) start [2025-02-04 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397550', 'tblTempVendorCDR_20' ) end [2025-02-04 03:17:18] Production.INFO: ProcessCDR(1,14397550,1,1,2) [2025-02-04 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397550', 'tblTempUsageDetail_20' ) start [2025-02-04 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397550', 'tblTempUsageDetail_20' ) end [2025-02-04 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:17:21] Production.INFO: ==8386== Releasing lock... [2025-02-04 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:17:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-04 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:18:05 [end_date_ymd] => 2025-02-04 03:18:05 [RateCDR] => 1 ) [2025-02-04 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:18:05' and `end` < '2025-02-04 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:18:18] Production.INFO: count ==300 [2025-02-04 03:18:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:18:05 - End Time 2025-02-04 03:18:05 [2025-02-04 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397555', 'tblTempUsageDetail_20' ) start [2025-02-04 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397555', 'tblTempUsageDetail_20' ) end [2025-02-04 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397555', 'tblTempVendorCDR_20' ) start [2025-02-04 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397555', 'tblTempVendorCDR_20' ) end [2025-02-04 03:18:18] Production.INFO: ProcessCDR(1,14397555,1,1,2) [2025-02-04 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397555', 'tblTempUsageDetail_20' ) start [2025-02-04 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397555', 'tblTempUsageDetail_20' ) end [2025-02-04 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:18:21] Production.INFO: ==8457== Releasing lock... [2025-02-04 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:18:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-04 03:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:19:04 [end_date_ymd] => 2025-02-04 03:19:04 [RateCDR] => 1 ) [2025-02-04 03:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:19:04' and `end` < '2025-02-04 03:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:19:18] Production.INFO: count ==299 [2025-02-04 03:19:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:19:04 - End Time 2025-02-04 03:19:04 [2025-02-04 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397560', 'tblTempUsageDetail_20' ) start [2025-02-04 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397560', 'tblTempUsageDetail_20' ) end [2025-02-04 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397560', 'tblTempVendorCDR_20' ) start [2025-02-04 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397560', 'tblTempVendorCDR_20' ) end [2025-02-04 03:19:18] Production.INFO: ProcessCDR(1,14397560,1,1,2) [2025-02-04 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397560', 'tblTempUsageDetail_20' ) start [2025-02-04 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397560', 'tblTempUsageDetail_20' ) end [2025-02-04 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:19:21] Production.INFO: ==8526== Releasing lock... [2025-02-04 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:19:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-04 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:20:06 [end_date_ymd] => 2025-02-04 03:20:06 [RateCDR] => 1 ) [2025-02-04 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:20:06' and `end` < '2025-02-04 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:20:19] Production.INFO: count ==301 [2025-02-04 03:20:19] Production.ERROR: pbx CDR StartTime 2025-02-04 00:20:06 - End Time 2025-02-04 03:20:06 [2025-02-04 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397566', 'tblTempUsageDetail_20' ) start [2025-02-04 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397566', 'tblTempUsageDetail_20' ) end [2025-02-04 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397566', 'tblTempVendorCDR_20' ) start [2025-02-04 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397566', 'tblTempVendorCDR_20' ) end [2025-02-04 03:20:19] Production.INFO: ProcessCDR(1,14397566,1,1,2) [2025-02-04 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397566', 'tblTempUsageDetail_20' ) start [2025-02-04 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397566', 'tblTempUsageDetail_20' ) end [2025-02-04 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:20:22] Production.INFO: ==8596== Releasing lock... [2025-02-04 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:20:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-04 03:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:21:06 [end_date_ymd] => 2025-02-04 03:21:06 [RateCDR] => 1 ) [2025-02-04 03:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:21:06' and `end` < '2025-02-04 03:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:21:18] Production.INFO: count ==298 [2025-02-04 03:21:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:21:06 - End Time 2025-02-04 03:21:06 [2025-02-04 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397571', 'tblTempUsageDetail_20' ) start [2025-02-04 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397571', 'tblTempUsageDetail_20' ) end [2025-02-04 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397571', 'tblTempVendorCDR_20' ) start [2025-02-04 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397571', 'tblTempVendorCDR_20' ) end [2025-02-04 03:21:18] Production.INFO: ProcessCDR(1,14397571,1,1,2) [2025-02-04 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397571', 'tblTempUsageDetail_20' ) start [2025-02-04 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397571', 'tblTempUsageDetail_20' ) end [2025-02-04 03:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:21:22] Production.INFO: ==8667== Releasing lock... [2025-02-04 03:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:21:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-04 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:22:05 [end_date_ymd] => 2025-02-04 03:22:05 [RateCDR] => 1 ) [2025-02-04 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:22:05' and `end` < '2025-02-04 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:22:18] Production.INFO: count ==296 [2025-02-04 03:22:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:22:05 - End Time 2025-02-04 03:22:05 [2025-02-04 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397576', 'tblTempUsageDetail_20' ) start [2025-02-04 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397576', 'tblTempUsageDetail_20' ) end [2025-02-04 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397576', 'tblTempVendorCDR_20' ) start [2025-02-04 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397576', 'tblTempVendorCDR_20' ) end [2025-02-04 03:22:18] Production.INFO: ProcessCDR(1,14397576,1,1,2) [2025-02-04 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397576', 'tblTempUsageDetail_20' ) start [2025-02-04 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397576', 'tblTempUsageDetail_20' ) end [2025-02-04 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:22:21] Production.INFO: ==8775== Releasing lock... [2025-02-04 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:22:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-04 03:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:23:05 [end_date_ymd] => 2025-02-04 03:23:05 [RateCDR] => 1 ) [2025-02-04 03:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:23:05' and `end` < '2025-02-04 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:23:19] Production.INFO: count ==295 [2025-02-04 03:23:19] Production.ERROR: pbx CDR StartTime 2025-02-04 00:23:05 - End Time 2025-02-04 03:23:05 [2025-02-04 03:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397581', 'tblTempUsageDetail_20' ) start [2025-02-04 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397581', 'tblTempUsageDetail_20' ) end [2025-02-04 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397581', 'tblTempVendorCDR_20' ) start [2025-02-04 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397581', 'tblTempVendorCDR_20' ) end [2025-02-04 03:23:19] Production.INFO: ProcessCDR(1,14397581,1,1,2) [2025-02-04 03:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397581', 'tblTempUsageDetail_20' ) start [2025-02-04 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397581', 'tblTempUsageDetail_20' ) end [2025-02-04 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:23:22] Production.INFO: ==8846== Releasing lock... [2025-02-04 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:23:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-04 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:24:05 [end_date_ymd] => 2025-02-04 03:24:05 [RateCDR] => 1 ) [2025-02-04 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:24:05' and `end` < '2025-02-04 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:24:17] Production.INFO: count ==295 [2025-02-04 03:24:17] Production.ERROR: pbx CDR StartTime 2025-02-04 00:24:05 - End Time 2025-02-04 03:24:05 [2025-02-04 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397586', 'tblTempUsageDetail_20' ) start [2025-02-04 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397586', 'tblTempUsageDetail_20' ) end [2025-02-04 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397586', 'tblTempVendorCDR_20' ) start [2025-02-04 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397586', 'tblTempVendorCDR_20' ) end [2025-02-04 03:24:17] Production.INFO: ProcessCDR(1,14397586,1,1,2) [2025-02-04 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397586', 'tblTempUsageDetail_20' ) start [2025-02-04 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397586', 'tblTempUsageDetail_20' ) end [2025-02-04 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:24:21] Production.INFO: ==8914== Releasing lock... [2025-02-04 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:24:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-04 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:25:05 [end_date_ymd] => 2025-02-04 03:25:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 00:25:05' and `end` < '2025-02-04 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-02-04 03:25:18] Production.INFO: count ==294 [2025-02-04 03:25:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:25:05 - End Time 2025-02-04 03:25:05 [2025-02-04 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397591', 'tblTempUsageDetail_20' ) start [2025-02-04 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397591', 'tblTempUsageDetail_20' ) end [2025-02-04 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397591', 'tblTempVendorCDR_20' ) start [2025-02-04 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397591', 'tblTempVendorCDR_20' ) end [2025-02-04 03:25:18] Production.INFO: ProcessCDR(1,14397591,1,1,2) [2025-02-04 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397591', 'tblTempUsageDetail_20' ) start [2025-02-04 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397591', 'tblTempUsageDetail_20' ) end [2025-02-04 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:25:21] Production.INFO: ==8987== Releasing lock... [2025-02-04 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:25:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-04 03:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:26:04 [end_date_ymd] => 2025-02-04 03:26:04 [RateCDR] => 1 ) [2025-02-04 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-02-04 00:26:04' and `end` < '2025-02-04 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-02-04 03:26:18] Production.INFO: count ==294 [2025-02-04 03:26:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:26:04 - End Time 2025-02-04 03:26:04 [2025-02-04 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397596', 'tblTempUsageDetail_20' ) start [2025-02-04 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397596', 'tblTempUsageDetail_20' ) end [2025-02-04 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397596', 'tblTempVendorCDR_20' ) start [2025-02-04 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397596', 'tblTempVendorCDR_20' ) end [2025-02-04 03:26:18] Production.INFO: ProcessCDR(1,14397596,1,1,2) [2025-02-04 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397596', 'tblTempUsageDetail_20' ) start [2025-02-04 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397596', 'tblTempUsageDetail_20' ) end [2025-02-04 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:26:21] Production.INFO: ==9059== Releasing lock... [2025-02-04 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:26:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-04 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:27:05 [end_date_ymd] => 2025-02-04 03:27:05 [RateCDR] => 1 ) [2025-02-04 03:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:27:05' and `end` < '2025-02-04 03:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:27:18] Production.INFO: count ==291 [2025-02-04 03:27:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:27:05 - End Time 2025-02-04 03:27:05 [2025-02-04 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397601', 'tblTempUsageDetail_20' ) start [2025-02-04 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397601', 'tblTempUsageDetail_20' ) end [2025-02-04 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397601', 'tblTempVendorCDR_20' ) start [2025-02-04 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397601', 'tblTempVendorCDR_20' ) end [2025-02-04 03:27:18] Production.INFO: ProcessCDR(1,14397601,1,1,2) [2025-02-04 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397601', 'tblTempUsageDetail_20' ) start [2025-02-04 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397601', 'tblTempUsageDetail_20' ) end [2025-02-04 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:27:21] Production.INFO: ==9133== Releasing lock... [2025-02-04 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:27:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-04 03:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:28:04 [end_date_ymd] => 2025-02-04 03:28:04 [RateCDR] => 1 ) [2025-02-04 03:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:28:04' and `end` < '2025-02-04 03:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:28:17] Production.INFO: count ==289 [2025-02-04 03:28:17] Production.ERROR: pbx CDR StartTime 2025-02-04 00:28:04 - End Time 2025-02-04 03:28:04 [2025-02-04 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397606', 'tblTempUsageDetail_20' ) start [2025-02-04 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397606', 'tblTempUsageDetail_20' ) end [2025-02-04 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397606', 'tblTempVendorCDR_20' ) start [2025-02-04 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397606', 'tblTempVendorCDR_20' ) end [2025-02-04 03:28:17] Production.INFO: ProcessCDR(1,14397606,1,1,2) [2025-02-04 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397606', 'tblTempUsageDetail_20' ) start [2025-02-04 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397606', 'tblTempUsageDetail_20' ) end [2025-02-04 03:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:28:20] Production.INFO: ==9203== Releasing lock... [2025-02-04 03:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:28:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-04 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:29:05 [end_date_ymd] => 2025-02-04 03:29:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 00:29:05' and `end` < '2025-02-04 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-02-04 03:29:18] Production.INFO: count ==284 [2025-02-04 03:29:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:29:05 - End Time 2025-02-04 03:29:05 [2025-02-04 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397611', 'tblTempUsageDetail_20' ) start [2025-02-04 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397611', 'tblTempUsageDetail_20' ) end [2025-02-04 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397611', 'tblTempVendorCDR_20' ) start [2025-02-04 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397611', 'tblTempVendorCDR_20' ) end [2025-02-04 03:29:18] Production.INFO: ProcessCDR(1,14397611,1,1,2) [2025-02-04 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397611', 'tblTempUsageDetail_20' ) start [2025-02-04 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397611', 'tblTempUsageDetail_20' ) end [2025-02-04 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:29:21] Production.INFO: ==9281== Releasing lock... [2025-02-04 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:29:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-04 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:30:06 [end_date_ymd] => 2025-02-04 03:30:06 [RateCDR] => 1 ) [2025-02-04 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:30:06' and `end` < '2025-02-04 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:30:19] Production.INFO: count ==280 [2025-02-04 03:30:19] Production.ERROR: pbx CDR StartTime 2025-02-04 00:30:06 - End Time 2025-02-04 03:30:06 [2025-02-04 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397615', 'tblTempUsageDetail_20' ) start [2025-02-04 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397615', 'tblTempUsageDetail_20' ) end [2025-02-04 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397615', 'tblTempVendorCDR_20' ) start [2025-02-04 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397615', 'tblTempVendorCDR_20' ) end [2025-02-04 03:30:19] Production.INFO: ProcessCDR(1,14397615,1,1,2) [2025-02-04 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397615', 'tblTempUsageDetail_20' ) start [2025-02-04 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397615', 'tblTempUsageDetail_20' ) end [2025-02-04 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:30:22] Production.INFO: ==9355== Releasing lock... [2025-02-04 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:30:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-04 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:31:05 [end_date_ymd] => 2025-02-04 03:31:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 00:31:05' and `end` < '2025-02-04 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-02-04 03:31:17] Production.INFO: count ==244 [2025-02-04 03:31:17] Production.ERROR: pbx CDR StartTime 2025-02-04 00:31:05 - End Time 2025-02-04 03:31:05 [2025-02-04 03:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397622', 'tblTempUsageDetail_20' ) start [2025-02-04 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397622', 'tblTempUsageDetail_20' ) end [2025-02-04 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397622', 'tblTempVendorCDR_20' ) start [2025-02-04 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397622', 'tblTempVendorCDR_20' ) end [2025-02-04 03:31:18] Production.INFO: ProcessCDR(1,14397622,1,1,2) [2025-02-04 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397622', 'tblTempUsageDetail_20' ) start [2025-02-04 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397622', 'tblTempUsageDetail_20' ) end [2025-02-04 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:31:21] Production.INFO: ==9430== Releasing lock... [2025-02-04 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:31:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-04 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:32:05 [end_date_ymd] => 2025-02-04 03:32:05 [RateCDR] => 1 ) [2025-02-04 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:32:05' and `end` < '2025-02-04 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:32:19] Production.INFO: count ==243 [2025-02-04 03:32:19] Production.ERROR: pbx CDR StartTime 2025-02-04 00:32:05 - End Time 2025-02-04 03:32:05 [2025-02-04 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397627', 'tblTempUsageDetail_20' ) start [2025-02-04 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397627', 'tblTempUsageDetail_20' ) end [2025-02-04 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397627', 'tblTempVendorCDR_20' ) start [2025-02-04 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397627', 'tblTempVendorCDR_20' ) end [2025-02-04 03:32:19] Production.INFO: ProcessCDR(1,14397627,1,1,2) [2025-02-04 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397627', 'tblTempUsageDetail_20' ) start [2025-02-04 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397627', 'tblTempUsageDetail_20' ) end [2025-02-04 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:32:22] Production.INFO: ==9501== Releasing lock... [2025-02-04 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:32:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-04 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:33:05 [end_date_ymd] => 2025-02-04 03:33:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 00:33:05' and `end` < '2025-02-04 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-02-04 03:33:18] Production.INFO: count ==243 [2025-02-04 03:33:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:33:05 - End Time 2025-02-04 03:33:05 [2025-02-04 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397632', 'tblTempUsageDetail_20' ) start [2025-02-04 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397632', 'tblTempUsageDetail_20' ) end [2025-02-04 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397632', 'tblTempVendorCDR_20' ) start [2025-02-04 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397632', 'tblTempVendorCDR_20' ) end [2025-02-04 03:33:18] Production.INFO: ProcessCDR(1,14397632,1,1,2) [2025-02-04 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397632', 'tblTempUsageDetail_20' ) start [2025-02-04 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397632', 'tblTempUsageDetail_20' ) end [2025-02-04 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:33:21] Production.INFO: ==9569== Releasing lock... [2025-02-04 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:33:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-04 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:34:05 [end_date_ymd] => 2025-02-04 03:34:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 00:34:05' and `end` < '2025-02-04 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-02-04 03:34:18] Production.INFO: count ==243 [2025-02-04 03:34:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:34:05 - End Time 2025-02-04 03:34:05 [2025-02-04 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397637', 'tblTempUsageDetail_20' ) start [2025-02-04 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397637', 'tblTempUsageDetail_20' ) end [2025-02-04 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397637', 'tblTempVendorCDR_20' ) start [2025-02-04 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397637', 'tblTempVendorCDR_20' ) end [2025-02-04 03:34:18] Production.INFO: ProcessCDR(1,14397637,1,1,2) [2025-02-04 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397637', 'tblTempUsageDetail_20' ) start [2025-02-04 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397637', 'tblTempUsageDetail_20' ) end [2025-02-04 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:34:21] Production.INFO: ==9641== Releasing lock... [2025-02-04 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:34:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-04 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:35:05 [end_date_ymd] => 2025-02-04 03:35:05 [RateCDR] => 1 ) [2025-02-04 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:35:05' and `end` < '2025-02-04 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:35:17] Production.INFO: count ==243 [2025-02-04 03:35:17] Production.ERROR: pbx CDR StartTime 2025-02-04 00:35:05 - End Time 2025-02-04 03:35:05 [2025-02-04 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397642', 'tblTempUsageDetail_20' ) start [2025-02-04 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397642', 'tblTempUsageDetail_20' ) end [2025-02-04 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397642', 'tblTempVendorCDR_20' ) start [2025-02-04 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397642', 'tblTempVendorCDR_20' ) end [2025-02-04 03:35:17] Production.INFO: ProcessCDR(1,14397642,1,1,2) [2025-02-04 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397642', 'tblTempUsageDetail_20' ) start [2025-02-04 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397642', 'tblTempUsageDetail_20' ) end [2025-02-04 03:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:35:21] Production.INFO: ==9711== Releasing lock... [2025-02-04 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:35:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-04 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:36:05 [end_date_ymd] => 2025-02-04 03:36:05 [RateCDR] => 1 ) [2025-02-04 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:36:05' and `end` < '2025-02-04 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:36:18] Production.INFO: count ==243 [2025-02-04 03:36:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:36:05 - End Time 2025-02-04 03:36:05 [2025-02-04 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397647', 'tblTempUsageDetail_20' ) start [2025-02-04 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397647', 'tblTempUsageDetail_20' ) end [2025-02-04 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397647', 'tblTempVendorCDR_20' ) start [2025-02-04 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397647', 'tblTempVendorCDR_20' ) end [2025-02-04 03:36:18] Production.INFO: ProcessCDR(1,14397647,1,1,2) [2025-02-04 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397647', 'tblTempUsageDetail_20' ) start [2025-02-04 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397647', 'tblTempUsageDetail_20' ) end [2025-02-04 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:36:22] Production.INFO: ==9783== Releasing lock... [2025-02-04 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:36:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-04 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:37:06 [end_date_ymd] => 2025-02-04 03:37:06 [RateCDR] => 1 ) [2025-02-04 03:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:37:06' and `end` < '2025-02-04 03:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:37:19] Production.INFO: count ==243 [2025-02-04 03:37:19] Production.ERROR: pbx CDR StartTime 2025-02-04 00:37:06 - End Time 2025-02-04 03:37:06 [2025-02-04 03:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397652', 'tblTempUsageDetail_20' ) start [2025-02-04 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397652', 'tblTempUsageDetail_20' ) end [2025-02-04 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397652', 'tblTempVendorCDR_20' ) start [2025-02-04 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397652', 'tblTempVendorCDR_20' ) end [2025-02-04 03:37:19] Production.INFO: ProcessCDR(1,14397652,1,1,2) [2025-02-04 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397652', 'tblTempUsageDetail_20' ) start [2025-02-04 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397652', 'tblTempUsageDetail_20' ) end [2025-02-04 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:37:22] Production.INFO: ==9855== Releasing lock... [2025-02-04 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:37:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-04 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:38:06 [end_date_ymd] => 2025-02-04 03:38:06 [RateCDR] => 1 ) [2025-02-04 03:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:38:06' and `end` < '2025-02-04 03:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:38:19] Production.INFO: count ==243 [2025-02-04 03:38:19] Production.ERROR: pbx CDR StartTime 2025-02-04 00:38:06 - End Time 2025-02-04 03:38:06 [2025-02-04 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397657', 'tblTempUsageDetail_20' ) start [2025-02-04 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397657', 'tblTempUsageDetail_20' ) end [2025-02-04 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397657', 'tblTempVendorCDR_20' ) start [2025-02-04 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397657', 'tblTempVendorCDR_20' ) end [2025-02-04 03:38:19] Production.INFO: ProcessCDR(1,14397657,1,1,2) [2025-02-04 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397657', 'tblTempUsageDetail_20' ) start [2025-02-04 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397657', 'tblTempUsageDetail_20' ) end [2025-02-04 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:38:22] Production.INFO: ==9970== Releasing lock... [2025-02-04 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:38:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-04 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:39:05 [end_date_ymd] => 2025-02-04 03:39:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 00:39:05' and `end` < '2025-02-04 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-02-04 03:39:19] Production.INFO: count ==242 [2025-02-04 03:39:19] Production.ERROR: pbx CDR StartTime 2025-02-04 00:39:05 - End Time 2025-02-04 03:39:05 [2025-02-04 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397662', 'tblTempUsageDetail_20' ) start [2025-02-04 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397662', 'tblTempUsageDetail_20' ) end [2025-02-04 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397662', 'tblTempVendorCDR_20' ) start [2025-02-04 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397662', 'tblTempVendorCDR_20' ) end [2025-02-04 03:39:19] Production.INFO: ProcessCDR(1,14397662,1,1,2) [2025-02-04 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397662', 'tblTempUsageDetail_20' ) start [2025-02-04 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397662', 'tblTempUsageDetail_20' ) end [2025-02-04 03:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:39:22] Production.INFO: ==10043== Releasing lock... [2025-02-04 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:39:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-04 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:40:06 [end_date_ymd] => 2025-02-04 03:40:06 [RateCDR] => 1 ) [2025-02-04 03:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:40:06' and `end` < '2025-02-04 03:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:40:19] Production.INFO: count ==238 [2025-02-04 03:40:19] Production.ERROR: pbx CDR StartTime 2025-02-04 00:40:06 - End Time 2025-02-04 03:40:06 [2025-02-04 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397667', 'tblTempUsageDetail_20' ) start [2025-02-04 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397667', 'tblTempUsageDetail_20' ) end [2025-02-04 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397667', 'tblTempVendorCDR_20' ) start [2025-02-04 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397667', 'tblTempVendorCDR_20' ) end [2025-02-04 03:40:19] Production.INFO: ProcessCDR(1,14397667,1,1,2) [2025-02-04 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397667', 'tblTempUsageDetail_20' ) start [2025-02-04 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397667', 'tblTempUsageDetail_20' ) end [2025-02-04 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:40:22] Production.INFO: ==10117== Releasing lock... [2025-02-04 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-04 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:41:05 [end_date_ymd] => 2025-02-04 03:41:05 [RateCDR] => 1 ) [2025-02-04 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:41:05' and `end` < '2025-02-04 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:41:18] Production.INFO: count ==223 [2025-02-04 03:41:19] Production.ERROR: pbx CDR StartTime 2025-02-04 00:41:05 - End Time 2025-02-04 03:41:05 [2025-02-04 03:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397673', 'tblTempUsageDetail_20' ) start [2025-02-04 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397673', 'tblTempUsageDetail_20' ) end [2025-02-04 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397673', 'tblTempVendorCDR_20' ) start [2025-02-04 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397673', 'tblTempVendorCDR_20' ) end [2025-02-04 03:41:19] Production.INFO: ProcessCDR(1,14397673,1,1,2) [2025-02-04 03:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397673', 'tblTempUsageDetail_20' ) start [2025-02-04 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397673', 'tblTempUsageDetail_20' ) end [2025-02-04 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:41:22] Production.INFO: ==10190== Releasing lock... [2025-02-04 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:41:22] Production.INFO: 29 MB #Memory Used# [2025-02-04 03:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:42:04 [end_date_ymd] => 2025-02-04 03:42:04 [RateCDR] => 1 ) [2025-02-04 03: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-02-04 00:42:04' and `end` < '2025-02-04 03: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-02-04 03:42:18] Production.INFO: count ==220 [2025-02-04 03:42:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:42:04 - End Time 2025-02-04 03:42:04 [2025-02-04 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397678', 'tblTempUsageDetail_20' ) start [2025-02-04 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397678', 'tblTempUsageDetail_20' ) end [2025-02-04 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397678', 'tblTempVendorCDR_20' ) start [2025-02-04 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397678', 'tblTempVendorCDR_20' ) end [2025-02-04 03:42:18] Production.INFO: ProcessCDR(1,14397678,1,1,2) [2025-02-04 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397678', 'tblTempUsageDetail_20' ) start [2025-02-04 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397678', 'tblTempUsageDetail_20' ) end [2025-02-04 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:42:21] Production.INFO: ==10261== Releasing lock... [2025-02-04 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:42:21] Production.INFO: 29 MB #Memory Used# [2025-02-04 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:43:05 [end_date_ymd] => 2025-02-04 03:43:05 [RateCDR] => 1 ) [2025-02-04 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:43:05' and `end` < '2025-02-04 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:43:18] Production.INFO: count ==220 [2025-02-04 03:43:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:43:05 - End Time 2025-02-04 03:43:05 [2025-02-04 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397683', 'tblTempUsageDetail_20' ) start [2025-02-04 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397683', 'tblTempUsageDetail_20' ) end [2025-02-04 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397683', 'tblTempVendorCDR_20' ) start [2025-02-04 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397683', 'tblTempVendorCDR_20' ) end [2025-02-04 03:43:18] Production.INFO: ProcessCDR(1,14397683,1,1,2) [2025-02-04 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397683', 'tblTempUsageDetail_20' ) start [2025-02-04 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397683', 'tblTempUsageDetail_20' ) end [2025-02-04 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:43:21] Production.INFO: ==10335== Releasing lock... [2025-02-04 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:43:21] Production.INFO: 29 MB #Memory Used# [2025-02-04 03:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:44:04 [end_date_ymd] => 2025-02-04 03:44:04 [RateCDR] => 1 ) [2025-02-04 03: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-02-04 00:44:04' and `end` < '2025-02-04 03:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:44:17] Production.INFO: count ==220 [2025-02-04 03:44:17] Production.ERROR: pbx CDR StartTime 2025-02-04 00:44:04 - End Time 2025-02-04 03:44:04 [2025-02-04 03:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397688', 'tblTempUsageDetail_20' ) start [2025-02-04 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397688', 'tblTempUsageDetail_20' ) end [2025-02-04 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397688', 'tblTempVendorCDR_20' ) start [2025-02-04 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397688', 'tblTempVendorCDR_20' ) end [2025-02-04 03:44:17] Production.INFO: ProcessCDR(1,14397688,1,1,2) [2025-02-04 03:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397688', 'tblTempUsageDetail_20' ) start [2025-02-04 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397688', 'tblTempUsageDetail_20' ) end [2025-02-04 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:44:21] Production.INFO: ==10405== Releasing lock... [2025-02-04 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:44:21] Production.INFO: 29 MB #Memory Used# [2025-02-04 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:45:05 [end_date_ymd] => 2025-02-04 03:45:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 00:45:05' and `end` < '2025-02-04 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-02-04 03:45:18] Production.INFO: count ==220 [2025-02-04 03:45:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:45:05 - End Time 2025-02-04 03:45:05 [2025-02-04 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397693', 'tblTempUsageDetail_20' ) start [2025-02-04 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397693', 'tblTempUsageDetail_20' ) end [2025-02-04 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397693', 'tblTempVendorCDR_20' ) start [2025-02-04 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397693', 'tblTempVendorCDR_20' ) end [2025-02-04 03:45:18] Production.INFO: ProcessCDR(1,14397693,1,1,2) [2025-02-04 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397693', 'tblTempUsageDetail_20' ) start [2025-02-04 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397693', 'tblTempUsageDetail_20' ) end [2025-02-04 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:45:22] Production.INFO: ==10477== Releasing lock... [2025-02-04 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:45:22] Production.INFO: 29 MB #Memory Used# [2025-02-04 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:46:06 [end_date_ymd] => 2025-02-04 03:46:06 [RateCDR] => 1 ) [2025-02-04 03:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:46:06' and `end` < '2025-02-04 03:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:46:19] Production.INFO: count ==220 [2025-02-04 03:46:19] Production.ERROR: pbx CDR StartTime 2025-02-04 00:46:06 - End Time 2025-02-04 03:46:06 [2025-02-04 03:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397698', 'tblTempUsageDetail_20' ) start [2025-02-04 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397698', 'tblTempUsageDetail_20' ) end [2025-02-04 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397698', 'tblTempVendorCDR_20' ) start [2025-02-04 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397698', 'tblTempVendorCDR_20' ) end [2025-02-04 03:46:19] Production.INFO: ProcessCDR(1,14397698,1,1,2) [2025-02-04 03:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397698', 'tblTempUsageDetail_20' ) start [2025-02-04 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397698', 'tblTempUsageDetail_20' ) end [2025-02-04 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:46:22] Production.INFO: ==10547== Releasing lock... [2025-02-04 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:46:22] Production.INFO: 29 MB #Memory Used# [2025-02-04 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:47:05 [end_date_ymd] => 2025-02-04 03:47:05 [RateCDR] => 1 ) [2025-02-04 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:47:05' and `end` < '2025-02-04 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:47:18] Production.INFO: count ==217 [2025-02-04 03:47:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:47:05 - End Time 2025-02-04 03:47:05 [2025-02-04 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397703', 'tblTempUsageDetail_20' ) start [2025-02-04 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397703', 'tblTempUsageDetail_20' ) end [2025-02-04 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397703', 'tblTempVendorCDR_20' ) start [2025-02-04 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397703', 'tblTempVendorCDR_20' ) end [2025-02-04 03:47:18] Production.INFO: ProcessCDR(1,14397703,1,1,2) [2025-02-04 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397703', 'tblTempUsageDetail_20' ) start [2025-02-04 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397703', 'tblTempUsageDetail_20' ) end [2025-02-04 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:47:21] Production.INFO: ==10619== Releasing lock... [2025-02-04 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:47:21] Production.INFO: 29 MB #Memory Used# [2025-02-04 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:48:06 [end_date_ymd] => 2025-02-04 03:48:06 [RateCDR] => 1 ) [2025-02-04 03:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:48:06' and `end` < '2025-02-04 03:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:48:18] Production.INFO: count ==217 [2025-02-04 03:48:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:48:06 - End Time 2025-02-04 03:48:06 [2025-02-04 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397708', 'tblTempUsageDetail_20' ) start [2025-02-04 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397708', 'tblTempUsageDetail_20' ) end [2025-02-04 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397708', 'tblTempVendorCDR_20' ) start [2025-02-04 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397708', 'tblTempVendorCDR_20' ) end [2025-02-04 03:48:18] Production.INFO: ProcessCDR(1,14397708,1,1,2) [2025-02-04 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397708', 'tblTempUsageDetail_20' ) start [2025-02-04 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397708', 'tblTempUsageDetail_20' ) end [2025-02-04 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:48:21] Production.INFO: ==10690== Releasing lock... [2025-02-04 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:48:21] Production.INFO: 29 MB #Memory Used# [2025-02-04 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:49:05 [end_date_ymd] => 2025-02-04 03:49:05 [RateCDR] => 1 ) [2025-02-04 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:49:05' and `end` < '2025-02-04 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:49:17] Production.INFO: count ==217 [2025-02-04 03:49:17] Production.ERROR: pbx CDR StartTime 2025-02-04 00:49:05 - End Time 2025-02-04 03:49:05 [2025-02-04 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397713', 'tblTempUsageDetail_20' ) start [2025-02-04 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397713', 'tblTempUsageDetail_20' ) end [2025-02-04 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397713', 'tblTempVendorCDR_20' ) start [2025-02-04 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397713', 'tblTempVendorCDR_20' ) end [2025-02-04 03:49:17] Production.INFO: ProcessCDR(1,14397713,1,1,2) [2025-02-04 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397713', 'tblTempUsageDetail_20' ) start [2025-02-04 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397713', 'tblTempUsageDetail_20' ) end [2025-02-04 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:49:21] Production.INFO: ==10771== Releasing lock... [2025-02-04 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:49:21] Production.INFO: 29 MB #Memory Used# [2025-02-04 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:50:06 [end_date_ymd] => 2025-02-04 03:50:06 [RateCDR] => 1 ) [2025-02-04 03:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:50:06' and `end` < '2025-02-04 03:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:50:19] Production.INFO: count ==211 [2025-02-04 03:50:19] Production.ERROR: pbx CDR StartTime 2025-02-04 00:50:06 - End Time 2025-02-04 03:50:06 [2025-02-04 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397718', 'tblTempUsageDetail_20' ) start [2025-02-04 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397718', 'tblTempUsageDetail_20' ) end [2025-02-04 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397718', 'tblTempVendorCDR_20' ) start [2025-02-04 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397718', 'tblTempVendorCDR_20' ) end [2025-02-04 03:50:19] Production.INFO: ProcessCDR(1,14397718,1,1,2) [2025-02-04 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397718', 'tblTempUsageDetail_20' ) start [2025-02-04 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397718', 'tblTempUsageDetail_20' ) end [2025-02-04 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:50:22] Production.INFO: ==10845== Releasing lock... [2025-02-04 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:50:22] Production.INFO: 29 MB #Memory Used# [2025-02-04 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:51:05 [end_date_ymd] => 2025-02-04 03:51:05 [RateCDR] => 1 ) [2025-02-04 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:51:05' and `end` < '2025-02-04 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:51:18] Production.INFO: count ==184 [2025-02-04 03:51:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:51:05 - End Time 2025-02-04 03:51:05 [2025-02-04 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397724', 'tblTempUsageDetail_20' ) start [2025-02-04 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397724', 'tblTempUsageDetail_20' ) end [2025-02-04 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397724', 'tblTempVendorCDR_20' ) start [2025-02-04 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397724', 'tblTempVendorCDR_20' ) end [2025-02-04 03:51:18] Production.INFO: ProcessCDR(1,14397724,1,1,2) [2025-02-04 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397724', 'tblTempUsageDetail_20' ) start [2025-02-04 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397724', 'tblTempUsageDetail_20' ) end [2025-02-04 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:51:21] Production.INFO: ==10917== Releasing lock... [2025-02-04 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:51:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-04 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:52:06 [end_date_ymd] => 2025-02-04 03:52:06 [RateCDR] => 1 ) [2025-02-04 03:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:52:06' and `end` < '2025-02-04 03:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:52:18] Production.INFO: count ==184 [2025-02-04 03:52:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:52:06 - End Time 2025-02-04 03:52:06 [2025-02-04 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397729', 'tblTempUsageDetail_20' ) start [2025-02-04 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397729', 'tblTempUsageDetail_20' ) end [2025-02-04 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397729', 'tblTempVendorCDR_20' ) start [2025-02-04 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397729', 'tblTempVendorCDR_20' ) end [2025-02-04 03:52:18] Production.INFO: ProcessCDR(1,14397729,1,1,2) [2025-02-04 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397729', 'tblTempUsageDetail_20' ) start [2025-02-04 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397729', 'tblTempUsageDetail_20' ) end [2025-02-04 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:52:22] Production.INFO: ==10989== Releasing lock... [2025-02-04 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:52:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-04 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:53:05 [end_date_ymd] => 2025-02-04 03:53:05 [RateCDR] => 1 ) [2025-02-04 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:53:05' and `end` < '2025-02-04 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:53:20] Production.INFO: count ==184 [2025-02-04 03:53:20] Production.ERROR: pbx CDR StartTime 2025-02-04 00:53:05 - End Time 2025-02-04 03:53:05 [2025-02-04 03:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397734', 'tblTempUsageDetail_20' ) start [2025-02-04 03:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397734', 'tblTempUsageDetail_20' ) end [2025-02-04 03:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397734', 'tblTempVendorCDR_20' ) start [2025-02-04 03:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397734', 'tblTempVendorCDR_20' ) end [2025-02-04 03:53:20] Production.INFO: ProcessCDR(1,14397734,1,1,2) [2025-02-04 03:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397734', 'tblTempUsageDetail_20' ) start [2025-02-04 03:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397734', 'tblTempUsageDetail_20' ) end [2025-02-04 03:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:53:23] Production.INFO: ==11105== Releasing lock... [2025-02-04 03:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:53:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-04 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:54:06 [end_date_ymd] => 2025-02-04 03:54:06 [RateCDR] => 1 ) [2025-02-04 03:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:54:06' and `end` < '2025-02-04 03:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:54:19] Production.INFO: count ==184 [2025-02-04 03:54:19] Production.ERROR: pbx CDR StartTime 2025-02-04 00:54:06 - End Time 2025-02-04 03:54:06 [2025-02-04 03:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397739', 'tblTempUsageDetail_20' ) start [2025-02-04 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397739', 'tblTempUsageDetail_20' ) end [2025-02-04 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397739', 'tblTempVendorCDR_20' ) start [2025-02-04 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397739', 'tblTempVendorCDR_20' ) end [2025-02-04 03:54:19] Production.INFO: ProcessCDR(1,14397739,1,1,2) [2025-02-04 03:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397739', 'tblTempUsageDetail_20' ) start [2025-02-04 03:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397739', 'tblTempUsageDetail_20' ) end [2025-02-04 03:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:54:23] Production.INFO: ==11176== Releasing lock... [2025-02-04 03:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:54:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-04 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:55:05 [end_date_ymd] => 2025-02-04 03:55:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 00:55:05' and `end` < '2025-02-04 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-02-04 03:55:18] Production.INFO: count ==184 [2025-02-04 03:55:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:55:05 - End Time 2025-02-04 03:55:05 [2025-02-04 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397744', 'tblTempUsageDetail_20' ) start [2025-02-04 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397744', 'tblTempUsageDetail_20' ) end [2025-02-04 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397744', 'tblTempVendorCDR_20' ) start [2025-02-04 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397744', 'tblTempVendorCDR_20' ) end [2025-02-04 03:55:18] Production.INFO: ProcessCDR(1,14397744,1,1,2) [2025-02-04 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397744', 'tblTempUsageDetail_20' ) start [2025-02-04 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397744', 'tblTempUsageDetail_20' ) end [2025-02-04 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:55:21] Production.INFO: ==11248== Releasing lock... [2025-02-04 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-04 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:56:05 [end_date_ymd] => 2025-02-04 03:56:05 [RateCDR] => 1 ) [2025-02-04 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:56:05' and `end` < '2025-02-04 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:56:19] Production.INFO: count ==184 [2025-02-04 03:56:19] Production.ERROR: pbx CDR StartTime 2025-02-04 00:56:05 - End Time 2025-02-04 03:56:05 [2025-02-04 03:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397749', 'tblTempUsageDetail_20' ) start [2025-02-04 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397749', 'tblTempUsageDetail_20' ) end [2025-02-04 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397749', 'tblTempVendorCDR_20' ) start [2025-02-04 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397749', 'tblTempVendorCDR_20' ) end [2025-02-04 03:56:19] Production.INFO: ProcessCDR(1,14397749,1,1,2) [2025-02-04 03:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397749', 'tblTempUsageDetail_20' ) start [2025-02-04 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397749', 'tblTempUsageDetail_20' ) end [2025-02-04 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:56:22] Production.INFO: ==11322== Releasing lock... [2025-02-04 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:56:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-04 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:57:05 [end_date_ymd] => 2025-02-04 03:57:05 [RateCDR] => 1 ) [2025-02-04 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:57:05' and `end` < '2025-02-04 03:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:57:19] Production.INFO: count ==184 [2025-02-04 03:57:19] Production.ERROR: pbx CDR StartTime 2025-02-04 00:57:05 - End Time 2025-02-04 03:57:05 [2025-02-04 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397754', 'tblTempUsageDetail_20' ) start [2025-02-04 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397754', 'tblTempUsageDetail_20' ) end [2025-02-04 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397754', 'tblTempVendorCDR_20' ) start [2025-02-04 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397754', 'tblTempVendorCDR_20' ) end [2025-02-04 03:57:19] Production.INFO: ProcessCDR(1,14397754,1,1,2) [2025-02-04 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397754', 'tblTempUsageDetail_20' ) start [2025-02-04 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397754', 'tblTempUsageDetail_20' ) end [2025-02-04 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:57:22] Production.INFO: ==11392== Releasing lock... [2025-02-04 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:57:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-04 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:58:05 [end_date_ymd] => 2025-02-04 03:58:05 [RateCDR] => 1 ) [2025-02-04 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 00:58:05' and `end` < '2025-02-04 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 03:58:17] Production.INFO: count ==182 [2025-02-04 03:58:17] Production.ERROR: pbx CDR StartTime 2025-02-04 00:58:05 - End Time 2025-02-04 03:58:05 [2025-02-04 03:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397759', 'tblTempUsageDetail_20' ) start [2025-02-04 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397759', 'tblTempUsageDetail_20' ) end [2025-02-04 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397759', 'tblTempVendorCDR_20' ) start [2025-02-04 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397759', 'tblTempVendorCDR_20' ) end [2025-02-04 03:58:17] Production.INFO: ProcessCDR(1,14397759,1,1,2) [2025-02-04 03:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397759', 'tblTempUsageDetail_20' ) start [2025-02-04 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397759', 'tblTempUsageDetail_20' ) end [2025-02-04 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:58:21] Production.INFO: ==11465== Releasing lock... [2025-02-04 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:58:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-04 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 00:59:05 [end_date_ymd] => 2025-02-04 03:59:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 00:59:05' and `end` < '2025-02-04 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-02-04 03:59:18] Production.INFO: count ==182 [2025-02-04 03:59:18] Production.ERROR: pbx CDR StartTime 2025-02-04 00:59:05 - End Time 2025-02-04 03:59:05 [2025-02-04 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397764', 'tblTempUsageDetail_20' ) start [2025-02-04 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397764', 'tblTempUsageDetail_20' ) end [2025-02-04 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397764', 'tblTempVendorCDR_20' ) start [2025-02-04 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397764', 'tblTempVendorCDR_20' ) end [2025-02-04 03:59:18] Production.INFO: ProcessCDR(1,14397764,1,1,2) [2025-02-04 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397764', 'tblTempUsageDetail_20' ) start [2025-02-04 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397764', 'tblTempUsageDetail_20' ) end [2025-02-04 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 03:59:21] Production.INFO: ==11536== Releasing lock... [2025-02-04 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 03:59:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-04 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:00:06 [end_date_ymd] => 2025-02-04 04:00:06 [RateCDR] => 1 ) [2025-02-04 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-02-04 01:00:06' and `end` < '2025-02-04 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-02-04 04:00:19] Production.INFO: count ==176 [2025-02-04 04:00:19] Production.ERROR: pbx CDR StartTime 2025-02-04 01:00:06 - End Time 2025-02-04 04:00:06 [2025-02-04 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397771', 'tblTempUsageDetail_20' ) start [2025-02-04 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397771', 'tblTempUsageDetail_20' ) end [2025-02-04 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397771', 'tblTempVendorCDR_20' ) start [2025-02-04 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397771', 'tblTempVendorCDR_20' ) end [2025-02-04 04:00:20] Production.INFO: ProcessCDR(1,14397771,1,1,2) [2025-02-04 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397771', 'tblTempUsageDetail_20' ) start [2025-02-04 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397771', 'tblTempUsageDetail_20' ) end [2025-02-04 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:00:23] Production.INFO: ==11612== Releasing lock... [2025-02-04 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:00:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-04 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:01:06 [end_date_ymd] => 2025-02-04 04:01:06 [RateCDR] => 1 ) [2025-02-04 04:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:01:06' and `end` < '2025-02-04 04:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:01:18] Production.INFO: count ==160 [2025-02-04 04:01:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:01:06 - End Time 2025-02-04 04:01:06 [2025-02-04 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397776', 'tblTempUsageDetail_20' ) start [2025-02-04 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397776', 'tblTempUsageDetail_20' ) end [2025-02-04 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397776', 'tblTempVendorCDR_20' ) start [2025-02-04 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397776', 'tblTempVendorCDR_20' ) end [2025-02-04 04:01:18] Production.INFO: ProcessCDR(1,14397776,1,1,2) [2025-02-04 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397776', 'tblTempUsageDetail_20' ) start [2025-02-04 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397776', 'tblTempUsageDetail_20' ) end [2025-02-04 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:01:21] Production.INFO: ==11697== Releasing lock... [2025-02-04 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-04 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:02:05 [end_date_ymd] => 2025-02-04 04:02:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 01:02:05' and `end` < '2025-02-04 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-02-04 04:02:18] Production.INFO: count ==160 [2025-02-04 04:02:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:02:05 - End Time 2025-02-04 04:02:05 [2025-02-04 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397781', 'tblTempUsageDetail_20' ) start [2025-02-04 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397781', 'tblTempUsageDetail_20' ) end [2025-02-04 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397781', 'tblTempVendorCDR_20' ) start [2025-02-04 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397781', 'tblTempVendorCDR_20' ) end [2025-02-04 04:02:18] Production.INFO: ProcessCDR(1,14397781,1,1,2) [2025-02-04 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397781', 'tblTempUsageDetail_20' ) start [2025-02-04 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397781', 'tblTempUsageDetail_20' ) end [2025-02-04 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:02:21] Production.INFO: ==11771== Releasing lock... [2025-02-04 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:02:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-04 04:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:03:06 [end_date_ymd] => 2025-02-04 04:03:06 [RateCDR] => 1 ) [2025-02-04 04:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:03:06' and `end` < '2025-02-04 04:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:03:19] Production.INFO: count ==160 [2025-02-04 04:03:19] Production.ERROR: pbx CDR StartTime 2025-02-04 01:03:06 - End Time 2025-02-04 04:03:06 [2025-02-04 04:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397786', 'tblTempUsageDetail_20' ) start [2025-02-04 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397786', 'tblTempUsageDetail_20' ) end [2025-02-04 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397786', 'tblTempVendorCDR_20' ) start [2025-02-04 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397786', 'tblTempVendorCDR_20' ) end [2025-02-04 04:03:19] Production.INFO: ProcessCDR(1,14397786,1,1,2) [2025-02-04 04:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397786', 'tblTempUsageDetail_20' ) start [2025-02-04 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397786', 'tblTempUsageDetail_20' ) end [2025-02-04 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:03:22] Production.INFO: ==11841== Releasing lock... [2025-02-04 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:03:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-04 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:04:05 [end_date_ymd] => 2025-02-04 04:04:05 [RateCDR] => 1 ) [2025-02-04 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:04:05' and `end` < '2025-02-04 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:04:18] Production.INFO: count ==156 [2025-02-04 04:04:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:04:05 - End Time 2025-02-04 04:04:05 [2025-02-04 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397791', 'tblTempUsageDetail_20' ) start [2025-02-04 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397791', 'tblTempUsageDetail_20' ) end [2025-02-04 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397791', 'tblTempVendorCDR_20' ) start [2025-02-04 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397791', 'tblTempVendorCDR_20' ) end [2025-02-04 04:04:18] Production.INFO: ProcessCDR(1,14397791,1,1,2) [2025-02-04 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397791', 'tblTempUsageDetail_20' ) start [2025-02-04 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397791', 'tblTempUsageDetail_20' ) end [2025-02-04 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:04:21] Production.INFO: ==11912== Releasing lock... [2025-02-04 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:04:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-04 04:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:05:06 [end_date_ymd] => 2025-02-04 04:05:06 [RateCDR] => 1 ) [2025-02-04 04:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:05:06' and `end` < '2025-02-04 04:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:05:19] Production.INFO: count ==155 [2025-02-04 04:05:19] Production.ERROR: pbx CDR StartTime 2025-02-04 01:05:06 - End Time 2025-02-04 04:05:06 [2025-02-04 04:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397796', 'tblTempUsageDetail_20' ) start [2025-02-04 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397796', 'tblTempUsageDetail_20' ) end [2025-02-04 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397796', 'tblTempVendorCDR_20' ) start [2025-02-04 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397796', 'tblTempVendorCDR_20' ) end [2025-02-04 04:05:19] Production.INFO: ProcessCDR(1,14397796,1,1,2) [2025-02-04 04:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397796', 'tblTempUsageDetail_20' ) start [2025-02-04 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397796', 'tblTempUsageDetail_20' ) end [2025-02-04 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:05:22] Production.INFO: ==11982== Releasing lock... [2025-02-04 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:05:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-04 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:06:05 [end_date_ymd] => 2025-02-04 04:06:05 [RateCDR] => 1 ) [2025-02-04 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:06:05' and `end` < '2025-02-04 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:06:18] Production.INFO: count ==155 [2025-02-04 04:06:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:06:05 - End Time 2025-02-04 04:06:05 [2025-02-04 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397801', 'tblTempUsageDetail_20' ) start [2025-02-04 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397801', 'tblTempUsageDetail_20' ) end [2025-02-04 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397801', 'tblTempVendorCDR_20' ) start [2025-02-04 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397801', 'tblTempVendorCDR_20' ) end [2025-02-04 04:06:18] Production.INFO: ProcessCDR(1,14397801,1,1,2) [2025-02-04 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397801', 'tblTempUsageDetail_20' ) start [2025-02-04 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397801', 'tblTempUsageDetail_20' ) end [2025-02-04 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:06:21] Production.INFO: ==12053== Releasing lock... [2025-02-04 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:06:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-04 04:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:07:06 [end_date_ymd] => 2025-02-04 04:07:06 [RateCDR] => 1 ) [2025-02-04 04:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:07:06' and `end` < '2025-02-04 04:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:07:18] Production.INFO: count ==155 [2025-02-04 04:07:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:07:06 - End Time 2025-02-04 04:07:06 [2025-02-04 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397806', 'tblTempUsageDetail_20' ) start [2025-02-04 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397806', 'tblTempUsageDetail_20' ) end [2025-02-04 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397806', 'tblTempVendorCDR_20' ) start [2025-02-04 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397806', 'tblTempVendorCDR_20' ) end [2025-02-04 04:07:18] Production.INFO: ProcessCDR(1,14397806,1,1,2) [2025-02-04 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397806', 'tblTempUsageDetail_20' ) start [2025-02-04 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397806', 'tblTempUsageDetail_20' ) end [2025-02-04 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:07:21] Production.INFO: ==12127== Releasing lock... [2025-02-04 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:07:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-04 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:08:05 [end_date_ymd] => 2025-02-04 04:08:05 [RateCDR] => 1 ) [2025-02-04 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:08:05' and `end` < '2025-02-04 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:08:18] Production.INFO: count ==155 [2025-02-04 04:08:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:08:05 - End Time 2025-02-04 04:08:05 [2025-02-04 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397811', 'tblTempUsageDetail_20' ) start [2025-02-04 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397811', 'tblTempUsageDetail_20' ) end [2025-02-04 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397811', 'tblTempVendorCDR_20' ) start [2025-02-04 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397811', 'tblTempVendorCDR_20' ) end [2025-02-04 04:08:18] Production.INFO: ProcessCDR(1,14397811,1,1,2) [2025-02-04 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397811', 'tblTempUsageDetail_20' ) start [2025-02-04 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397811', 'tblTempUsageDetail_20' ) end [2025-02-04 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:08:21] Production.INFO: ==12213== Releasing lock... [2025-02-04 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:08:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-04 04:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:09:06 [end_date_ymd] => 2025-02-04 04:09:06 [RateCDR] => 1 ) [2025-02-04 04:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:09:06' and `end` < '2025-02-04 04:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:09:19] Production.INFO: count ==155 [2025-02-04 04:09:19] Production.ERROR: pbx CDR StartTime 2025-02-04 01:09:06 - End Time 2025-02-04 04:09:06 [2025-02-04 04:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397816', 'tblTempUsageDetail_20' ) start [2025-02-04 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397816', 'tblTempUsageDetail_20' ) end [2025-02-04 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397816', 'tblTempVendorCDR_20' ) start [2025-02-04 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397816', 'tblTempVendorCDR_20' ) end [2025-02-04 04:09:19] Production.INFO: ProcessCDR(1,14397816,1,1,2) [2025-02-04 04:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397816', 'tblTempUsageDetail_20' ) start [2025-02-04 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397816', 'tblTempUsageDetail_20' ) end [2025-02-04 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:09:22] Production.INFO: ==12325== Releasing lock... [2025-02-04 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:09:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-04 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:10:06 [end_date_ymd] => 2025-02-04 04:10:06 [RateCDR] => 1 ) [2025-02-04 04:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:10:06' and `end` < '2025-02-04 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:10:18] Production.INFO: count ==149 [2025-02-04 04:10:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:10:06 - End Time 2025-02-04 04:10:06 [2025-02-04 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397822', 'tblTempUsageDetail_20' ) start [2025-02-04 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397822', 'tblTempUsageDetail_20' ) end [2025-02-04 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397822', 'tblTempVendorCDR_20' ) start [2025-02-04 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397822', 'tblTempVendorCDR_20' ) end [2025-02-04 04:10:18] Production.INFO: ProcessCDR(1,14397822,1,1,2) [2025-02-04 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397822', 'tblTempUsageDetail_20' ) start [2025-02-04 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397822', 'tblTempUsageDetail_20' ) end [2025-02-04 04:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:10:21] Production.INFO: ==12397== Releasing lock... [2025-02-04 04:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:10:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-04 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:11:05 [end_date_ymd] => 2025-02-04 04:11:05 [RateCDR] => 1 ) [2025-02-04 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:11:05' and `end` < '2025-02-04 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:11:19] Production.INFO: count ==132 [2025-02-04 04:11:19] Production.ERROR: pbx CDR StartTime 2025-02-04 01:11:05 - End Time 2025-02-04 04:11:05 [2025-02-04 04:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397827', 'tblTempUsageDetail_20' ) start [2025-02-04 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397827', 'tblTempUsageDetail_20' ) end [2025-02-04 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397827', 'tblTempVendorCDR_20' ) start [2025-02-04 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397827', 'tblTempVendorCDR_20' ) end [2025-02-04 04:11:19] Production.INFO: ProcessCDR(1,14397827,1,1,2) [2025-02-04 04:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397827', 'tblTempUsageDetail_20' ) start [2025-02-04 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397827', 'tblTempUsageDetail_20' ) end [2025-02-04 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:11:22] Production.INFO: ==12472== Releasing lock... [2025-02-04 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:11:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:12:06 [end_date_ymd] => 2025-02-04 04:12:06 [RateCDR] => 1 ) [2025-02-04 04:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:12:06' and `end` < '2025-02-04 04:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:12:19] Production.INFO: count ==132 [2025-02-04 04:12:19] Production.ERROR: pbx CDR StartTime 2025-02-04 01:12:06 - End Time 2025-02-04 04:12:06 [2025-02-04 04:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397832', 'tblTempUsageDetail_20' ) start [2025-02-04 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397832', 'tblTempUsageDetail_20' ) end [2025-02-04 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397832', 'tblTempVendorCDR_20' ) start [2025-02-04 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397832', 'tblTempVendorCDR_20' ) end [2025-02-04 04:12:19] Production.INFO: ProcessCDR(1,14397832,1,1,2) [2025-02-04 04:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397832', 'tblTempUsageDetail_20' ) start [2025-02-04 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397832', 'tblTempUsageDetail_20' ) end [2025-02-04 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:12:22] Production.INFO: ==12543== Releasing lock... [2025-02-04 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:12:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:13:05 [end_date_ymd] => 2025-02-04 04:13:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 01:13:05' and `end` < '2025-02-04 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-02-04 04:13:18] Production.INFO: count ==131 [2025-02-04 04:13:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:13:05 - End Time 2025-02-04 04:13:05 [2025-02-04 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397837', 'tblTempUsageDetail_20' ) start [2025-02-04 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397837', 'tblTempUsageDetail_20' ) end [2025-02-04 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397837', 'tblTempVendorCDR_20' ) start [2025-02-04 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397837', 'tblTempVendorCDR_20' ) end [2025-02-04 04:13:18] Production.INFO: ProcessCDR(1,14397837,1,1,2) [2025-02-04 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397837', 'tblTempUsageDetail_20' ) start [2025-02-04 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397837', 'tblTempUsageDetail_20' ) end [2025-02-04 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:13:21] Production.INFO: ==12614== Releasing lock... [2025-02-04 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:13:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:14:06 [end_date_ymd] => 2025-02-04 04:14:06 [RateCDR] => 1 ) [2025-02-04 04:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:14:06' and `end` < '2025-02-04 04:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:14:19] Production.INFO: count ==131 [2025-02-04 04:14:19] Production.ERROR: pbx CDR StartTime 2025-02-04 01:14:06 - End Time 2025-02-04 04:14:06 [2025-02-04 04:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397842', 'tblTempUsageDetail_20' ) start [2025-02-04 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397842', 'tblTempUsageDetail_20' ) end [2025-02-04 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397842', 'tblTempVendorCDR_20' ) start [2025-02-04 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397842', 'tblTempVendorCDR_20' ) end [2025-02-04 04:14:19] Production.INFO: ProcessCDR(1,14397842,1,1,2) [2025-02-04 04:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397842', 'tblTempUsageDetail_20' ) start [2025-02-04 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397842', 'tblTempUsageDetail_20' ) end [2025-02-04 04:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:14:22] Production.INFO: ==12688== Releasing lock... [2025-02-04 04:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:14:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:15:05 [end_date_ymd] => 2025-02-04 04:15:05 [RateCDR] => 1 ) [2025-02-04 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:15:05' and `end` < '2025-02-04 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:15:18] Production.INFO: count ==128 [2025-02-04 04:15:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:15:05 - End Time 2025-02-04 04:15:05 [2025-02-04 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397847', 'tblTempUsageDetail_20' ) start [2025-02-04 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397847', 'tblTempUsageDetail_20' ) end [2025-02-04 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397847', 'tblTempVendorCDR_20' ) start [2025-02-04 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397847', 'tblTempVendorCDR_20' ) end [2025-02-04 04:15:18] Production.INFO: ProcessCDR(1,14397847,1,1,2) [2025-02-04 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397847', 'tblTempUsageDetail_20' ) start [2025-02-04 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397847', 'tblTempUsageDetail_20' ) end [2025-02-04 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:15:21] Production.INFO: ==12758== Releasing lock... [2025-02-04 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:16:05 [end_date_ymd] => 2025-02-04 04:16:05 [RateCDR] => 1 ) [2025-02-04 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:16:05' and `end` < '2025-02-04 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:16:18] Production.INFO: count ==127 [2025-02-04 04:16:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:16:05 - End Time 2025-02-04 04:16:05 [2025-02-04 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397852', 'tblTempUsageDetail_20' ) start [2025-02-04 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397852', 'tblTempUsageDetail_20' ) end [2025-02-04 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397852', 'tblTempVendorCDR_20' ) start [2025-02-04 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397852', 'tblTempVendorCDR_20' ) end [2025-02-04 04:16:18] Production.INFO: ProcessCDR(1,14397852,1,1,2) [2025-02-04 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397852', 'tblTempUsageDetail_20' ) start [2025-02-04 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397852', 'tblTempUsageDetail_20' ) end [2025-02-04 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:16:21] Production.INFO: ==12829== Releasing lock... [2025-02-04 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:16:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:17:05 [end_date_ymd] => 2025-02-04 04:17:05 [RateCDR] => 1 ) [2025-02-04 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:17:05' and `end` < '2025-02-04 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:17:18] Production.INFO: count ==126 [2025-02-04 04:17:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:17:05 - End Time 2025-02-04 04:17:05 [2025-02-04 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397857', 'tblTempUsageDetail_20' ) start [2025-02-04 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397857', 'tblTempUsageDetail_20' ) end [2025-02-04 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397857', 'tblTempVendorCDR_20' ) start [2025-02-04 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397857', 'tblTempVendorCDR_20' ) end [2025-02-04 04:17:18] Production.INFO: ProcessCDR(1,14397857,1,1,2) [2025-02-04 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397857', 'tblTempUsageDetail_20' ) start [2025-02-04 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397857', 'tblTempUsageDetail_20' ) end [2025-02-04 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:17:21] Production.INFO: ==12898== Releasing lock... [2025-02-04 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:17:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:18:05 [end_date_ymd] => 2025-02-04 04:18:05 [RateCDR] => 1 ) [2025-02-04 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:18:05' and `end` < '2025-02-04 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:18:18] Production.INFO: count ==126 [2025-02-04 04:18:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:18:05 - End Time 2025-02-04 04:18:05 [2025-02-04 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397862', 'tblTempUsageDetail_20' ) start [2025-02-04 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397862', 'tblTempUsageDetail_20' ) end [2025-02-04 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397862', 'tblTempVendorCDR_20' ) start [2025-02-04 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397862', 'tblTempVendorCDR_20' ) end [2025-02-04 04:18:18] Production.INFO: ProcessCDR(1,14397862,1,1,2) [2025-02-04 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397862', 'tblTempUsageDetail_20' ) start [2025-02-04 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397862', 'tblTempUsageDetail_20' ) end [2025-02-04 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:18:21] Production.INFO: ==12981== Releasing lock... [2025-02-04 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:18:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:19:05 [end_date_ymd] => 2025-02-04 04:19:05 [RateCDR] => 1 ) [2025-02-04 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:19:05' and `end` < '2025-02-04 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:19:18] Production.INFO: count ==126 [2025-02-04 04:19:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:19:05 - End Time 2025-02-04 04:19:05 [2025-02-04 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397867', 'tblTempUsageDetail_20' ) start [2025-02-04 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397867', 'tblTempUsageDetail_20' ) end [2025-02-04 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397867', 'tblTempVendorCDR_20' ) start [2025-02-04 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397867', 'tblTempVendorCDR_20' ) end [2025-02-04 04:19:18] Production.INFO: ProcessCDR(1,14397867,1,1,2) [2025-02-04 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397867', 'tblTempUsageDetail_20' ) start [2025-02-04 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397867', 'tblTempUsageDetail_20' ) end [2025-02-04 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:19:21] Production.INFO: ==13053== Releasing lock... [2025-02-04 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:19:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:20:06 [end_date_ymd] => 2025-02-04 04:20:06 [RateCDR] => 1 ) [2025-02-04 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:20:06' and `end` < '2025-02-04 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:20:19] Production.INFO: count ==126 [2025-02-04 04:20:19] Production.ERROR: pbx CDR StartTime 2025-02-04 01:20:06 - End Time 2025-02-04 04:20:06 [2025-02-04 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397873', 'tblTempUsageDetail_20' ) start [2025-02-04 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397873', 'tblTempUsageDetail_20' ) end [2025-02-04 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397873', 'tblTempVendorCDR_20' ) start [2025-02-04 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397873', 'tblTempVendorCDR_20' ) end [2025-02-04 04:20:19] Production.INFO: ProcessCDR(1,14397873,1,1,2) [2025-02-04 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397873', 'tblTempUsageDetail_20' ) start [2025-02-04 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397873', 'tblTempUsageDetail_20' ) end [2025-02-04 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:20:22] Production.INFO: ==13128== Releasing lock... [2025-02-04 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:20:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:21:06 [end_date_ymd] => 2025-02-04 04:21:06 [RateCDR] => 1 ) [2025-02-04 04:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:21:06' and `end` < '2025-02-04 04:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:21:18] Production.INFO: count ==126 [2025-02-04 04:21:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:21:06 - End Time 2025-02-04 04:21:06 [2025-02-04 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397878', 'tblTempUsageDetail_20' ) start [2025-02-04 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397878', 'tblTempUsageDetail_20' ) end [2025-02-04 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397878', 'tblTempVendorCDR_20' ) start [2025-02-04 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397878', 'tblTempVendorCDR_20' ) end [2025-02-04 04:21:18] Production.INFO: ProcessCDR(1,14397878,1,1,2) [2025-02-04 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397878', 'tblTempUsageDetail_20' ) start [2025-02-04 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397878', 'tblTempUsageDetail_20' ) end [2025-02-04 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:21:21] Production.INFO: ==13201== Releasing lock... [2025-02-04 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:21:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:22:05 [end_date_ymd] => 2025-02-04 04:22:05 [RateCDR] => 1 ) [2025-02-04 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:22:05' and `end` < '2025-02-04 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:22:18] Production.INFO: count ==126 [2025-02-04 04:22:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:22:05 - End Time 2025-02-04 04:22:05 [2025-02-04 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397883', 'tblTempUsageDetail_20' ) start [2025-02-04 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397883', 'tblTempUsageDetail_20' ) end [2025-02-04 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397883', 'tblTempVendorCDR_20' ) start [2025-02-04 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397883', 'tblTempVendorCDR_20' ) end [2025-02-04 04:22:18] Production.INFO: ProcessCDR(1,14397883,1,1,2) [2025-02-04 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397883', 'tblTempUsageDetail_20' ) start [2025-02-04 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397883', 'tblTempUsageDetail_20' ) end [2025-02-04 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:22:21] Production.INFO: ==13279== Releasing lock... [2025-02-04 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:23:06 [end_date_ymd] => 2025-02-04 04:23:06 [RateCDR] => 1 ) [2025-02-04 04:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:23:06' and `end` < '2025-02-04 04:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:23:19] Production.INFO: count ==126 [2025-02-04 04:23:19] Production.ERROR: pbx CDR StartTime 2025-02-04 01:23:06 - End Time 2025-02-04 04:23:06 [2025-02-04 04:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397888', 'tblTempUsageDetail_20' ) start [2025-02-04 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397888', 'tblTempUsageDetail_20' ) end [2025-02-04 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397888', 'tblTempVendorCDR_20' ) start [2025-02-04 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397888', 'tblTempVendorCDR_20' ) end [2025-02-04 04:23:19] Production.INFO: ProcessCDR(1,14397888,1,1,2) [2025-02-04 04:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397888', 'tblTempUsageDetail_20' ) start [2025-02-04 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397888', 'tblTempUsageDetail_20' ) end [2025-02-04 04:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:23:22] Production.INFO: ==13354== Releasing lock... [2025-02-04 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:23:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:24:05 [end_date_ymd] => 2025-02-04 04:24:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 01:24:05' and `end` < '2025-02-04 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-02-04 04:24:18] Production.INFO: count ==125 [2025-02-04 04:24:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:24:05 - End Time 2025-02-04 04:24:05 [2025-02-04 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397893', 'tblTempUsageDetail_20' ) start [2025-02-04 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397893', 'tblTempUsageDetail_20' ) end [2025-02-04 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397893', 'tblTempVendorCDR_20' ) start [2025-02-04 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397893', 'tblTempVendorCDR_20' ) end [2025-02-04 04:24:18] Production.INFO: ProcessCDR(1,14397893,1,1,2) [2025-02-04 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397893', 'tblTempUsageDetail_20' ) start [2025-02-04 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397893', 'tblTempUsageDetail_20' ) end [2025-02-04 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:24:21] Production.INFO: ==13463== Releasing lock... [2025-02-04 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:25:05 [end_date_ymd] => 2025-02-04 04:25:05 [RateCDR] => 1 ) [2025-02-04 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:25:05' and `end` < '2025-02-04 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:25:17] Production.INFO: count ==125 [2025-02-04 04:25:17] Production.ERROR: pbx CDR StartTime 2025-02-04 01:25:05 - End Time 2025-02-04 04:25:05 [2025-02-04 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397898', 'tblTempUsageDetail_20' ) start [2025-02-04 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397898', 'tblTempUsageDetail_20' ) end [2025-02-04 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397898', 'tblTempVendorCDR_20' ) start [2025-02-04 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397898', 'tblTempVendorCDR_20' ) end [2025-02-04 04:25:17] Production.INFO: ProcessCDR(1,14397898,1,1,2) [2025-02-04 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397898', 'tblTempUsageDetail_20' ) start [2025-02-04 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397898', 'tblTempUsageDetail_20' ) end [2025-02-04 04:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:25:20] Production.INFO: ==13536== Releasing lock... [2025-02-04 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:25:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:26:05 [end_date_ymd] => 2025-02-04 04:26:05 [RateCDR] => 1 ) [2025-02-04 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:26:05' and `end` < '2025-02-04 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:26:18] Production.INFO: count ==125 [2025-02-04 04:26:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:26:05 - End Time 2025-02-04 04:26:05 [2025-02-04 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397903', 'tblTempUsageDetail_20' ) start [2025-02-04 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397903', 'tblTempUsageDetail_20' ) end [2025-02-04 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397903', 'tblTempVendorCDR_20' ) start [2025-02-04 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397903', 'tblTempVendorCDR_20' ) end [2025-02-04 04:26:18] Production.INFO: ProcessCDR(1,14397903,1,1,2) [2025-02-04 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397903', 'tblTempUsageDetail_20' ) start [2025-02-04 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397903', 'tblTempUsageDetail_20' ) end [2025-02-04 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:26:21] Production.INFO: ==13610== Releasing lock... [2025-02-04 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:27:05 [end_date_ymd] => 2025-02-04 04:27:05 [RateCDR] => 1 ) [2025-02-04 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:27:05' and `end` < '2025-02-04 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:27:18] Production.INFO: count ==124 [2025-02-04 04:27:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:27:05 - End Time 2025-02-04 04:27:05 [2025-02-04 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397908', 'tblTempUsageDetail_20' ) start [2025-02-04 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397908', 'tblTempUsageDetail_20' ) end [2025-02-04 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397908', 'tblTempVendorCDR_20' ) start [2025-02-04 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397908', 'tblTempVendorCDR_20' ) end [2025-02-04 04:27:18] Production.INFO: ProcessCDR(1,14397908,1,1,2) [2025-02-04 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397908', 'tblTempUsageDetail_20' ) start [2025-02-04 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397908', 'tblTempUsageDetail_20' ) end [2025-02-04 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:27:21] Production.INFO: ==13689== Releasing lock... [2025-02-04 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:28:04 [end_date_ymd] => 2025-02-04 04:28:04 [RateCDR] => 1 ) [2025-02-04 04:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:28:04' and `end` < '2025-02-04 04:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:28:17] Production.INFO: count ==124 [2025-02-04 04:28:17] Production.ERROR: pbx CDR StartTime 2025-02-04 01:28:04 - End Time 2025-02-04 04:28:04 [2025-02-04 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397913', 'tblTempUsageDetail_20' ) start [2025-02-04 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397913', 'tblTempUsageDetail_20' ) end [2025-02-04 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397913', 'tblTempVendorCDR_20' ) start [2025-02-04 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397913', 'tblTempVendorCDR_20' ) end [2025-02-04 04:28:17] Production.INFO: ProcessCDR(1,14397913,1,1,2) [2025-02-04 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397913', 'tblTempUsageDetail_20' ) start [2025-02-04 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397913', 'tblTempUsageDetail_20' ) end [2025-02-04 04:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:28:20] Production.INFO: ==13761== Releasing lock... [2025-02-04 04:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:28:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:29:05 [end_date_ymd] => 2025-02-04 04:29:05 [RateCDR] => 1 ) [2025-02-04 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:29:05' and `end` < '2025-02-04 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:29:18] Production.INFO: count ==124 [2025-02-04 04:29:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:29:05 - End Time 2025-02-04 04:29:05 [2025-02-04 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397918', 'tblTempUsageDetail_20' ) start [2025-02-04 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397918', 'tblTempUsageDetail_20' ) end [2025-02-04 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397918', 'tblTempVendorCDR_20' ) start [2025-02-04 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397918', 'tblTempVendorCDR_20' ) end [2025-02-04 04:29:18] Production.INFO: ProcessCDR(1,14397918,1,1,2) [2025-02-04 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397918', 'tblTempUsageDetail_20' ) start [2025-02-04 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397918', 'tblTempUsageDetail_20' ) end [2025-02-04 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:29:21] Production.INFO: ==13833== Releasing lock... [2025-02-04 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:30:06 [end_date_ymd] => 2025-02-04 04:30:06 [RateCDR] => 1 ) [2025-02-04 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:30:06' and `end` < '2025-02-04 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:30:19] Production.INFO: count ==126 [2025-02-04 04:30:19] Production.ERROR: pbx CDR StartTime 2025-02-04 01:30:06 - End Time 2025-02-04 04:30:06 [2025-02-04 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397924', 'tblTempUsageDetail_20' ) start [2025-02-04 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397924', 'tblTempUsageDetail_20' ) end [2025-02-04 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397924', 'tblTempVendorCDR_20' ) start [2025-02-04 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397924', 'tblTempVendorCDR_20' ) end [2025-02-04 04:30:19] Production.INFO: ProcessCDR(1,14397924,1,1,2) [2025-02-04 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397924', 'tblTempUsageDetail_20' ) start [2025-02-04 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397924', 'tblTempUsageDetail_20' ) end [2025-02-04 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:30:22] Production.INFO: ==13908== Releasing lock... [2025-02-04 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:31:05 [end_date_ymd] => 2025-02-04 04:31:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 01:31:05' and `end` < '2025-02-04 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-02-04 04:31:18] Production.INFO: count ==127 [2025-02-04 04:31:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:31:05 - End Time 2025-02-04 04:31:05 [2025-02-04 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397930', 'tblTempUsageDetail_20' ) start [2025-02-04 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397930', 'tblTempUsageDetail_20' ) end [2025-02-04 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397930', 'tblTempVendorCDR_20' ) start [2025-02-04 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397930', 'tblTempVendorCDR_20' ) end [2025-02-04 04:31:18] Production.INFO: ProcessCDR(1,14397930,1,1,2) [2025-02-04 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397930', 'tblTempUsageDetail_20' ) start [2025-02-04 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397930', 'tblTempUsageDetail_20' ) end [2025-02-04 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:31:21] Production.INFO: ==13983== Releasing lock... [2025-02-04 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:32:05 [end_date_ymd] => 2025-02-04 04:32:05 [RateCDR] => 1 ) [2025-02-04 04:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:32:05' and `end` < '2025-02-04 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:32:18] Production.INFO: count ==127 [2025-02-04 04:32:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:32:05 - End Time 2025-02-04 04:32:05 [2025-02-04 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397935', 'tblTempUsageDetail_20' ) start [2025-02-04 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397935', 'tblTempUsageDetail_20' ) end [2025-02-04 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397935', 'tblTempVendorCDR_20' ) start [2025-02-04 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397935', 'tblTempVendorCDR_20' ) end [2025-02-04 04:32:18] Production.INFO: ProcessCDR(1,14397935,1,1,2) [2025-02-04 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397935', 'tblTempUsageDetail_20' ) start [2025-02-04 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397935', 'tblTempUsageDetail_20' ) end [2025-02-04 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:32:21] Production.INFO: ==14135== Releasing lock... [2025-02-04 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:33:05 [end_date_ymd] => 2025-02-04 04:33:05 [RateCDR] => 1 ) [2025-02-04 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:33:05' and `end` < '2025-02-04 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:33:18] Production.INFO: count ==127 [2025-02-04 04:33:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:33:05 - End Time 2025-02-04 04:33:05 [2025-02-04 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397940', 'tblTempUsageDetail_20' ) start [2025-02-04 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397940', 'tblTempUsageDetail_20' ) end [2025-02-04 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397940', 'tblTempVendorCDR_20' ) start [2025-02-04 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397940', 'tblTempVendorCDR_20' ) end [2025-02-04 04:33:18] Production.INFO: ProcessCDR(1,14397940,1,1,2) [2025-02-04 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397940', 'tblTempUsageDetail_20' ) start [2025-02-04 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397940', 'tblTempUsageDetail_20' ) end [2025-02-04 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:33:21] Production.INFO: ==14243== Releasing lock... [2025-02-04 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:33:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:34:05 [end_date_ymd] => 2025-02-04 04:34:05 [RateCDR] => 1 ) [2025-02-04 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:34:05' and `end` < '2025-02-04 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:34:18] Production.INFO: count ==127 [2025-02-04 04:34:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:34:05 - End Time 2025-02-04 04:34:05 [2025-02-04 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397945', 'tblTempUsageDetail_20' ) start [2025-02-04 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397945', 'tblTempUsageDetail_20' ) end [2025-02-04 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397945', 'tblTempVendorCDR_20' ) start [2025-02-04 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397945', 'tblTempVendorCDR_20' ) end [2025-02-04 04:34:18] Production.INFO: ProcessCDR(1,14397945,1,1,2) [2025-02-04 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397945', 'tblTempUsageDetail_20' ) start [2025-02-04 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397945', 'tblTempUsageDetail_20' ) end [2025-02-04 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:34:21] Production.INFO: ==14317== Releasing lock... [2025-02-04 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:35:05 [end_date_ymd] => 2025-02-04 04:35:05 [RateCDR] => 1 ) [2025-02-04 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:35:05' and `end` < '2025-02-04 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:35:18] Production.INFO: count ==126 [2025-02-04 04:35:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:35:05 - End Time 2025-02-04 04:35:05 [2025-02-04 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397950', 'tblTempUsageDetail_20' ) start [2025-02-04 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397950', 'tblTempUsageDetail_20' ) end [2025-02-04 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397950', 'tblTempVendorCDR_20' ) start [2025-02-04 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397950', 'tblTempVendorCDR_20' ) end [2025-02-04 04:35:18] Production.INFO: ProcessCDR(1,14397950,1,1,2) [2025-02-04 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397950', 'tblTempUsageDetail_20' ) start [2025-02-04 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397950', 'tblTempUsageDetail_20' ) end [2025-02-04 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:35:21] Production.INFO: ==14388== Releasing lock... [2025-02-04 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:36:05 [end_date_ymd] => 2025-02-04 04:36:05 [RateCDR] => 1 ) [2025-02-04 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:36:05' and `end` < '2025-02-04 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:36:18] Production.INFO: count ==126 [2025-02-04 04:36:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:36:05 - End Time 2025-02-04 04:36:05 [2025-02-04 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397955', 'tblTempUsageDetail_20' ) start [2025-02-04 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397955', 'tblTempUsageDetail_20' ) end [2025-02-04 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397955', 'tblTempVendorCDR_20' ) start [2025-02-04 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397955', 'tblTempVendorCDR_20' ) end [2025-02-04 04:36:18] Production.INFO: ProcessCDR(1,14397955,1,1,2) [2025-02-04 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397955', 'tblTempUsageDetail_20' ) start [2025-02-04 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397955', 'tblTempUsageDetail_20' ) end [2025-02-04 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:36:21] Production.INFO: ==14463== Releasing lock... [2025-02-04 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:37:05 [end_date_ymd] => 2025-02-04 04:37:05 [RateCDR] => 1 ) [2025-02-04 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:37:05' and `end` < '2025-02-04 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:37:18] Production.INFO: count ==127 [2025-02-04 04:37:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:37:05 - End Time 2025-02-04 04:37:05 [2025-02-04 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397960', 'tblTempUsageDetail_20' ) start [2025-02-04 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397960', 'tblTempUsageDetail_20' ) end [2025-02-04 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397960', 'tblTempVendorCDR_20' ) start [2025-02-04 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397960', 'tblTempVendorCDR_20' ) end [2025-02-04 04:37:18] Production.INFO: ProcessCDR(1,14397960,1,1,2) [2025-02-04 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397960', 'tblTempUsageDetail_20' ) start [2025-02-04 04:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397960', 'tblTempUsageDetail_20' ) end [2025-02-04 04:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:37:23] Production.INFO: ==14540== Releasing lock... [2025-02-04 04:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:37:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:38:05 [end_date_ymd] => 2025-02-04 04:38:05 [RateCDR] => 1 ) [2025-02-04 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:38:05' and `end` < '2025-02-04 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:38:18] Production.INFO: count ==127 [2025-02-04 04:38:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:38:05 - End Time 2025-02-04 04:38:05 [2025-02-04 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397965', 'tblTempUsageDetail_20' ) start [2025-02-04 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397965', 'tblTempUsageDetail_20' ) end [2025-02-04 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397965', 'tblTempVendorCDR_20' ) start [2025-02-04 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397965', 'tblTempVendorCDR_20' ) end [2025-02-04 04:38:18] Production.INFO: ProcessCDR(1,14397965,1,1,2) [2025-02-04 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397965', 'tblTempUsageDetail_20' ) start [2025-02-04 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397965', 'tblTempUsageDetail_20' ) end [2025-02-04 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:38:22] Production.INFO: ==14615== Releasing lock... [2025-02-04 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:38:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:39:06 [end_date_ymd] => 2025-02-04 04:39:06 [RateCDR] => 1 ) [2025-02-04 04:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:39:06' and `end` < '2025-02-04 04:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:39:19] Production.INFO: count ==127 [2025-02-04 04:39:19] Production.ERROR: pbx CDR StartTime 2025-02-04 01:39:06 - End Time 2025-02-04 04:39:06 [2025-02-04 04:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397970', 'tblTempUsageDetail_20' ) start [2025-02-04 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397970', 'tblTempUsageDetail_20' ) end [2025-02-04 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397970', 'tblTempVendorCDR_20' ) start [2025-02-04 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397970', 'tblTempVendorCDR_20' ) end [2025-02-04 04:39:19] Production.INFO: ProcessCDR(1,14397970,1,1,2) [2025-02-04 04:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397970', 'tblTempUsageDetail_20' ) start [2025-02-04 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397970', 'tblTempUsageDetail_20' ) end [2025-02-04 04:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:39:22] Production.INFO: ==14690== Releasing lock... [2025-02-04 04:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:39:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:40:05 [end_date_ymd] => 2025-02-04 04:40:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 01:40:05' and `end` < '2025-02-04 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-02-04 04:40:18] Production.INFO: count ==127 [2025-02-04 04:40:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:40:05 - End Time 2025-02-04 04:40:05 [2025-02-04 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397975', 'tblTempUsageDetail_20' ) start [2025-02-04 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397975', 'tblTempUsageDetail_20' ) end [2025-02-04 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397975', 'tblTempVendorCDR_20' ) start [2025-02-04 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397975', 'tblTempVendorCDR_20' ) end [2025-02-04 04:40:18] Production.INFO: ProcessCDR(1,14397975,1,1,2) [2025-02-04 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397975', 'tblTempUsageDetail_20' ) start [2025-02-04 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397975', 'tblTempUsageDetail_20' ) end [2025-02-04 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:40:21] Production.INFO: ==14808== Releasing lock... [2025-02-04 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:40:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:41:05 [end_date_ymd] => 2025-02-04 04:41:05 [RateCDR] => 1 ) [2025-02-04 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:41:05' and `end` < '2025-02-04 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:41:18] Production.INFO: count ==127 [2025-02-04 04:41:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:41:05 - End Time 2025-02-04 04:41:05 [2025-02-04 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397981', 'tblTempUsageDetail_20' ) start [2025-02-04 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397981', 'tblTempUsageDetail_20' ) end [2025-02-04 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397981', 'tblTempVendorCDR_20' ) start [2025-02-04 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397981', 'tblTempVendorCDR_20' ) end [2025-02-04 04:41:18] Production.INFO: ProcessCDR(1,14397981,1,1,2) [2025-02-04 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397981', 'tblTempUsageDetail_20' ) start [2025-02-04 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397981', 'tblTempUsageDetail_20' ) end [2025-02-04 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:41:21] Production.INFO: ==14883== Releasing lock... [2025-02-04 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:42:05 [end_date_ymd] => 2025-02-04 04:42:05 [RateCDR] => 1 ) [2025-02-04 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:42:05' and `end` < '2025-02-04 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:42:18] Production.INFO: count ==127 [2025-02-04 04:42:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:42:05 - End Time 2025-02-04 04:42:05 [2025-02-04 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397986', 'tblTempUsageDetail_20' ) start [2025-02-04 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397986', 'tblTempUsageDetail_20' ) end [2025-02-04 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397986', 'tblTempVendorCDR_20' ) start [2025-02-04 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397986', 'tblTempVendorCDR_20' ) end [2025-02-04 04:42:18] Production.INFO: ProcessCDR(1,14397986,1,1,2) [2025-02-04 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397986', 'tblTempUsageDetail_20' ) start [2025-02-04 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397986', 'tblTempUsageDetail_20' ) end [2025-02-04 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:42:21] Production.INFO: ==14952== Releasing lock... [2025-02-04 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:43:05 [end_date_ymd] => 2025-02-04 04:43:05 [RateCDR] => 1 ) [2025-02-04 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:43:05' and `end` < '2025-02-04 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:43:18] Production.INFO: count ==127 [2025-02-04 04:43:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:43:05 - End Time 2025-02-04 04:43:05 [2025-02-04 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397991', 'tblTempUsageDetail_20' ) start [2025-02-04 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397991', 'tblTempUsageDetail_20' ) end [2025-02-04 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397991', 'tblTempVendorCDR_20' ) start [2025-02-04 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397991', 'tblTempVendorCDR_20' ) end [2025-02-04 04:43:18] Production.INFO: ProcessCDR(1,14397991,1,1,2) [2025-02-04 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397991', 'tblTempUsageDetail_20' ) start [2025-02-04 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397991', 'tblTempUsageDetail_20' ) end [2025-02-04 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:43:21] Production.INFO: ==15027== Releasing lock... [2025-02-04 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:43:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:44:06 [end_date_ymd] => 2025-02-04 04:44:06 [RateCDR] => 1 ) [2025-02-04 04:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:44:06' and `end` < '2025-02-04 04:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:44:19] Production.INFO: count ==124 [2025-02-04 04:44:19] Production.ERROR: pbx CDR StartTime 2025-02-04 01:44:06 - End Time 2025-02-04 04:44:06 [2025-02-04 04:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397996', 'tblTempUsageDetail_20' ) start [2025-02-04 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14397996', 'tblTempUsageDetail_20' ) end [2025-02-04 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397996', 'tblTempVendorCDR_20' ) start [2025-02-04 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14397996', 'tblTempVendorCDR_20' ) end [2025-02-04 04:44:19] Production.INFO: ProcessCDR(1,14397996,1,1,2) [2025-02-04 04:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14397996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14397996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14397996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14397996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397996', 'tblTempUsageDetail_20' ) start [2025-02-04 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14397996', 'tblTempUsageDetail_20' ) end [2025-02-04 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:44:22] Production.INFO: ==15102== Releasing lock... [2025-02-04 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:44:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:45:05 [end_date_ymd] => 2025-02-04 04:45:05 [RateCDR] => 1 ) [2025-02-04 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:45:05' and `end` < '2025-02-04 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:45:18] Production.INFO: count ==123 [2025-02-04 04:45:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:45:05 - End Time 2025-02-04 04:45:05 [2025-02-04 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398001', 'tblTempUsageDetail_20' ) start [2025-02-04 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398001', 'tblTempUsageDetail_20' ) end [2025-02-04 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398001', 'tblTempVendorCDR_20' ) start [2025-02-04 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398001', 'tblTempVendorCDR_20' ) end [2025-02-04 04:45:18] Production.INFO: ProcessCDR(1,14398001,1,1,2) [2025-02-04 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398001', 'tblTempUsageDetail_20' ) start [2025-02-04 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398001', 'tblTempUsageDetail_20' ) end [2025-02-04 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:45:21] Production.INFO: ==15179== Releasing lock... [2025-02-04 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:46:06 [end_date_ymd] => 2025-02-04 04:46:06 [RateCDR] => 1 ) [2025-02-04 04:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:46:06' and `end` < '2025-02-04 04:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:46:21] Production.INFO: count ==123 [2025-02-04 04:46:21] Production.ERROR: pbx CDR StartTime 2025-02-04 01:46:06 - End Time 2025-02-04 04:46:06 [2025-02-04 04:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398006', 'tblTempUsageDetail_20' ) start [2025-02-04 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398006', 'tblTempUsageDetail_20' ) end [2025-02-04 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398006', 'tblTempVendorCDR_20' ) start [2025-02-04 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398006', 'tblTempVendorCDR_20' ) end [2025-02-04 04:46:21] Production.INFO: ProcessCDR(1,14398006,1,1,2) [2025-02-04 04:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398006', 'tblTempUsageDetail_20' ) start [2025-02-04 04:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398006', 'tblTempUsageDetail_20' ) end [2025-02-04 04:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:46:24] Production.INFO: ==15254== Releasing lock... [2025-02-04 04:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:46:24] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:47:05 [end_date_ymd] => 2025-02-04 04:47:05 [RateCDR] => 1 ) [2025-02-04 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:47:05' and `end` < '2025-02-04 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:47:19] Production.INFO: count ==123 [2025-02-04 04:47:19] Production.ERROR: pbx CDR StartTime 2025-02-04 01:47:05 - End Time 2025-02-04 04:47:05 [2025-02-04 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398011', 'tblTempUsageDetail_20' ) start [2025-02-04 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398011', 'tblTempUsageDetail_20' ) end [2025-02-04 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398011', 'tblTempVendorCDR_20' ) start [2025-02-04 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398011', 'tblTempVendorCDR_20' ) end [2025-02-04 04:47:19] Production.INFO: ProcessCDR(1,14398011,1,1,2) [2025-02-04 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398011', 'tblTempUsageDetail_20' ) start [2025-02-04 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398011', 'tblTempUsageDetail_20' ) end [2025-02-04 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:47:22] Production.INFO: ==15338== Releasing lock... [2025-02-04 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:47:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:48:05 [end_date_ymd] => 2025-02-04 04:48:05 [RateCDR] => 1 ) [2025-02-04 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:48:05' and `end` < '2025-02-04 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:48:19] Production.INFO: count ==123 [2025-02-04 04:48:19] Production.ERROR: pbx CDR StartTime 2025-02-04 01:48:05 - End Time 2025-02-04 04:48:05 [2025-02-04 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398016', 'tblTempUsageDetail_20' ) start [2025-02-04 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398016', 'tblTempUsageDetail_20' ) end [2025-02-04 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398016', 'tblTempVendorCDR_20' ) start [2025-02-04 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398016', 'tblTempVendorCDR_20' ) end [2025-02-04 04:48:19] Production.INFO: ProcessCDR(1,14398016,1,1,2) [2025-02-04 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398016', 'tblTempUsageDetail_20' ) start [2025-02-04 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398016', 'tblTempUsageDetail_20' ) end [2025-02-04 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:48:22] Production.INFO: ==15413== Releasing lock... [2025-02-04 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:48:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:49:05 [end_date_ymd] => 2025-02-04 04:49:05 [RateCDR] => 1 ) [2025-02-04 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:49:05' and `end` < '2025-02-04 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:49:19] Production.INFO: count ==123 [2025-02-04 04:49:19] Production.ERROR: pbx CDR StartTime 2025-02-04 01:49:05 - End Time 2025-02-04 04:49:05 [2025-02-04 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398021', 'tblTempUsageDetail_20' ) start [2025-02-04 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398021', 'tblTempUsageDetail_20' ) end [2025-02-04 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398021', 'tblTempVendorCDR_20' ) start [2025-02-04 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398021', 'tblTempVendorCDR_20' ) end [2025-02-04 04:49:19] Production.INFO: ProcessCDR(1,14398021,1,1,2) [2025-02-04 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398021', 'tblTempUsageDetail_20' ) start [2025-02-04 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398021', 'tblTempUsageDetail_20' ) end [2025-02-04 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:49:22] Production.INFO: ==15496== Releasing lock... [2025-02-04 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:49:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:50:06 [end_date_ymd] => 2025-02-04 04:50:06 [RateCDR] => 1 ) [2025-02-04 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:50:06' and `end` < '2025-02-04 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:50:20] Production.INFO: count ==119 [2025-02-04 04:50:20] Production.ERROR: pbx CDR StartTime 2025-02-04 01:50:06 - End Time 2025-02-04 04:50:06 [2025-02-04 04:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398026', 'tblTempUsageDetail_20' ) start [2025-02-04 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398026', 'tblTempUsageDetail_20' ) end [2025-02-04 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398026', 'tblTempVendorCDR_20' ) start [2025-02-04 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398026', 'tblTempVendorCDR_20' ) end [2025-02-04 04:50:20] Production.INFO: ProcessCDR(1,14398026,1,1,2) [2025-02-04 04:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398026', 'tblTempUsageDetail_20' ) start [2025-02-04 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398026', 'tblTempUsageDetail_20' ) end [2025-02-04 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:50:23] Production.INFO: ==15573== Releasing lock... [2025-02-04 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:50:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:51:05 [end_date_ymd] => 2025-02-04 04:51:05 [RateCDR] => 1 ) [2025-02-04 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:51:05' and `end` < '2025-02-04 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:51:19] Production.INFO: count ==105 [2025-02-04 04:51:19] Production.ERROR: pbx CDR StartTime 2025-02-04 01:51:05 - End Time 2025-02-04 04:51:05 [2025-02-04 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398032', 'tblTempUsageDetail_20' ) start [2025-02-04 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398032', 'tblTempUsageDetail_20' ) end [2025-02-04 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398032', 'tblTempVendorCDR_20' ) start [2025-02-04 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398032', 'tblTempVendorCDR_20' ) end [2025-02-04 04:51:19] Production.INFO: ProcessCDR(1,14398032,1,1,2) [2025-02-04 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398032', 'tblTempUsageDetail_20' ) start [2025-02-04 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398032', 'tblTempUsageDetail_20' ) end [2025-02-04 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:51:22] Production.INFO: ==15656== Releasing lock... [2025-02-04 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:51:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:52:06 [end_date_ymd] => 2025-02-04 04:52:06 [RateCDR] => 1 ) [2025-02-04 04:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:52:06' and `end` < '2025-02-04 04:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:52:19] Production.INFO: count ==105 [2025-02-04 04:52:19] Production.ERROR: pbx CDR StartTime 2025-02-04 01:52:06 - End Time 2025-02-04 04:52:06 [2025-02-04 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398037', 'tblTempUsageDetail_20' ) start [2025-02-04 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398037', 'tblTempUsageDetail_20' ) end [2025-02-04 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398037', 'tblTempVendorCDR_20' ) start [2025-02-04 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398037', 'tblTempVendorCDR_20' ) end [2025-02-04 04:52:19] Production.INFO: ProcessCDR(1,14398037,1,1,2) [2025-02-04 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398037', 'tblTempUsageDetail_20' ) start [2025-02-04 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398037', 'tblTempUsageDetail_20' ) end [2025-02-04 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:52:22] Production.INFO: ==15736== Releasing lock... [2025-02-04 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:52:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:53:05 [end_date_ymd] => 2025-02-04 04:53:05 [RateCDR] => 1 ) [2025-02-04 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:53:05' and `end` < '2025-02-04 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:53:19] Production.INFO: count ==105 [2025-02-04 04:53:20] Production.ERROR: pbx CDR StartTime 2025-02-04 01:53:05 - End Time 2025-02-04 04:53:05 [2025-02-04 04:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398042', 'tblTempUsageDetail_20' ) start [2025-02-04 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398042', 'tblTempUsageDetail_20' ) end [2025-02-04 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398042', 'tblTempVendorCDR_20' ) start [2025-02-04 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398042', 'tblTempVendorCDR_20' ) end [2025-02-04 04:53:20] Production.INFO: ProcessCDR(1,14398042,1,1,2) [2025-02-04 04:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398042', 'tblTempUsageDetail_20' ) start [2025-02-04 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398042', 'tblTempUsageDetail_20' ) end [2025-02-04 04:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:53:23] Production.INFO: ==15817== Releasing lock... [2025-02-04 04:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:53:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:54:05 [end_date_ymd] => 2025-02-04 04:54:05 [RateCDR] => 1 ) [2025-02-04 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:54:05' and `end` < '2025-02-04 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:54:19] Production.INFO: count ==105 [2025-02-04 04:54:19] Production.ERROR: pbx CDR StartTime 2025-02-04 01:54:05 - End Time 2025-02-04 04:54:05 [2025-02-04 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398047', 'tblTempUsageDetail_20' ) start [2025-02-04 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398047', 'tblTempUsageDetail_20' ) end [2025-02-04 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398047', 'tblTempVendorCDR_20' ) start [2025-02-04 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398047', 'tblTempVendorCDR_20' ) end [2025-02-04 04:54:19] Production.INFO: ProcessCDR(1,14398047,1,1,2) [2025-02-04 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398047', 'tblTempUsageDetail_20' ) start [2025-02-04 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398047', 'tblTempUsageDetail_20' ) end [2025-02-04 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:54:22] Production.INFO: ==15892== Releasing lock... [2025-02-04 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:54:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:55:05 [end_date_ymd] => 2025-02-04 04:55:05 [RateCDR] => 1 ) [2025-02-04 04:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:55:05' and `end` < '2025-02-04 04:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:55:18] Production.INFO: count ==104 [2025-02-04 04:55:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:55:05 - End Time 2025-02-04 04:55:05 [2025-02-04 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398052', 'tblTempUsageDetail_20' ) start [2025-02-04 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398052', 'tblTempUsageDetail_20' ) end [2025-02-04 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398052', 'tblTempVendorCDR_20' ) start [2025-02-04 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398052', 'tblTempVendorCDR_20' ) end [2025-02-04 04:55:18] Production.INFO: ProcessCDR(1,14398052,1,1,2) [2025-02-04 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398052', 'tblTempUsageDetail_20' ) start [2025-02-04 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398052', 'tblTempUsageDetail_20' ) end [2025-02-04 04:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:55:22] Production.INFO: ==16006== Releasing lock... [2025-02-04 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:55:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:56:05 [end_date_ymd] => 2025-02-04 04:56:05 [RateCDR] => 1 ) [2025-02-04 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:56:05' and `end` < '2025-02-04 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:56:20] Production.INFO: count ==104 [2025-02-04 04:56:20] Production.ERROR: pbx CDR StartTime 2025-02-04 01:56:05 - End Time 2025-02-04 04:56:05 [2025-02-04 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398057', 'tblTempUsageDetail_20' ) start [2025-02-04 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398057', 'tblTempUsageDetail_20' ) end [2025-02-04 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398057', 'tblTempVendorCDR_20' ) start [2025-02-04 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398057', 'tblTempVendorCDR_20' ) end [2025-02-04 04:56:20] Production.INFO: ProcessCDR(1,14398057,1,1,2) [2025-02-04 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398057', 'tblTempUsageDetail_20' ) start [2025-02-04 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398057', 'tblTempUsageDetail_20' ) end [2025-02-04 04:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:56:23] Production.INFO: ==16084== Releasing lock... [2025-02-04 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:56:23] Production.INFO: 28 MB #Memory Used# [2025-02-04 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:57:05 [end_date_ymd] => 2025-02-04 04:57:05 [RateCDR] => 1 ) [2025-02-04 04:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:57:05' and `end` < '2025-02-04 04:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:57:18] Production.INFO: count ==104 [2025-02-04 04:57:18] Production.ERROR: pbx CDR StartTime 2025-02-04 01:57:05 - End Time 2025-02-04 04:57:05 [2025-02-04 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398062', 'tblTempUsageDetail_20' ) start [2025-02-04 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398062', 'tblTempUsageDetail_20' ) end [2025-02-04 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398062', 'tblTempVendorCDR_20' ) start [2025-02-04 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398062', 'tblTempVendorCDR_20' ) end [2025-02-04 04:57:18] Production.INFO: ProcessCDR(1,14398062,1,1,2) [2025-02-04 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398062', 'tblTempUsageDetail_20' ) start [2025-02-04 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398062', 'tblTempUsageDetail_20' ) end [2025-02-04 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:57:21] Production.INFO: ==16161== Releasing lock... [2025-02-04 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:57:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:58:05 [end_date_ymd] => 2025-02-04 04:58:05 [RateCDR] => 1 ) [2025-02-04 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:58:05' and `end` < '2025-02-04 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:58:19] Production.INFO: count ==104 [2025-02-04 04:58:19] Production.ERROR: pbx CDR StartTime 2025-02-04 01:58:05 - End Time 2025-02-04 04:58:05 [2025-02-04 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398067', 'tblTempUsageDetail_20' ) start [2025-02-04 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398067', 'tblTempUsageDetail_20' ) end [2025-02-04 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398067', 'tblTempVendorCDR_20' ) start [2025-02-04 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398067', 'tblTempVendorCDR_20' ) end [2025-02-04 04:58:19] Production.INFO: ProcessCDR(1,14398067,1,1,2) [2025-02-04 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398067', 'tblTempUsageDetail_20' ) start [2025-02-04 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398067', 'tblTempUsageDetail_20' ) end [2025-02-04 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:58:22] Production.INFO: ==16243== Releasing lock... [2025-02-04 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:58:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 01:59:05 [end_date_ymd] => 2025-02-04 04:59:05 [RateCDR] => 1 ) [2025-02-04 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 01:59:05' and `end` < '2025-02-04 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 04:59:19] Production.INFO: count ==104 [2025-02-04 04:59:19] Production.ERROR: pbx CDR StartTime 2025-02-04 01:59:05 - End Time 2025-02-04 04:59:05 [2025-02-04 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398072', 'tblTempUsageDetail_20' ) start [2025-02-04 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398072', 'tblTempUsageDetail_20' ) end [2025-02-04 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398072', 'tblTempVendorCDR_20' ) start [2025-02-04 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398072', 'tblTempVendorCDR_20' ) end [2025-02-04 04:59:19] Production.INFO: ProcessCDR(1,14398072,1,1,2) [2025-02-04 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398072', 'tblTempUsageDetail_20' ) start [2025-02-04 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398072', 'tblTempUsageDetail_20' ) end [2025-02-04 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 04:59:22] Production.INFO: ==16319== Releasing lock... [2025-02-04 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 04:59:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:00:06 [end_date_ymd] => 2025-02-04 05:00:06 [RateCDR] => 1 ) [2025-02-04 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:00:06' and `end` < '2025-02-04 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:00:19] Production.INFO: count ==98 [2025-02-04 05:00:19] Production.ERROR: pbx CDR StartTime 2025-02-04 02:00:06 - End Time 2025-02-04 05:00:06 [2025-02-04 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398078', 'tblTempUsageDetail_20' ) start [2025-02-04 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398078', 'tblTempUsageDetail_20' ) end [2025-02-04 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398078', 'tblTempVendorCDR_20' ) start [2025-02-04 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398078', 'tblTempVendorCDR_20' ) end [2025-02-04 05:00:19] Production.INFO: ProcessCDR(1,14398078,1,1,2) [2025-02-04 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398078', 'tblTempUsageDetail_20' ) start [2025-02-04 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398078', 'tblTempUsageDetail_20' ) end [2025-02-04 05:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:00:22] Production.INFO: ==16396== Releasing lock... [2025-02-04 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:00:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:01:05 [end_date_ymd] => 2025-02-04 05:01:05 [RateCDR] => 1 ) [2025-02-04 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:01:05' and `end` < '2025-02-04 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:01:19] Production.INFO: count ==96 [2025-02-04 05:01:19] Production.ERROR: pbx CDR StartTime 2025-02-04 02:01:05 - End Time 2025-02-04 05:01:05 [2025-02-04 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398083', 'tblTempUsageDetail_20' ) start [2025-02-04 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398083', 'tblTempUsageDetail_20' ) end [2025-02-04 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398083', 'tblTempVendorCDR_20' ) start [2025-02-04 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398083', 'tblTempVendorCDR_20' ) end [2025-02-04 05:01:19] Production.INFO: ProcessCDR(1,14398083,1,1,2) [2025-02-04 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398083', 'tblTempUsageDetail_20' ) start [2025-02-04 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398083', 'tblTempUsageDetail_20' ) end [2025-02-04 05:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:01:22] Production.INFO: ==16488== Releasing lock... [2025-02-04 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:01:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:02:05 [end_date_ymd] => 2025-02-04 05:02:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 02:02:05' and `end` < '2025-02-04 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-02-04 05:02:19] Production.INFO: count ==96 [2025-02-04 05:02:19] Production.ERROR: pbx CDR StartTime 2025-02-04 02:02:05 - End Time 2025-02-04 05:02:05 [2025-02-04 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398088', 'tblTempUsageDetail_20' ) start [2025-02-04 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398088', 'tblTempUsageDetail_20' ) end [2025-02-04 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398088', 'tblTempVendorCDR_20' ) start [2025-02-04 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398088', 'tblTempVendorCDR_20' ) end [2025-02-04 05:02:19] Production.INFO: ProcessCDR(1,14398088,1,1,2) [2025-02-04 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398088', 'tblTempUsageDetail_20' ) start [2025-02-04 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398088', 'tblTempUsageDetail_20' ) end [2025-02-04 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:02:22] Production.INFO: ==16566== Releasing lock... [2025-02-04 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:02:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:03:05 [end_date_ymd] => 2025-02-04 05:03:05 [RateCDR] => 1 ) [2025-02-04 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:03:05' and `end` < '2025-02-04 05:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:03:19] Production.INFO: count ==96 [2025-02-04 05:03:19] Production.ERROR: pbx CDR StartTime 2025-02-04 02:03:05 - End Time 2025-02-04 05:03:05 [2025-02-04 05:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398093', 'tblTempUsageDetail_20' ) start [2025-02-04 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398093', 'tblTempUsageDetail_20' ) end [2025-02-04 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398093', 'tblTempVendorCDR_20' ) start [2025-02-04 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398093', 'tblTempVendorCDR_20' ) end [2025-02-04 05:03:19] Production.INFO: ProcessCDR(1,14398093,1,1,2) [2025-02-04 05:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398093', 'tblTempUsageDetail_20' ) start [2025-02-04 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398093', 'tblTempUsageDetail_20' ) end [2025-02-04 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:03:22] Production.INFO: ==16647== Releasing lock... [2025-02-04 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:03:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:04:05 [end_date_ymd] => 2025-02-04 05:04:05 [RateCDR] => 1 ) [2025-02-04 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:04:05' and `end` < '2025-02-04 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:04:19] Production.INFO: count ==96 [2025-02-04 05:04:19] Production.ERROR: pbx CDR StartTime 2025-02-04 02:04:05 - End Time 2025-02-04 05:04:05 [2025-02-04 05:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398098', 'tblTempUsageDetail_20' ) start [2025-02-04 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398098', 'tblTempUsageDetail_20' ) end [2025-02-04 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398098', 'tblTempVendorCDR_20' ) start [2025-02-04 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398098', 'tblTempVendorCDR_20' ) end [2025-02-04 05:04:19] Production.INFO: ProcessCDR(1,14398098,1,1,2) [2025-02-04 05:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398098', 'tblTempUsageDetail_20' ) start [2025-02-04 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398098', 'tblTempUsageDetail_20' ) end [2025-02-04 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:04:22] Production.INFO: ==16728== Releasing lock... [2025-02-04 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:04:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:05:05 [end_date_ymd] => 2025-02-04 05:05:05 [RateCDR] => 1 ) [2025-02-04 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:05:05' and `end` < '2025-02-04 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:05:18] Production.INFO: count ==96 [2025-02-04 05:05:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:05:05 - End Time 2025-02-04 05:05:05 [2025-02-04 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398103', 'tblTempUsageDetail_20' ) start [2025-02-04 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398103', 'tblTempUsageDetail_20' ) end [2025-02-04 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398103', 'tblTempVendorCDR_20' ) start [2025-02-04 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398103', 'tblTempVendorCDR_20' ) end [2025-02-04 05:05:18] Production.INFO: ProcessCDR(1,14398103,1,1,2) [2025-02-04 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398103', 'tblTempUsageDetail_20' ) start [2025-02-04 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398103', 'tblTempUsageDetail_20' ) end [2025-02-04 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:05:21] Production.INFO: ==16809== Releasing lock... [2025-02-04 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:05:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:06:05 [end_date_ymd] => 2025-02-04 05:06:05 [RateCDR] => 1 ) [2025-02-04 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:06:05' and `end` < '2025-02-04 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:06:17] Production.INFO: count ==96 [2025-02-04 05:06:17] Production.ERROR: pbx CDR StartTime 2025-02-04 02:06:05 - End Time 2025-02-04 05:06:05 [2025-02-04 05:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398108', 'tblTempUsageDetail_20' ) start [2025-02-04 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398108', 'tblTempUsageDetail_20' ) end [2025-02-04 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398108', 'tblTempVendorCDR_20' ) start [2025-02-04 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398108', 'tblTempVendorCDR_20' ) end [2025-02-04 05:06:17] Production.INFO: ProcessCDR(1,14398108,1,1,2) [2025-02-04 05:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398108', 'tblTempUsageDetail_20' ) start [2025-02-04 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398108', 'tblTempUsageDetail_20' ) end [2025-02-04 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:06:21] Production.INFO: ==16889== Releasing lock... [2025-02-04 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:06:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:07:04 [end_date_ymd] => 2025-02-04 05:07:04 [RateCDR] => 1 ) [2025-02-04 05:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:07:04' and `end` < '2025-02-04 05:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:07:18] Production.INFO: count ==96 [2025-02-04 05:07:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:07:04 - End Time 2025-02-04 05:07:04 [2025-02-04 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398113', 'tblTempUsageDetail_20' ) start [2025-02-04 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398113', 'tblTempUsageDetail_20' ) end [2025-02-04 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398113', 'tblTempVendorCDR_20' ) start [2025-02-04 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398113', 'tblTempVendorCDR_20' ) end [2025-02-04 05:07:18] Production.INFO: ProcessCDR(1,14398113,1,1,2) [2025-02-04 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398113', 'tblTempUsageDetail_20' ) start [2025-02-04 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398113', 'tblTempUsageDetail_20' ) end [2025-02-04 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:07:21] Production.INFO: ==16966== Releasing lock... [2025-02-04 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:07:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:08:05 [end_date_ymd] => 2025-02-04 05:08:05 [RateCDR] => 1 ) [2025-02-04 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:08:05' and `end` < '2025-02-04 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:08:19] Production.INFO: count ==96 [2025-02-04 05:08:19] Production.ERROR: pbx CDR StartTime 2025-02-04 02:08:05 - End Time 2025-02-04 05:08:05 [2025-02-04 05:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398118', 'tblTempUsageDetail_20' ) start [2025-02-04 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398118', 'tblTempUsageDetail_20' ) end [2025-02-04 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398118', 'tblTempVendorCDR_20' ) start [2025-02-04 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398118', 'tblTempVendorCDR_20' ) end [2025-02-04 05:08:19] Production.INFO: ProcessCDR(1,14398118,1,1,2) [2025-02-04 05:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398118', 'tblTempUsageDetail_20' ) start [2025-02-04 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398118', 'tblTempUsageDetail_20' ) end [2025-02-04 05:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:08:22] Production.INFO: ==17042== Releasing lock... [2025-02-04 05:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:08:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:09:05 [end_date_ymd] => 2025-02-04 05:09:05 [RateCDR] => 1 ) [2025-02-04 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:09:05' and `end` < '2025-02-04 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:09:18] Production.INFO: count ==96 [2025-02-04 05:09:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:09:05 - End Time 2025-02-04 05:09:05 [2025-02-04 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398123', 'tblTempUsageDetail_20' ) start [2025-02-04 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398123', 'tblTempUsageDetail_20' ) end [2025-02-04 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398123', 'tblTempVendorCDR_20' ) start [2025-02-04 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398123', 'tblTempVendorCDR_20' ) end [2025-02-04 05:09:18] Production.INFO: ProcessCDR(1,14398123,1,1,2) [2025-02-04 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398123', 'tblTempUsageDetail_20' ) start [2025-02-04 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398123', 'tblTempUsageDetail_20' ) end [2025-02-04 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:09:21] Production.INFO: ==17112== Releasing lock... [2025-02-04 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:09:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:10:06 [end_date_ymd] => 2025-02-04 05:10:06 [RateCDR] => 1 ) [2025-02-04 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:10:06' and `end` < '2025-02-04 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:10:18] Production.INFO: count ==96 [2025-02-04 05:10:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:10:06 - End Time 2025-02-04 05:10:06 [2025-02-04 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398127', 'tblTempUsageDetail_20' ) start [2025-02-04 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398127', 'tblTempUsageDetail_20' ) end [2025-02-04 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398127', 'tblTempVendorCDR_20' ) start [2025-02-04 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398127', 'tblTempVendorCDR_20' ) end [2025-02-04 05:10:18] Production.INFO: ProcessCDR(1,14398127,1,1,2) [2025-02-04 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398127', 'tblTempUsageDetail_20' ) start [2025-02-04 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398127', 'tblTempUsageDetail_20' ) end [2025-02-04 05:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:10:21] Production.INFO: ==17191== Releasing lock... [2025-02-04 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:10:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:11:05 [end_date_ymd] => 2025-02-04 05:11:05 [RateCDR] => 1 ) [2025-02-04 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:11:05' and `end` < '2025-02-04 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:11:18] Production.INFO: count ==96 [2025-02-04 05:11:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:11:05 - End Time 2025-02-04 05:11:05 [2025-02-04 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398134', 'tblTempUsageDetail_20' ) start [2025-02-04 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398134', 'tblTempUsageDetail_20' ) end [2025-02-04 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398134', 'tblTempVendorCDR_20' ) start [2025-02-04 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398134', 'tblTempVendorCDR_20' ) end [2025-02-04 05:11:18] Production.INFO: ProcessCDR(1,14398134,1,1,2) [2025-02-04 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398134', 'tblTempUsageDetail_20' ) start [2025-02-04 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398134', 'tblTempUsageDetail_20' ) end [2025-02-04 05:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:11:22] Production.INFO: ==17307== Releasing lock... [2025-02-04 05:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:11:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:12:05 [end_date_ymd] => 2025-02-04 05:12:05 [RateCDR] => 1 ) [2025-02-04 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:12:05' and `end` < '2025-02-04 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:12:18] Production.INFO: count ==96 [2025-02-04 05:12:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:12:05 - End Time 2025-02-04 05:12:05 [2025-02-04 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398139', 'tblTempUsageDetail_20' ) start [2025-02-04 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398139', 'tblTempUsageDetail_20' ) end [2025-02-04 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398139', 'tblTempVendorCDR_20' ) start [2025-02-04 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398139', 'tblTempVendorCDR_20' ) end [2025-02-04 05:12:18] Production.INFO: ProcessCDR(1,14398139,1,1,2) [2025-02-04 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398139', 'tblTempUsageDetail_20' ) start [2025-02-04 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398139', 'tblTempUsageDetail_20' ) end [2025-02-04 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:12:21] Production.INFO: ==17384== Releasing lock... [2025-02-04 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:12:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:13:05 [end_date_ymd] => 2025-02-04 05:13:05 [RateCDR] => 1 ) [2025-02-04 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:13:05' and `end` < '2025-02-04 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:13:17] Production.INFO: count ==96 [2025-02-04 05:13:17] Production.ERROR: pbx CDR StartTime 2025-02-04 02:13:05 - End Time 2025-02-04 05:13:05 [2025-02-04 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398144', 'tblTempUsageDetail_20' ) start [2025-02-04 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398144', 'tblTempUsageDetail_20' ) end [2025-02-04 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398144', 'tblTempVendorCDR_20' ) start [2025-02-04 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398144', 'tblTempVendorCDR_20' ) end [2025-02-04 05:13:17] Production.INFO: ProcessCDR(1,14398144,1,1,2) [2025-02-04 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398144', 'tblTempUsageDetail_20' ) start [2025-02-04 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398144', 'tblTempUsageDetail_20' ) end [2025-02-04 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:13:21] Production.INFO: ==17457== Releasing lock... [2025-02-04 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:13:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:14:05 [end_date_ymd] => 2025-02-04 05:14:05 [RateCDR] => 1 ) [2025-02-04 05:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:14:05' and `end` < '2025-02-04 05:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:14:18] Production.INFO: count ==96 [2025-02-04 05:14:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:14:05 - End Time 2025-02-04 05:14:05 [2025-02-04 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398149', 'tblTempUsageDetail_20' ) start [2025-02-04 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398149', 'tblTempUsageDetail_20' ) end [2025-02-04 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398149', 'tblTempVendorCDR_20' ) start [2025-02-04 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398149', 'tblTempVendorCDR_20' ) end [2025-02-04 05:14:18] Production.INFO: ProcessCDR(1,14398149,1,1,2) [2025-02-04 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398149', 'tblTempUsageDetail_20' ) start [2025-02-04 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398149', 'tblTempUsageDetail_20' ) end [2025-02-04 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:14:21] Production.INFO: ==17532== Releasing lock... [2025-02-04 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:14:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:15:05 [end_date_ymd] => 2025-02-04 05:15:05 [RateCDR] => 1 ) [2025-02-04 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:15:05' and `end` < '2025-02-04 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:15:17] Production.INFO: count ==96 [2025-02-04 05:15:17] Production.ERROR: pbx CDR StartTime 2025-02-04 02:15:05 - End Time 2025-02-04 05:15:05 [2025-02-04 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398154', 'tblTempUsageDetail_20' ) start [2025-02-04 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398154', 'tblTempUsageDetail_20' ) end [2025-02-04 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398154', 'tblTempVendorCDR_20' ) start [2025-02-04 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398154', 'tblTempVendorCDR_20' ) end [2025-02-04 05:15:17] Production.INFO: ProcessCDR(1,14398154,1,1,2) [2025-02-04 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398154', 'tblTempUsageDetail_20' ) start [2025-02-04 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398154', 'tblTempUsageDetail_20' ) end [2025-02-04 05:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:15:20] Production.INFO: ==17605== Releasing lock... [2025-02-04 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:15:20] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:16:05 [end_date_ymd] => 2025-02-04 05:16:05 [RateCDR] => 1 ) [2025-02-04 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:16:05' and `end` < '2025-02-04 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:16:19] Production.INFO: count ==96 [2025-02-04 05:16:19] Production.ERROR: pbx CDR StartTime 2025-02-04 02:16:05 - End Time 2025-02-04 05:16:05 [2025-02-04 05:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398159', 'tblTempUsageDetail_20' ) start [2025-02-04 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398159', 'tblTempUsageDetail_20' ) end [2025-02-04 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398159', 'tblTempVendorCDR_20' ) start [2025-02-04 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398159', 'tblTempVendorCDR_20' ) end [2025-02-04 05:16:19] Production.INFO: ProcessCDR(1,14398159,1,1,2) [2025-02-04 05:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398159', 'tblTempUsageDetail_20' ) start [2025-02-04 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398159', 'tblTempUsageDetail_20' ) end [2025-02-04 05:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:16:22] Production.INFO: ==17682== Releasing lock... [2025-02-04 05:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:16:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:17:04 [end_date_ymd] => 2025-02-04 05:17:04 [RateCDR] => 1 ) [2025-02-04 05: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-02-04 02:17:04' and `end` < '2025-02-04 05: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-02-04 05:17:18] Production.INFO: count ==96 [2025-02-04 05:17:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:17:04 - End Time 2025-02-04 05:17:04 [2025-02-04 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398164', 'tblTempUsageDetail_20' ) start [2025-02-04 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398164', 'tblTempUsageDetail_20' ) end [2025-02-04 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398164', 'tblTempVendorCDR_20' ) start [2025-02-04 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398164', 'tblTempVendorCDR_20' ) end [2025-02-04 05:17:18] Production.INFO: ProcessCDR(1,14398164,1,1,2) [2025-02-04 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398164', 'tblTempUsageDetail_20' ) start [2025-02-04 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398164', 'tblTempUsageDetail_20' ) end [2025-02-04 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:17:21] Production.INFO: ==17754== Releasing lock... [2025-02-04 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:17:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:18:05 [end_date_ymd] => 2025-02-04 05:18:05 [RateCDR] => 1 ) [2025-02-04 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:18:05' and `end` < '2025-02-04 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:18:18] Production.INFO: count ==96 [2025-02-04 05:18:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:18:05 - End Time 2025-02-04 05:18:05 [2025-02-04 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398169', 'tblTempUsageDetail_20' ) start [2025-02-04 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398169', 'tblTempUsageDetail_20' ) end [2025-02-04 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398169', 'tblTempVendorCDR_20' ) start [2025-02-04 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398169', 'tblTempVendorCDR_20' ) end [2025-02-04 05:18:18] Production.INFO: ProcessCDR(1,14398169,1,1,2) [2025-02-04 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398169', 'tblTempUsageDetail_20' ) start [2025-02-04 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398169', 'tblTempUsageDetail_20' ) end [2025-02-04 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:18:21] Production.INFO: ==17830== Releasing lock... [2025-02-04 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:18:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:19:05 [end_date_ymd] => 2025-02-04 05:19:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 02:19:05' and `end` < '2025-02-04 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:19:18] Production.INFO: count ==96 [2025-02-04 05:19:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:19:05 - End Time 2025-02-04 05:19:05 [2025-02-04 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398174', 'tblTempUsageDetail_20' ) start [2025-02-04 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398174', 'tblTempUsageDetail_20' ) end [2025-02-04 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398174', 'tblTempVendorCDR_20' ) start [2025-02-04 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398174', 'tblTempVendorCDR_20' ) end [2025-02-04 05:19:18] Production.INFO: ProcessCDR(1,14398174,1,1,2) [2025-02-04 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398174', 'tblTempUsageDetail_20' ) start [2025-02-04 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398174', 'tblTempUsageDetail_20' ) end [2025-02-04 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:19:21] Production.INFO: ==17904== Releasing lock... [2025-02-04 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:19:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:20:05 [end_date_ymd] => 2025-02-04 05:20:05 [RateCDR] => 1 ) [2025-02-04 05:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:20:05' and `end` < '2025-02-04 05:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:20:18] Production.INFO: count ==96 [2025-02-04 05:20:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:20:05 - End Time 2025-02-04 05:20:05 [2025-02-04 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398179', 'tblTempUsageDetail_20' ) start [2025-02-04 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398179', 'tblTempUsageDetail_20' ) end [2025-02-04 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398179', 'tblTempVendorCDR_20' ) start [2025-02-04 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398179', 'tblTempVendorCDR_20' ) end [2025-02-04 05:20:18] Production.INFO: ProcessCDR(1,14398179,1,1,2) [2025-02-04 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398179', 'tblTempUsageDetail_20' ) start [2025-02-04 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398179', 'tblTempUsageDetail_20' ) end [2025-02-04 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:20:21] Production.INFO: ==17979== Releasing lock... [2025-02-04 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:20:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:21:05 [end_date_ymd] => 2025-02-04 05:21:05 [RateCDR] => 1 ) [2025-02-04 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:21:05' and `end` < '2025-02-04 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:21:18] Production.INFO: count ==96 [2025-02-04 05:21:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:21:05 - End Time 2025-02-04 05:21:05 [2025-02-04 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398185', 'tblTempUsageDetail_20' ) start [2025-02-04 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398185', 'tblTempUsageDetail_20' ) end [2025-02-04 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398185', 'tblTempVendorCDR_20' ) start [2025-02-04 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398185', 'tblTempVendorCDR_20' ) end [2025-02-04 05:21:18] Production.INFO: ProcessCDR(1,14398185,1,1,2) [2025-02-04 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398185', 'tblTempUsageDetail_20' ) start [2025-02-04 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398185', 'tblTempUsageDetail_20' ) end [2025-02-04 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:21:21] Production.INFO: ==18055== Releasing lock... [2025-02-04 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:21:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:22:05 [end_date_ymd] => 2025-02-04 05:22:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 02:22:05' and `end` < '2025-02-04 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-02-04 05:22:18] Production.INFO: count ==96 [2025-02-04 05:22:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:22:05 - End Time 2025-02-04 05:22:05 [2025-02-04 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398190', 'tblTempUsageDetail_20' ) start [2025-02-04 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398190', 'tblTempUsageDetail_20' ) end [2025-02-04 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398190', 'tblTempVendorCDR_20' ) start [2025-02-04 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398190', 'tblTempVendorCDR_20' ) end [2025-02-04 05:22:18] Production.INFO: ProcessCDR(1,14398190,1,1,2) [2025-02-04 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398190', 'tblTempUsageDetail_20' ) start [2025-02-04 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398190', 'tblTempUsageDetail_20' ) end [2025-02-04 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:22:21] Production.INFO: ==18133== Releasing lock... [2025-02-04 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:22:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:23:05 [end_date_ymd] => 2025-02-04 05:23:05 [RateCDR] => 1 ) [2025-02-04 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:23:05' and `end` < '2025-02-04 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:23:18] Production.INFO: count ==96 [2025-02-04 05:23:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:23:05 - End Time 2025-02-04 05:23:05 [2025-02-04 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398195', 'tblTempUsageDetail_20' ) start [2025-02-04 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398195', 'tblTempUsageDetail_20' ) end [2025-02-04 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398195', 'tblTempVendorCDR_20' ) start [2025-02-04 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398195', 'tblTempVendorCDR_20' ) end [2025-02-04 05:23:18] Production.INFO: ProcessCDR(1,14398195,1,1,2) [2025-02-04 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398195', 'tblTempUsageDetail_20' ) start [2025-02-04 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398195', 'tblTempUsageDetail_20' ) end [2025-02-04 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:23:21] Production.INFO: ==18206== Releasing lock... [2025-02-04 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:23:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:24:05 [end_date_ymd] => 2025-02-04 05:24:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 02:24:05' and `end` < '2025-02-04 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-02-04 05:24:18] Production.INFO: count ==96 [2025-02-04 05:24:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:24:05 - End Time 2025-02-04 05:24:05 [2025-02-04 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398200', 'tblTempUsageDetail_20' ) start [2025-02-04 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398200', 'tblTempUsageDetail_20' ) end [2025-02-04 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398200', 'tblTempVendorCDR_20' ) start [2025-02-04 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398200', 'tblTempVendorCDR_20' ) end [2025-02-04 05:24:18] Production.INFO: ProcessCDR(1,14398200,1,1,2) [2025-02-04 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398200', 'tblTempUsageDetail_20' ) start [2025-02-04 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398200', 'tblTempUsageDetail_20' ) end [2025-02-04 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:24:21] Production.INFO: ==18280== Releasing lock... [2025-02-04 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:24:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:25:05 [end_date_ymd] => 2025-02-04 05:25:05 [RateCDR] => 1 ) [2025-02-04 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:25:05' and `end` < '2025-02-04 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:25:19] Production.INFO: count ==96 [2025-02-04 05:25:19] Production.ERROR: pbx CDR StartTime 2025-02-04 02:25:05 - End Time 2025-02-04 05:25:05 [2025-02-04 05:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398205', 'tblTempUsageDetail_20' ) start [2025-02-04 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398205', 'tblTempUsageDetail_20' ) end [2025-02-04 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398205', 'tblTempVendorCDR_20' ) start [2025-02-04 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398205', 'tblTempVendorCDR_20' ) end [2025-02-04 05:25:19] Production.INFO: ProcessCDR(1,14398205,1,1,2) [2025-02-04 05:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398205', 'tblTempUsageDetail_20' ) start [2025-02-04 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398205', 'tblTempUsageDetail_20' ) end [2025-02-04 05:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:25:22] Production.INFO: ==18354== Releasing lock... [2025-02-04 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:25:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:26:05 [end_date_ymd] => 2025-02-04 05:26:05 [RateCDR] => 1 ) [2025-02-04 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:26:05' and `end` < '2025-02-04 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:26:18] Production.INFO: count ==96 [2025-02-04 05:26:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:26:05 - End Time 2025-02-04 05:26:05 [2025-02-04 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398210', 'tblTempUsageDetail_20' ) start [2025-02-04 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398210', 'tblTempUsageDetail_20' ) end [2025-02-04 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398210', 'tblTempVendorCDR_20' ) start [2025-02-04 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398210', 'tblTempVendorCDR_20' ) end [2025-02-04 05:26:18] Production.INFO: ProcessCDR(1,14398210,1,1,2) [2025-02-04 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398210', 'tblTempUsageDetail_20' ) start [2025-02-04 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398210', 'tblTempUsageDetail_20' ) end [2025-02-04 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:26:21] Production.INFO: ==18471== Releasing lock... [2025-02-04 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:26:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:27:05 [end_date_ymd] => 2025-02-04 05:27:05 [RateCDR] => 1 ) [2025-02-04 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:27:05' and `end` < '2025-02-04 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:27:18] Production.INFO: count ==96 [2025-02-04 05:27:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:27:05 - End Time 2025-02-04 05:27:05 [2025-02-04 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398215', 'tblTempUsageDetail_20' ) start [2025-02-04 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398215', 'tblTempUsageDetail_20' ) end [2025-02-04 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398215', 'tblTempVendorCDR_20' ) start [2025-02-04 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398215', 'tblTempVendorCDR_20' ) end [2025-02-04 05:27:18] Production.INFO: ProcessCDR(1,14398215,1,1,2) [2025-02-04 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398215', 'tblTempUsageDetail_20' ) start [2025-02-04 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398215', 'tblTempUsageDetail_20' ) end [2025-02-04 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:27:21] Production.INFO: ==18543== Releasing lock... [2025-02-04 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:27:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:28:06 [end_date_ymd] => 2025-02-04 05:28:06 [RateCDR] => 1 ) [2025-02-04 05:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:28:06' and `end` < '2025-02-04 05:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:28:18] Production.INFO: count ==96 [2025-02-04 05:28:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:28:06 - End Time 2025-02-04 05:28:06 [2025-02-04 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398220', 'tblTempUsageDetail_20' ) start [2025-02-04 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398220', 'tblTempUsageDetail_20' ) end [2025-02-04 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398220', 'tblTempVendorCDR_20' ) start [2025-02-04 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398220', 'tblTempVendorCDR_20' ) end [2025-02-04 05:28:18] Production.INFO: ProcessCDR(1,14398220,1,1,2) [2025-02-04 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398220', 'tblTempUsageDetail_20' ) start [2025-02-04 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398220', 'tblTempUsageDetail_20' ) end [2025-02-04 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:28:22] Production.INFO: ==18617== Releasing lock... [2025-02-04 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:28:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:29:05 [end_date_ymd] => 2025-02-04 05:29:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 02:29:05' and `end` < '2025-02-04 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-02-04 05:29:18] Production.INFO: count ==96 [2025-02-04 05:29:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:29:05 - End Time 2025-02-04 05:29:05 [2025-02-04 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398225', 'tblTempUsageDetail_20' ) start [2025-02-04 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398225', 'tblTempUsageDetail_20' ) end [2025-02-04 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398225', 'tblTempVendorCDR_20' ) start [2025-02-04 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398225', 'tblTempVendorCDR_20' ) end [2025-02-04 05:29:18] Production.INFO: ProcessCDR(1,14398225,1,1,2) [2025-02-04 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398225', 'tblTempUsageDetail_20' ) start [2025-02-04 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398225', 'tblTempUsageDetail_20' ) end [2025-02-04 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:29:21] Production.INFO: ==18717== Releasing lock... [2025-02-04 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:29:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:30:06 [end_date_ymd] => 2025-02-04 05:30:06 [RateCDR] => 1 ) [2025-02-04 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:30:06' and `end` < '2025-02-04 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:30:19] Production.INFO: count ==93 [2025-02-04 05:30:19] Production.ERROR: pbx CDR StartTime 2025-02-04 02:30:06 - End Time 2025-02-04 05:30:06 [2025-02-04 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398231', 'tblTempUsageDetail_20' ) start [2025-02-04 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398231', 'tblTempUsageDetail_20' ) end [2025-02-04 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398231', 'tblTempVendorCDR_20' ) start [2025-02-04 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398231', 'tblTempVendorCDR_20' ) end [2025-02-04 05:30:19] Production.INFO: ProcessCDR(1,14398231,1,1,2) [2025-02-04 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398231', 'tblTempUsageDetail_20' ) start [2025-02-04 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398231', 'tblTempUsageDetail_20' ) end [2025-02-04 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:30:22] Production.INFO: ==18820== Releasing lock... [2025-02-04 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:30:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:31:04 [end_date_ymd] => 2025-02-04 05:31:04 [RateCDR] => 1 ) [2025-02-04 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:31:04' and `end` < '2025-02-04 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-02-04 05:31:18] Production.INFO: count ==93 [2025-02-04 05:31:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:31:04 - End Time 2025-02-04 05:31:04 [2025-02-04 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398236', 'tblTempUsageDetail_20' ) start [2025-02-04 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398236', 'tblTempUsageDetail_20' ) end [2025-02-04 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398236', 'tblTempVendorCDR_20' ) start [2025-02-04 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398236', 'tblTempVendorCDR_20' ) end [2025-02-04 05:31:18] Production.INFO: ProcessCDR(1,14398236,1,1,2) [2025-02-04 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398236', 'tblTempUsageDetail_20' ) start [2025-02-04 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398236', 'tblTempUsageDetail_20' ) end [2025-02-04 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:31:21] Production.INFO: ==18922== Releasing lock... [2025-02-04 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:31:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:32:05 [end_date_ymd] => 2025-02-04 05:32:05 [RateCDR] => 1 ) [2025-02-04 05:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:32:05' and `end` < '2025-02-04 05:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:32:18] Production.INFO: count ==93 [2025-02-04 05:32:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:32:05 - End Time 2025-02-04 05:32:05 [2025-02-04 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398241', 'tblTempUsageDetail_20' ) start [2025-02-04 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398241', 'tblTempUsageDetail_20' ) end [2025-02-04 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398241', 'tblTempVendorCDR_20' ) start [2025-02-04 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398241', 'tblTempVendorCDR_20' ) end [2025-02-04 05:32:18] Production.INFO: ProcessCDR(1,14398241,1,1,2) [2025-02-04 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398241', 'tblTempUsageDetail_20' ) start [2025-02-04 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398241', 'tblTempUsageDetail_20' ) end [2025-02-04 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:32:21] Production.INFO: ==19003== Releasing lock... [2025-02-04 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:32:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:33:04 [end_date_ymd] => 2025-02-04 05:33:04 [RateCDR] => 1 ) [2025-02-04 05: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-02-04 02:33:04' and `end` < '2025-02-04 05: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-02-04 05:33:17] Production.INFO: count ==93 [2025-02-04 05:33:17] Production.ERROR: pbx CDR StartTime 2025-02-04 02:33:04 - End Time 2025-02-04 05:33:04 [2025-02-04 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398246', 'tblTempUsageDetail_20' ) start [2025-02-04 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398246', 'tblTempUsageDetail_20' ) end [2025-02-04 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398246', 'tblTempVendorCDR_20' ) start [2025-02-04 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398246', 'tblTempVendorCDR_20' ) end [2025-02-04 05:33:17] Production.INFO: ProcessCDR(1,14398246,1,1,2) [2025-02-04 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398246', 'tblTempUsageDetail_20' ) start [2025-02-04 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398246', 'tblTempUsageDetail_20' ) end [2025-02-04 05:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:33:20] Production.INFO: ==19075== Releasing lock... [2025-02-04 05:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:33:20] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:34:05 [end_date_ymd] => 2025-02-04 05:34:05 [RateCDR] => 1 ) [2025-02-04 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:34:05' and `end` < '2025-02-04 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:34:18] Production.INFO: count ==93 [2025-02-04 05:34:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:34:05 - End Time 2025-02-04 05:34:05 [2025-02-04 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398251', 'tblTempUsageDetail_20' ) start [2025-02-04 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398251', 'tblTempUsageDetail_20' ) end [2025-02-04 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398251', 'tblTempVendorCDR_20' ) start [2025-02-04 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398251', 'tblTempVendorCDR_20' ) end [2025-02-04 05:34:18] Production.INFO: ProcessCDR(1,14398251,1,1,2) [2025-02-04 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398251', 'tblTempUsageDetail_20' ) start [2025-02-04 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398251', 'tblTempUsageDetail_20' ) end [2025-02-04 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:34:21] Production.INFO: ==19152== Releasing lock... [2025-02-04 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:34:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:35:05 [end_date_ymd] => 2025-02-04 05:35:05 [RateCDR] => 1 ) [2025-02-04 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:35:05' and `end` < '2025-02-04 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:35:17] Production.INFO: count ==93 [2025-02-04 05:35:17] Production.ERROR: pbx CDR StartTime 2025-02-04 02:35:05 - End Time 2025-02-04 05:35:05 [2025-02-04 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398256', 'tblTempUsageDetail_20' ) start [2025-02-04 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398256', 'tblTempUsageDetail_20' ) end [2025-02-04 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398256', 'tblTempVendorCDR_20' ) start [2025-02-04 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398256', 'tblTempVendorCDR_20' ) end [2025-02-04 05:35:17] Production.INFO: ProcessCDR(1,14398256,1,1,2) [2025-02-04 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398256', 'tblTempUsageDetail_20' ) start [2025-02-04 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398256', 'tblTempUsageDetail_20' ) end [2025-02-04 05:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:35:20] Production.INFO: ==19223== Releasing lock... [2025-02-04 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:35:20] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:36:05 [end_date_ymd] => 2025-02-04 05:36:05 [RateCDR] => 1 ) [2025-02-04 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:36:05' and `end` < '2025-02-04 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:36:18] Production.INFO: count ==93 [2025-02-04 05:36:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:36:05 - End Time 2025-02-04 05:36:05 [2025-02-04 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398261', 'tblTempUsageDetail_20' ) start [2025-02-04 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398261', 'tblTempUsageDetail_20' ) end [2025-02-04 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398261', 'tblTempVendorCDR_20' ) start [2025-02-04 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398261', 'tblTempVendorCDR_20' ) end [2025-02-04 05:36:18] Production.INFO: ProcessCDR(1,14398261,1,1,2) [2025-02-04 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398261', 'tblTempUsageDetail_20' ) start [2025-02-04 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398261', 'tblTempUsageDetail_20' ) end [2025-02-04 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:36:21] Production.INFO: ==19294== Releasing lock... [2025-02-04 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:36:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:37:05 [end_date_ymd] => 2025-02-04 05:37:05 [RateCDR] => 1 ) [2025-02-04 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:37:05' and `end` < '2025-02-04 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:37:18] Production.INFO: count ==93 [2025-02-04 05:37:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:37:05 - End Time 2025-02-04 05:37:05 [2025-02-04 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398266', 'tblTempUsageDetail_20' ) start [2025-02-04 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398266', 'tblTempUsageDetail_20' ) end [2025-02-04 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398266', 'tblTempVendorCDR_20' ) start [2025-02-04 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398266', 'tblTempVendorCDR_20' ) end [2025-02-04 05:37:18] Production.INFO: ProcessCDR(1,14398266,1,1,2) [2025-02-04 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398266', 'tblTempUsageDetail_20' ) start [2025-02-04 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398266', 'tblTempUsageDetail_20' ) end [2025-02-04 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:37:21] Production.INFO: ==19392== Releasing lock... [2025-02-04 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:37:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:38:05 [end_date_ymd] => 2025-02-04 05:38:05 [RateCDR] => 1 ) [2025-02-04 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:38:05' and `end` < '2025-02-04 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:38:18] Production.INFO: count ==93 [2025-02-04 05:38:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:38:05 - End Time 2025-02-04 05:38:05 [2025-02-04 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398271', 'tblTempUsageDetail_20' ) start [2025-02-04 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398271', 'tblTempUsageDetail_20' ) end [2025-02-04 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398271', 'tblTempVendorCDR_20' ) start [2025-02-04 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398271', 'tblTempVendorCDR_20' ) end [2025-02-04 05:38:18] Production.INFO: ProcessCDR(1,14398271,1,1,2) [2025-02-04 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398271', 'tblTempUsageDetail_20' ) start [2025-02-04 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398271', 'tblTempUsageDetail_20' ) end [2025-02-04 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:38:21] Production.INFO: ==19492== Releasing lock... [2025-02-04 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:38:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:39:06 [end_date_ymd] => 2025-02-04 05:39:06 [RateCDR] => 1 ) [2025-02-04 05:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:39:06' and `end` < '2025-02-04 05:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:39:18] Production.INFO: count ==93 [2025-02-04 05:39:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:39:06 - End Time 2025-02-04 05:39:06 [2025-02-04 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398276', 'tblTempUsageDetail_20' ) start [2025-02-04 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398276', 'tblTempUsageDetail_20' ) end [2025-02-04 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398276', 'tblTempVendorCDR_20' ) start [2025-02-04 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398276', 'tblTempVendorCDR_20' ) end [2025-02-04 05:39:18] Production.INFO: ProcessCDR(1,14398276,1,1,2) [2025-02-04 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398276', 'tblTempUsageDetail_20' ) start [2025-02-04 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398276', 'tblTempUsageDetail_20' ) end [2025-02-04 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:39:21] Production.INFO: ==19589== Releasing lock... [2025-02-04 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:39:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:40:05 [end_date_ymd] => 2025-02-04 05:40:05 [RateCDR] => 1 ) [2025-02-04 05:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:40:05' and `end` < '2025-02-04 05:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:40:18] Production.INFO: count ==90 [2025-02-04 05:40:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:40:05 - End Time 2025-02-04 05:40:05 [2025-02-04 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398281', 'tblTempUsageDetail_20' ) start [2025-02-04 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398281', 'tblTempUsageDetail_20' ) end [2025-02-04 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398281', 'tblTempVendorCDR_20' ) start [2025-02-04 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398281', 'tblTempVendorCDR_20' ) end [2025-02-04 05:40:18] Production.INFO: ProcessCDR(1,14398281,1,1,2) [2025-02-04 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398281', 'tblTempUsageDetail_20' ) start [2025-02-04 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398281', 'tblTempUsageDetail_20' ) end [2025-02-04 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:40:21] Production.INFO: ==19668== Releasing lock... [2025-02-04 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:40:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:41:05 [end_date_ymd] => 2025-02-04 05:41:05 [RateCDR] => 1 ) [2025-02-04 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:41:05' and `end` < '2025-02-04 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:41:18] Production.INFO: count ==90 [2025-02-04 05:41:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:41:05 - End Time 2025-02-04 05:41:05 [2025-02-04 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398287', 'tblTempUsageDetail_20' ) start [2025-02-04 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398287', 'tblTempUsageDetail_20' ) end [2025-02-04 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398287', 'tblTempVendorCDR_20' ) start [2025-02-04 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398287', 'tblTempVendorCDR_20' ) end [2025-02-04 05:41:18] Production.INFO: ProcessCDR(1,14398287,1,1,2) [2025-02-04 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398287', 'tblTempUsageDetail_20' ) start [2025-02-04 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398287', 'tblTempUsageDetail_20' ) end [2025-02-04 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:41:21] Production.INFO: ==19742== Releasing lock... [2025-02-04 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:41:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:42:05 [end_date_ymd] => 2025-02-04 05:42:05 [RateCDR] => 1 ) [2025-02-04 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:42:05' and `end` < '2025-02-04 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:42:17] Production.INFO: count ==90 [2025-02-04 05:42:17] Production.ERROR: pbx CDR StartTime 2025-02-04 02:42:05 - End Time 2025-02-04 05:42:05 [2025-02-04 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398292', 'tblTempUsageDetail_20' ) start [2025-02-04 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398292', 'tblTempUsageDetail_20' ) end [2025-02-04 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398292', 'tblTempVendorCDR_20' ) start [2025-02-04 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398292', 'tblTempVendorCDR_20' ) end [2025-02-04 05:42:17] Production.INFO: ProcessCDR(1,14398292,1,1,2) [2025-02-04 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398292', 'tblTempUsageDetail_20' ) start [2025-02-04 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398292', 'tblTempUsageDetail_20' ) end [2025-02-04 05:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:42:20] Production.INFO: ==19856== Releasing lock... [2025-02-04 05:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:42:20] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:43:05 [end_date_ymd] => 2025-02-04 05:43:05 [RateCDR] => 1 ) [2025-02-04 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:43:05' and `end` < '2025-02-04 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:43:18] Production.INFO: count ==90 [2025-02-04 05:43:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:43:05 - End Time 2025-02-04 05:43:05 [2025-02-04 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398297', 'tblTempUsageDetail_20' ) start [2025-02-04 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398297', 'tblTempUsageDetail_20' ) end [2025-02-04 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398297', 'tblTempVendorCDR_20' ) start [2025-02-04 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398297', 'tblTempVendorCDR_20' ) end [2025-02-04 05:43:18] Production.INFO: ProcessCDR(1,14398297,1,1,2) [2025-02-04 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398297', 'tblTempUsageDetail_20' ) start [2025-02-04 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398297', 'tblTempUsageDetail_20' ) end [2025-02-04 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:43:21] Production.INFO: ==19930== Releasing lock... [2025-02-04 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:43:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:44:06 [end_date_ymd] => 2025-02-04 05:44:06 [RateCDR] => 1 ) [2025-02-04 05:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:44:06' and `end` < '2025-02-04 05:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:44:18] Production.INFO: count ==90 [2025-02-04 05:44:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:44:06 - End Time 2025-02-04 05:44:06 [2025-02-04 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398302', 'tblTempUsageDetail_20' ) start [2025-02-04 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398302', 'tblTempUsageDetail_20' ) end [2025-02-04 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398302', 'tblTempVendorCDR_20' ) start [2025-02-04 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398302', 'tblTempVendorCDR_20' ) end [2025-02-04 05:44:18] Production.INFO: ProcessCDR(1,14398302,1,1,2) [2025-02-04 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398302', 'tblTempUsageDetail_20' ) start [2025-02-04 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398302', 'tblTempUsageDetail_20' ) end [2025-02-04 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:44:21] Production.INFO: ==20005== Releasing lock... [2025-02-04 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:44:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:45:05 [end_date_ymd] => 2025-02-04 05:45:05 [RateCDR] => 1 ) [2025-02-04 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:45:05' and `end` < '2025-02-04 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:45:18] Production.INFO: count ==90 [2025-02-04 05:45:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:45:05 - End Time 2025-02-04 05:45:05 [2025-02-04 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398307', 'tblTempUsageDetail_20' ) start [2025-02-04 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398307', 'tblTempUsageDetail_20' ) end [2025-02-04 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398307', 'tblTempVendorCDR_20' ) start [2025-02-04 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398307', 'tblTempVendorCDR_20' ) end [2025-02-04 05:45:18] Production.INFO: ProcessCDR(1,14398307,1,1,2) [2025-02-04 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398307', 'tblTempUsageDetail_20' ) start [2025-02-04 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398307', 'tblTempUsageDetail_20' ) end [2025-02-04 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:45:21] Production.INFO: ==20090== Releasing lock... [2025-02-04 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:45:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:46:06 [end_date_ymd] => 2025-02-04 05:46:06 [RateCDR] => 1 ) [2025-02-04 05:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:46:06' and `end` < '2025-02-04 05:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:46:19] Production.INFO: count ==90 [2025-02-04 05:46:19] Production.ERROR: pbx CDR StartTime 2025-02-04 02:46:06 - End Time 2025-02-04 05:46:06 [2025-02-04 05:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398312', 'tblTempUsageDetail_20' ) start [2025-02-04 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398312', 'tblTempUsageDetail_20' ) end [2025-02-04 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398312', 'tblTempVendorCDR_20' ) start [2025-02-04 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398312', 'tblTempVendorCDR_20' ) end [2025-02-04 05:46:19] Production.INFO: ProcessCDR(1,14398312,1,1,2) [2025-02-04 05:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398312', 'tblTempUsageDetail_20' ) start [2025-02-04 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398312', 'tblTempUsageDetail_20' ) end [2025-02-04 05:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:46:22] Production.INFO: ==20164== Releasing lock... [2025-02-04 05:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:46:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:47:05 [end_date_ymd] => 2025-02-04 05:47:05 [RateCDR] => 1 ) [2025-02-04 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:47:05' and `end` < '2025-02-04 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:47:18] Production.INFO: count ==90 [2025-02-04 05:47:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:47:05 - End Time 2025-02-04 05:47:05 [2025-02-04 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398317', 'tblTempUsageDetail_20' ) start [2025-02-04 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398317', 'tblTempUsageDetail_20' ) end [2025-02-04 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398317', 'tblTempVendorCDR_20' ) start [2025-02-04 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398317', 'tblTempVendorCDR_20' ) end [2025-02-04 05:47:18] Production.INFO: ProcessCDR(1,14398317,1,1,2) [2025-02-04 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398317', 'tblTempUsageDetail_20' ) start [2025-02-04 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398317', 'tblTempUsageDetail_20' ) end [2025-02-04 05:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:47:22] Production.INFO: ==20237== Releasing lock... [2025-02-04 05:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:47:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:48:05 [end_date_ymd] => 2025-02-04 05:48:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 02:48:05' and `end` < '2025-02-04 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-02-04 05:48:19] Production.INFO: count ==90 [2025-02-04 05:48:19] Production.ERROR: pbx CDR StartTime 2025-02-04 02:48:05 - End Time 2025-02-04 05:48:05 [2025-02-04 05:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398322', 'tblTempUsageDetail_20' ) start [2025-02-04 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398322', 'tblTempUsageDetail_20' ) end [2025-02-04 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398322', 'tblTempVendorCDR_20' ) start [2025-02-04 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398322', 'tblTempVendorCDR_20' ) end [2025-02-04 05:48:19] Production.INFO: ProcessCDR(1,14398322,1,1,2) [2025-02-04 05:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398322', 'tblTempUsageDetail_20' ) start [2025-02-04 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398322', 'tblTempUsageDetail_20' ) end [2025-02-04 05:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:48:22] Production.INFO: ==20315== Releasing lock... [2025-02-04 05:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:48:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:49:05 [end_date_ymd] => 2025-02-04 05:49:05 [RateCDR] => 1 ) [2025-02-04 05:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:49:05' and `end` < '2025-02-04 05:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:49:17] Production.INFO: count ==90 [2025-02-04 05:49:17] Production.ERROR: pbx CDR StartTime 2025-02-04 02:49:05 - End Time 2025-02-04 05:49:05 [2025-02-04 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398327', 'tblTempUsageDetail_20' ) start [2025-02-04 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398327', 'tblTempUsageDetail_20' ) end [2025-02-04 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398327', 'tblTempVendorCDR_20' ) start [2025-02-04 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398327', 'tblTempVendorCDR_20' ) end [2025-02-04 05:49:17] Production.INFO: ProcessCDR(1,14398327,1,1,2) [2025-02-04 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398327', 'tblTempUsageDetail_20' ) start [2025-02-04 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398327', 'tblTempUsageDetail_20' ) end [2025-02-04 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:49:21] Production.INFO: ==20395== Releasing lock... [2025-02-04 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:49:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:50:06 [end_date_ymd] => 2025-02-04 05:50:06 [RateCDR] => 1 ) [2025-02-04 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:50:06' and `end` < '2025-02-04 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:50:19] Production.INFO: count ==86 [2025-02-04 05:50:19] Production.ERROR: pbx CDR StartTime 2025-02-04 02:50:06 - End Time 2025-02-04 05:50:06 [2025-02-04 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398333', 'tblTempUsageDetail_20' ) start [2025-02-04 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398333', 'tblTempUsageDetail_20' ) end [2025-02-04 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398333', 'tblTempVendorCDR_20' ) start [2025-02-04 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398333', 'tblTempVendorCDR_20' ) end [2025-02-04 05:50:19] Production.INFO: ProcessCDR(1,14398333,1,1,2) [2025-02-04 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398333', 'tblTempUsageDetail_20' ) start [2025-02-04 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398333', 'tblTempUsageDetail_20' ) end [2025-02-04 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:50:22] Production.INFO: ==20473== Releasing lock... [2025-02-04 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:50:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:51:04 [end_date_ymd] => 2025-02-04 05:51:04 [RateCDR] => 1 ) [2025-02-04 05:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:51:04' and `end` < '2025-02-04 05:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:51:17] Production.INFO: count ==82 [2025-02-04 05:51:17] Production.ERROR: pbx CDR StartTime 2025-02-04 02:51:04 - End Time 2025-02-04 05:51:04 [2025-02-04 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398338', 'tblTempUsageDetail_20' ) start [2025-02-04 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398338', 'tblTempUsageDetail_20' ) end [2025-02-04 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398338', 'tblTempVendorCDR_20' ) start [2025-02-04 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398338', 'tblTempVendorCDR_20' ) end [2025-02-04 05:51:17] Production.INFO: ProcessCDR(1,14398338,1,1,2) [2025-02-04 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398338', 'tblTempUsageDetail_20' ) start [2025-02-04 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398338', 'tblTempUsageDetail_20' ) end [2025-02-04 05:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:51:20] Production.INFO: ==20548== Releasing lock... [2025-02-04 05:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:51:20] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:52:05 [end_date_ymd] => 2025-02-04 05:52:05 [RateCDR] => 1 ) [2025-02-04 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:52:05' and `end` < '2025-02-04 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:52:18] Production.INFO: count ==82 [2025-02-04 05:52:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:52:05 - End Time 2025-02-04 05:52:05 [2025-02-04 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398343', 'tblTempUsageDetail_20' ) start [2025-02-04 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398343', 'tblTempUsageDetail_20' ) end [2025-02-04 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398343', 'tblTempVendorCDR_20' ) start [2025-02-04 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398343', 'tblTempVendorCDR_20' ) end [2025-02-04 05:52:18] Production.INFO: ProcessCDR(1,14398343,1,1,2) [2025-02-04 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398343', 'tblTempUsageDetail_20' ) start [2025-02-04 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398343', 'tblTempUsageDetail_20' ) end [2025-02-04 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:52:21] Production.INFO: ==20626== Releasing lock... [2025-02-04 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:52:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:53:06 [end_date_ymd] => 2025-02-04 05:53:06 [RateCDR] => 1 ) [2025-02-04 05:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:53:06' and `end` < '2025-02-04 05:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:53:18] Production.INFO: count ==82 [2025-02-04 05:53:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:53:06 - End Time 2025-02-04 05:53:06 [2025-02-04 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398348', 'tblTempUsageDetail_20' ) start [2025-02-04 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398348', 'tblTempUsageDetail_20' ) end [2025-02-04 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398348', 'tblTempVendorCDR_20' ) start [2025-02-04 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398348', 'tblTempVendorCDR_20' ) end [2025-02-04 05:53:18] Production.INFO: ProcessCDR(1,14398348,1,1,2) [2025-02-04 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398348', 'tblTempUsageDetail_20' ) start [2025-02-04 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398348', 'tblTempUsageDetail_20' ) end [2025-02-04 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:53:21] Production.INFO: ==20705== Releasing lock... [2025-02-04 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:53:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:54:05 [end_date_ymd] => 2025-02-04 05:54:05 [RateCDR] => 1 ) [2025-02-04 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:54:05' and `end` < '2025-02-04 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:54:18] Production.INFO: count ==82 [2025-02-04 05:54:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:54:05 - End Time 2025-02-04 05:54:05 [2025-02-04 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398353', 'tblTempUsageDetail_20' ) start [2025-02-04 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398353', 'tblTempUsageDetail_20' ) end [2025-02-04 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398353', 'tblTempVendorCDR_20' ) start [2025-02-04 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398353', 'tblTempVendorCDR_20' ) end [2025-02-04 05:54:18] Production.INFO: ProcessCDR(1,14398353,1,1,2) [2025-02-04 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398353', 'tblTempUsageDetail_20' ) start [2025-02-04 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398353', 'tblTempUsageDetail_20' ) end [2025-02-04 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:54:21] Production.INFO: ==20781== Releasing lock... [2025-02-04 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:54:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:55:05 [end_date_ymd] => 2025-02-04 05:55:05 [RateCDR] => 1 ) [2025-02-04 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:55:05' and `end` < '2025-02-04 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:55:18] Production.INFO: count ==82 [2025-02-04 05:55:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:55:05 - End Time 2025-02-04 05:55:05 [2025-02-04 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398358', 'tblTempUsageDetail_20' ) start [2025-02-04 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398358', 'tblTempUsageDetail_20' ) end [2025-02-04 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398358', 'tblTempVendorCDR_20' ) start [2025-02-04 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398358', 'tblTempVendorCDR_20' ) end [2025-02-04 05:55:18] Production.INFO: ProcessCDR(1,14398358,1,1,2) [2025-02-04 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398358', 'tblTempUsageDetail_20' ) start [2025-02-04 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398358', 'tblTempUsageDetail_20' ) end [2025-02-04 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:55:21] Production.INFO: ==20857== Releasing lock... [2025-02-04 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:55:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:56:05 [end_date_ymd] => 2025-02-04 05:56:05 [RateCDR] => 1 ) [2025-02-04 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:56:05' and `end` < '2025-02-04 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:56:18] Production.INFO: count ==82 [2025-02-04 05:56:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:56:05 - End Time 2025-02-04 05:56:05 [2025-02-04 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398363', 'tblTempUsageDetail_20' ) start [2025-02-04 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398363', 'tblTempUsageDetail_20' ) end [2025-02-04 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398363', 'tblTempVendorCDR_20' ) start [2025-02-04 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398363', 'tblTempVendorCDR_20' ) end [2025-02-04 05:56:18] Production.INFO: ProcessCDR(1,14398363,1,1,2) [2025-02-04 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398363', 'tblTempUsageDetail_20' ) start [2025-02-04 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398363', 'tblTempUsageDetail_20' ) end [2025-02-04 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:56:21] Production.INFO: ==20937== Releasing lock... [2025-02-04 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:56:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:57:05 [end_date_ymd] => 2025-02-04 05:57:05 [RateCDR] => 1 ) [2025-02-04 05:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:57:05' and `end` < '2025-02-04 05:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:57:18] Production.INFO: count ==82 [2025-02-04 05:57:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:57:05 - End Time 2025-02-04 05:57:05 [2025-02-04 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398368', 'tblTempUsageDetail_20' ) start [2025-02-04 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398368', 'tblTempUsageDetail_20' ) end [2025-02-04 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398368', 'tblTempVendorCDR_20' ) start [2025-02-04 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398368', 'tblTempVendorCDR_20' ) end [2025-02-04 05:57:18] Production.INFO: ProcessCDR(1,14398368,1,1,2) [2025-02-04 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398368', 'tblTempUsageDetail_20' ) start [2025-02-04 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398368', 'tblTempUsageDetail_20' ) end [2025-02-04 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:57:21] Production.INFO: ==21054== Releasing lock... [2025-02-04 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:57:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:58:05 [end_date_ymd] => 2025-02-04 05:58:05 [RateCDR] => 1 ) [2025-02-04 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:58:05' and `end` < '2025-02-04 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:58:18] Production.INFO: count ==82 [2025-02-04 05:58:18] Production.ERROR: pbx CDR StartTime 2025-02-04 02:58:05 - End Time 2025-02-04 05:58:05 [2025-02-04 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398373', 'tblTempUsageDetail_20' ) start [2025-02-04 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398373', 'tblTempUsageDetail_20' ) end [2025-02-04 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398373', 'tblTempVendorCDR_20' ) start [2025-02-04 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398373', 'tblTempVendorCDR_20' ) end [2025-02-04 05:58:18] Production.INFO: ProcessCDR(1,14398373,1,1,2) [2025-02-04 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398373', 'tblTempUsageDetail_20' ) start [2025-02-04 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398373', 'tblTempUsageDetail_20' ) end [2025-02-04 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:58:21] Production.INFO: ==21136== Releasing lock... [2025-02-04 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:58:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 02:59:05 [end_date_ymd] => 2025-02-04 05:59:05 [RateCDR] => 1 ) [2025-02-04 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 02:59:05' and `end` < '2025-02-04 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 05:59:19] Production.INFO: count ==83 [2025-02-04 05:59:19] Production.ERROR: pbx CDR StartTime 2025-02-04 02:59:05 - End Time 2025-02-04 05:59:05 [2025-02-04 05:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398378', 'tblTempUsageDetail_20' ) start [2025-02-04 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398378', 'tblTempUsageDetail_20' ) end [2025-02-04 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398378', 'tblTempVendorCDR_20' ) start [2025-02-04 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398378', 'tblTempVendorCDR_20' ) end [2025-02-04 05:59:19] Production.INFO: ProcessCDR(1,14398378,1,1,2) [2025-02-04 05:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 05:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 05:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398378', 'tblTempUsageDetail_20' ) start [2025-02-04 05:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398378', 'tblTempUsageDetail_20' ) end [2025-02-04 05:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 05:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 05:59:24] Production.INFO: ==21216== Releasing lock... [2025-02-04 05:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 05:59:24] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:00:06 [end_date_ymd] => 2025-02-04 06:00:06 [RateCDR] => 1 ) [2025-02-04 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:00:06' and `end` < '2025-02-04 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:00:19] Production.INFO: count ==81 [2025-02-04 06:00:19] Production.ERROR: pbx CDR StartTime 2025-02-04 03:00:06 - End Time 2025-02-04 06:00:06 [2025-02-04 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398384', 'tblTempUsageDetail_20' ) start [2025-02-04 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398384', 'tblTempUsageDetail_20' ) end [2025-02-04 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398384', 'tblTempVendorCDR_20' ) start [2025-02-04 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398384', 'tblTempVendorCDR_20' ) end [2025-02-04 06:00:19] Production.INFO: ProcessCDR(1,14398384,1,1,2) [2025-02-04 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398384', 'tblTempUsageDetail_20' ) start [2025-02-04 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398384', 'tblTempUsageDetail_20' ) end [2025-02-04 06:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:00:23] Production.INFO: ==21300== Releasing lock... [2025-02-04 06:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:00:23] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:01:05 [end_date_ymd] => 2025-02-04 06:01:05 [RateCDR] => 1 ) [2025-02-04 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:01:05' and `end` < '2025-02-04 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:01:19] Production.INFO: count ==81 [2025-02-04 06:01:19] Production.ERROR: pbx CDR StartTime 2025-02-04 03:01:05 - End Time 2025-02-04 06:01:05 [2025-02-04 06:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398389', 'tblTempUsageDetail_20' ) start [2025-02-04 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398389', 'tblTempUsageDetail_20' ) end [2025-02-04 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398389', 'tblTempVendorCDR_20' ) start [2025-02-04 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398389', 'tblTempVendorCDR_20' ) end [2025-02-04 06:01:19] Production.INFO: ProcessCDR(1,14398389,1,1,2) [2025-02-04 06:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398389', 'tblTempUsageDetail_20' ) start [2025-02-04 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398389', 'tblTempUsageDetail_20' ) end [2025-02-04 06:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:01:22] Production.INFO: ==21388== Releasing lock... [2025-02-04 06:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:01:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:02:06 [end_date_ymd] => 2025-02-04 06:02:06 [RateCDR] => 1 ) [2025-02-04 06:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:02:06' and `end` < '2025-02-04 06:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:02:18] Production.INFO: count ==81 [2025-02-04 06:02:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:02:06 - End Time 2025-02-04 06:02:06 [2025-02-04 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398394', 'tblTempUsageDetail_20' ) start [2025-02-04 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398394', 'tblTempUsageDetail_20' ) end [2025-02-04 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398394', 'tblTempVendorCDR_20' ) start [2025-02-04 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398394', 'tblTempVendorCDR_20' ) end [2025-02-04 06:02:18] Production.INFO: ProcessCDR(1,14398394,1,1,2) [2025-02-04 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398394', 'tblTempUsageDetail_20' ) start [2025-02-04 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398394', 'tblTempUsageDetail_20' ) end [2025-02-04 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:02:22] Production.INFO: ==21469== Releasing lock... [2025-02-04 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:02:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:03:05 [end_date_ymd] => 2025-02-04 06:03:05 [RateCDR] => 1 ) [2025-02-04 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:03:05' and `end` < '2025-02-04 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:03:18] Production.INFO: count ==81 [2025-02-04 06:03:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:03:05 - End Time 2025-02-04 06:03:05 [2025-02-04 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398399', 'tblTempUsageDetail_20' ) start [2025-02-04 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398399', 'tblTempUsageDetail_20' ) end [2025-02-04 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398399', 'tblTempVendorCDR_20' ) start [2025-02-04 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398399', 'tblTempVendorCDR_20' ) end [2025-02-04 06:03:18] Production.INFO: ProcessCDR(1,14398399,1,1,2) [2025-02-04 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398399', 'tblTempUsageDetail_20' ) start [2025-02-04 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398399', 'tblTempUsageDetail_20' ) end [2025-02-04 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:03:21] Production.INFO: ==21549== Releasing lock... [2025-02-04 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:03:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:04:06 [end_date_ymd] => 2025-02-04 06:04:06 [RateCDR] => 1 ) [2025-02-04 06:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:04:06' and `end` < '2025-02-04 06:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:04:19] Production.INFO: count ==81 [2025-02-04 06:04:19] Production.ERROR: pbx CDR StartTime 2025-02-04 03:04:06 - End Time 2025-02-04 06:04:06 [2025-02-04 06:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398404', 'tblTempUsageDetail_20' ) start [2025-02-04 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398404', 'tblTempUsageDetail_20' ) end [2025-02-04 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398404', 'tblTempVendorCDR_20' ) start [2025-02-04 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398404', 'tblTempVendorCDR_20' ) end [2025-02-04 06:04:19] Production.INFO: ProcessCDR(1,14398404,1,1,2) [2025-02-04 06:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398404', 'tblTempUsageDetail_20' ) start [2025-02-04 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398404', 'tblTempUsageDetail_20' ) end [2025-02-04 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:04:22] Production.INFO: ==21635== Releasing lock... [2025-02-04 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:04:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:05:05 [end_date_ymd] => 2025-02-04 06:05:05 [RateCDR] => 1 ) [2025-02-04 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:05:05' and `end` < '2025-02-04 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:05:18] Production.INFO: count ==81 [2025-02-04 06:05:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:05:05 - End Time 2025-02-04 06:05:05 [2025-02-04 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398409', 'tblTempUsageDetail_20' ) start [2025-02-04 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398409', 'tblTempUsageDetail_20' ) end [2025-02-04 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398409', 'tblTempVendorCDR_20' ) start [2025-02-04 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398409', 'tblTempVendorCDR_20' ) end [2025-02-04 06:05:18] Production.INFO: ProcessCDR(1,14398409,1,1,2) [2025-02-04 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398409', 'tblTempUsageDetail_20' ) start [2025-02-04 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398409', 'tblTempUsageDetail_20' ) end [2025-02-04 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:05:21] Production.INFO: ==21716== Releasing lock... [2025-02-04 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:05:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:06:05 [end_date_ymd] => 2025-02-04 06:06:05 [RateCDR] => 1 ) [2025-02-04 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:06:05' and `end` < '2025-02-04 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:06:18] Production.INFO: count ==81 [2025-02-04 06:06:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:06:05 - End Time 2025-02-04 06:06:05 [2025-02-04 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398414', 'tblTempUsageDetail_20' ) start [2025-02-04 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398414', 'tblTempUsageDetail_20' ) end [2025-02-04 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398414', 'tblTempVendorCDR_20' ) start [2025-02-04 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398414', 'tblTempVendorCDR_20' ) end [2025-02-04 06:06:18] Production.INFO: ProcessCDR(1,14398414,1,1,2) [2025-02-04 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398414', 'tblTempUsageDetail_20' ) start [2025-02-04 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398414', 'tblTempUsageDetail_20' ) end [2025-02-04 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:06:21] Production.INFO: ==21795== Releasing lock... [2025-02-04 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:06:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:07:04 [end_date_ymd] => 2025-02-04 06:07:04 [RateCDR] => 1 ) [2025-02-04 06:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:07:04' and `end` < '2025-02-04 06:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:07:18] Production.INFO: count ==81 [2025-02-04 06:07:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:07:04 - End Time 2025-02-04 06:07:04 [2025-02-04 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398419', 'tblTempUsageDetail_20' ) start [2025-02-04 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398419', 'tblTempUsageDetail_20' ) end [2025-02-04 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398419', 'tblTempVendorCDR_20' ) start [2025-02-04 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398419', 'tblTempVendorCDR_20' ) end [2025-02-04 06:07:18] Production.INFO: ProcessCDR(1,14398419,1,1,2) [2025-02-04 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398419', 'tblTempUsageDetail_20' ) start [2025-02-04 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398419', 'tblTempUsageDetail_20' ) end [2025-02-04 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:07:21] Production.INFO: ==21874== Releasing lock... [2025-02-04 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:07:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:08:05 [end_date_ymd] => 2025-02-04 06:08:05 [RateCDR] => 1 ) [2025-02-04 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:08:05' and `end` < '2025-02-04 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:08:18] Production.INFO: count ==81 [2025-02-04 06:08:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:08:05 - End Time 2025-02-04 06:08:05 [2025-02-04 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398424', 'tblTempUsageDetail_20' ) start [2025-02-04 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398424', 'tblTempUsageDetail_20' ) end [2025-02-04 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398424', 'tblTempVendorCDR_20' ) start [2025-02-04 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398424', 'tblTempVendorCDR_20' ) end [2025-02-04 06:08:18] Production.INFO: ProcessCDR(1,14398424,1,1,2) [2025-02-04 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398424', 'tblTempUsageDetail_20' ) start [2025-02-04 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398424', 'tblTempUsageDetail_20' ) end [2025-02-04 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:08:21] Production.INFO: ==21953== Releasing lock... [2025-02-04 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:08:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:09:05 [end_date_ymd] => 2025-02-04 06:09:05 [RateCDR] => 1 ) [2025-02-04 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:09:05' and `end` < '2025-02-04 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:09:18] Production.INFO: count ==81 [2025-02-04 06:09:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:09:05 - End Time 2025-02-04 06:09:05 [2025-02-04 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398429', 'tblTempUsageDetail_20' ) start [2025-02-04 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398429', 'tblTempUsageDetail_20' ) end [2025-02-04 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398429', 'tblTempVendorCDR_20' ) start [2025-02-04 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398429', 'tblTempVendorCDR_20' ) end [2025-02-04 06:09:18] Production.INFO: ProcessCDR(1,14398429,1,1,2) [2025-02-04 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398429', 'tblTempUsageDetail_20' ) start [2025-02-04 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398429', 'tblTempUsageDetail_20' ) end [2025-02-04 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:09:21] Production.INFO: ==22033== Releasing lock... [2025-02-04 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:09:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:10:05 [end_date_ymd] => 2025-02-04 06:10:05 [RateCDR] => 1 ) [2025-02-04 06:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:10:05' and `end` < '2025-02-04 06:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:10:19] Production.INFO: count ==81 [2025-02-04 06:10:19] Production.ERROR: pbx CDR StartTime 2025-02-04 03:10:05 - End Time 2025-02-04 06:10:05 [2025-02-04 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398435', 'tblTempUsageDetail_20' ) start [2025-02-04 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398435', 'tblTempUsageDetail_20' ) end [2025-02-04 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398435', 'tblTempVendorCDR_20' ) start [2025-02-04 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398435', 'tblTempVendorCDR_20' ) end [2025-02-04 06:10:19] Production.INFO: ProcessCDR(1,14398435,1,1,2) [2025-02-04 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398435', 'tblTempUsageDetail_20' ) start [2025-02-04 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398435', 'tblTempUsageDetail_20' ) end [2025-02-04 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:10:22] Production.INFO: ==22113== Releasing lock... [2025-02-04 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:10:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:11:05 [end_date_ymd] => 2025-02-04 06:11:05 [RateCDR] => 1 ) [2025-02-04 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:11:05' and `end` < '2025-02-04 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:11:19] Production.INFO: count ==81 [2025-02-04 06:11:19] Production.ERROR: pbx CDR StartTime 2025-02-04 03:11:05 - End Time 2025-02-04 06:11:05 [2025-02-04 06:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398440', 'tblTempUsageDetail_20' ) start [2025-02-04 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398440', 'tblTempUsageDetail_20' ) end [2025-02-04 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398440', 'tblTempVendorCDR_20' ) start [2025-02-04 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398440', 'tblTempVendorCDR_20' ) end [2025-02-04 06:11:19] Production.INFO: ProcessCDR(1,14398440,1,1,2) [2025-02-04 06:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398440', 'tblTempUsageDetail_20' ) start [2025-02-04 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398440', 'tblTempUsageDetail_20' ) end [2025-02-04 06:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:11:22] Production.INFO: ==22194== Releasing lock... [2025-02-04 06:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:11:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:12:05 [end_date_ymd] => 2025-02-04 06:12:05 [RateCDR] => 1 ) [2025-02-04 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:12:05' and `end` < '2025-02-04 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:12:18] Production.INFO: count ==81 [2025-02-04 06:12:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:12:05 - End Time 2025-02-04 06:12:05 [2025-02-04 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398445', 'tblTempUsageDetail_20' ) start [2025-02-04 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398445', 'tblTempUsageDetail_20' ) end [2025-02-04 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398445', 'tblTempVendorCDR_20' ) start [2025-02-04 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398445', 'tblTempVendorCDR_20' ) end [2025-02-04 06:12:18] Production.INFO: ProcessCDR(1,14398445,1,1,2) [2025-02-04 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398445', 'tblTempUsageDetail_20' ) start [2025-02-04 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398445', 'tblTempUsageDetail_20' ) end [2025-02-04 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:12:21] Production.INFO: ==22306== Releasing lock... [2025-02-04 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:12:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:13:05 [end_date_ymd] => 2025-02-04 06:13:05 [RateCDR] => 1 ) [2025-02-04 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:13:05' and `end` < '2025-02-04 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:13:19] Production.INFO: count ==81 [2025-02-04 06:13:19] Production.ERROR: pbx CDR StartTime 2025-02-04 03:13:05 - End Time 2025-02-04 06:13:05 [2025-02-04 06:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398450', 'tblTempUsageDetail_20' ) start [2025-02-04 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398450', 'tblTempUsageDetail_20' ) end [2025-02-04 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398450', 'tblTempVendorCDR_20' ) start [2025-02-04 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398450', 'tblTempVendorCDR_20' ) end [2025-02-04 06:13:19] Production.INFO: ProcessCDR(1,14398450,1,1,2) [2025-02-04 06:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398450', 'tblTempUsageDetail_20' ) start [2025-02-04 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398450', 'tblTempUsageDetail_20' ) end [2025-02-04 06:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:13:22] Production.INFO: ==22384== Releasing lock... [2025-02-04 06:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:13:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:14:05 [end_date_ymd] => 2025-02-04 06:14:05 [RateCDR] => 1 ) [2025-02-04 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:14:05' and `end` < '2025-02-04 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:14:19] Production.INFO: count ==81 [2025-02-04 06:14:19] Production.ERROR: pbx CDR StartTime 2025-02-04 03:14:05 - End Time 2025-02-04 06:14:05 [2025-02-04 06:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398455', 'tblTempUsageDetail_20' ) start [2025-02-04 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398455', 'tblTempUsageDetail_20' ) end [2025-02-04 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398455', 'tblTempVendorCDR_20' ) start [2025-02-04 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398455', 'tblTempVendorCDR_20' ) end [2025-02-04 06:14:19] Production.INFO: ProcessCDR(1,14398455,1,1,2) [2025-02-04 06:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398455', 'tblTempUsageDetail_20' ) start [2025-02-04 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398455', 'tblTempUsageDetail_20' ) end [2025-02-04 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:14:22] Production.INFO: ==22460== Releasing lock... [2025-02-04 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:14:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:15:05 [end_date_ymd] => 2025-02-04 06:15:05 [RateCDR] => 1 ) [2025-02-04 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:15:05' and `end` < '2025-02-04 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:15:18] Production.INFO: count ==81 [2025-02-04 06:15:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:15:05 - End Time 2025-02-04 06:15:05 [2025-02-04 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398460', 'tblTempUsageDetail_20' ) start [2025-02-04 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398460', 'tblTempUsageDetail_20' ) end [2025-02-04 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398460', 'tblTempVendorCDR_20' ) start [2025-02-04 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398460', 'tblTempVendorCDR_20' ) end [2025-02-04 06:15:18] Production.INFO: ProcessCDR(1,14398460,1,1,2) [2025-02-04 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398460', 'tblTempUsageDetail_20' ) start [2025-02-04 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398460', 'tblTempUsageDetail_20' ) end [2025-02-04 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:15:21] Production.INFO: ==22549== Releasing lock... [2025-02-04 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:15:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:16:06 [end_date_ymd] => 2025-02-04 06:16:06 [RateCDR] => 1 ) [2025-02-04 06:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:16:06' and `end` < '2025-02-04 06:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:16:19] Production.INFO: count ==81 [2025-02-04 06:16:19] Production.ERROR: pbx CDR StartTime 2025-02-04 03:16:06 - End Time 2025-02-04 06:16:06 [2025-02-04 06:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398465', 'tblTempUsageDetail_20' ) start [2025-02-04 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398465', 'tblTempUsageDetail_20' ) end [2025-02-04 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398465', 'tblTempVendorCDR_20' ) start [2025-02-04 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398465', 'tblTempVendorCDR_20' ) end [2025-02-04 06:16:19] Production.INFO: ProcessCDR(1,14398465,1,1,2) [2025-02-04 06:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398465', 'tblTempUsageDetail_20' ) start [2025-02-04 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398465', 'tblTempUsageDetail_20' ) end [2025-02-04 06:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:16:22] Production.INFO: ==22644== Releasing lock... [2025-02-04 06:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:16:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:17:05 [end_date_ymd] => 2025-02-04 06:17:05 [RateCDR] => 1 ) [2025-02-04 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:17:05' and `end` < '2025-02-04 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:17:17] Production.INFO: count ==81 [2025-02-04 06:17:17] Production.ERROR: pbx CDR StartTime 2025-02-04 03:17:05 - End Time 2025-02-04 06:17:05 [2025-02-04 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398470', 'tblTempUsageDetail_20' ) start [2025-02-04 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398470', 'tblTempUsageDetail_20' ) end [2025-02-04 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398470', 'tblTempVendorCDR_20' ) start [2025-02-04 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398470', 'tblTempVendorCDR_20' ) end [2025-02-04 06:17:17] Production.INFO: ProcessCDR(1,14398470,1,1,2) [2025-02-04 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398470', 'tblTempUsageDetail_20' ) start [2025-02-04 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398470', 'tblTempUsageDetail_20' ) end [2025-02-04 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:17:21] Production.INFO: ==22741== Releasing lock... [2025-02-04 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:17:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:18:05 [end_date_ymd] => 2025-02-04 06:18:05 [RateCDR] => 1 ) [2025-02-04 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:18:05' and `end` < '2025-02-04 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:18:19] Production.INFO: count ==81 [2025-02-04 06:18:19] Production.ERROR: pbx CDR StartTime 2025-02-04 03:18:05 - End Time 2025-02-04 06:18:05 [2025-02-04 06:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398475', 'tblTempUsageDetail_20' ) start [2025-02-04 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398475', 'tblTempUsageDetail_20' ) end [2025-02-04 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398475', 'tblTempVendorCDR_20' ) start [2025-02-04 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398475', 'tblTempVendorCDR_20' ) end [2025-02-04 06:18:19] Production.INFO: ProcessCDR(1,14398475,1,1,2) [2025-02-04 06:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398475', 'tblTempUsageDetail_20' ) start [2025-02-04 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398475', 'tblTempUsageDetail_20' ) end [2025-02-04 06:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:18:22] Production.INFO: ==22830== Releasing lock... [2025-02-04 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:18:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:19:04 [end_date_ymd] => 2025-02-04 06:19:04 [RateCDR] => 1 ) [2025-02-04 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:19:04' and `end` < '2025-02-04 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-02-04 06:19:18] Production.INFO: count ==81 [2025-02-04 06:19:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:19:04 - End Time 2025-02-04 06:19:04 [2025-02-04 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398480', 'tblTempUsageDetail_20' ) start [2025-02-04 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398480', 'tblTempUsageDetail_20' ) end [2025-02-04 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398480', 'tblTempVendorCDR_20' ) start [2025-02-04 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398480', 'tblTempVendorCDR_20' ) end [2025-02-04 06:19:18] Production.INFO: ProcessCDR(1,14398480,1,1,2) [2025-02-04 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398480', 'tblTempUsageDetail_20' ) start [2025-02-04 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398480', 'tblTempUsageDetail_20' ) end [2025-02-04 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:19:21] Production.INFO: ==22928== Releasing lock... [2025-02-04 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:19:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:20:06 [end_date_ymd] => 2025-02-04 06:20:06 [RateCDR] => 1 ) [2025-02-04 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:20:06' and `end` < '2025-02-04 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:20:18] Production.INFO: count ==79 [2025-02-04 06:20:19] Production.ERROR: pbx CDR StartTime 2025-02-04 03:20:06 - End Time 2025-02-04 06:20:06 [2025-02-04 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398486', 'tblTempUsageDetail_20' ) start [2025-02-04 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398486', 'tblTempUsageDetail_20' ) end [2025-02-04 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398486', 'tblTempVendorCDR_20' ) start [2025-02-04 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398486', 'tblTempVendorCDR_20' ) end [2025-02-04 06:20:19] Production.INFO: ProcessCDR(1,14398486,1,1,2) [2025-02-04 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398486', 'tblTempUsageDetail_20' ) start [2025-02-04 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398486', 'tblTempUsageDetail_20' ) end [2025-02-04 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:20:21] Production.INFO: ==23018== Releasing lock... [2025-02-04 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:20:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:21:05 [end_date_ymd] => 2025-02-04 06:21:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 03:21:05' and `end` < '2025-02-04 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:21:19] Production.INFO: count ==79 [2025-02-04 06:21:19] Production.ERROR: pbx CDR StartTime 2025-02-04 03:21:05 - End Time 2025-02-04 06:21:05 [2025-02-04 06:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398491', 'tblTempUsageDetail_20' ) start [2025-02-04 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398491', 'tblTempUsageDetail_20' ) end [2025-02-04 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398491', 'tblTempVendorCDR_20' ) start [2025-02-04 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398491', 'tblTempVendorCDR_20' ) end [2025-02-04 06:21:19] Production.INFO: ProcessCDR(1,14398491,1,1,2) [2025-02-04 06:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398491', 'tblTempUsageDetail_20' ) start [2025-02-04 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398491', 'tblTempUsageDetail_20' ) end [2025-02-04 06:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:21:22] Production.INFO: ==23095== Releasing lock... [2025-02-04 06:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:21:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:22:05 [end_date_ymd] => 2025-02-04 06:22:05 [RateCDR] => 1 ) [2025-02-04 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:22:05' and `end` < '2025-02-04 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:22:18] Production.INFO: count ==79 [2025-02-04 06:22:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:22:05 - End Time 2025-02-04 06:22:05 [2025-02-04 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398496', 'tblTempUsageDetail_20' ) start [2025-02-04 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398496', 'tblTempUsageDetail_20' ) end [2025-02-04 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398496', 'tblTempVendorCDR_20' ) start [2025-02-04 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398496', 'tblTempVendorCDR_20' ) end [2025-02-04 06:22:18] Production.INFO: ProcessCDR(1,14398496,1,1,2) [2025-02-04 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398496', 'tblTempUsageDetail_20' ) start [2025-02-04 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398496', 'tblTempUsageDetail_20' ) end [2025-02-04 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:22:21] Production.INFO: ==23170== Releasing lock... [2025-02-04 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:22:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:23:05 [end_date_ymd] => 2025-02-04 06:23:05 [RateCDR] => 1 ) [2025-02-04 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:23:05' and `end` < '2025-02-04 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:23:18] Production.INFO: count ==79 [2025-02-04 06:23:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:23:05 - End Time 2025-02-04 06:23:05 [2025-02-04 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398501', 'tblTempUsageDetail_20' ) start [2025-02-04 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398501', 'tblTempUsageDetail_20' ) end [2025-02-04 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398501', 'tblTempVendorCDR_20' ) start [2025-02-04 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398501', 'tblTempVendorCDR_20' ) end [2025-02-04 06:23:18] Production.INFO: ProcessCDR(1,14398501,1,1,2) [2025-02-04 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398501', 'tblTempUsageDetail_20' ) start [2025-02-04 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398501', 'tblTempUsageDetail_20' ) end [2025-02-04 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:23:21] Production.INFO: ==23251== Releasing lock... [2025-02-04 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:23:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:24:05 [end_date_ymd] => 2025-02-04 06:24:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 03:24:05' and `end` < '2025-02-04 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-02-04 06:24:18] Production.INFO: count ==79 [2025-02-04 06:24:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:24:05 - End Time 2025-02-04 06:24:05 [2025-02-04 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398506', 'tblTempUsageDetail_20' ) start [2025-02-04 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398506', 'tblTempUsageDetail_20' ) end [2025-02-04 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398506', 'tblTempVendorCDR_20' ) start [2025-02-04 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398506', 'tblTempVendorCDR_20' ) end [2025-02-04 06:24:18] Production.INFO: ProcessCDR(1,14398506,1,1,2) [2025-02-04 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398506', 'tblTempUsageDetail_20' ) start [2025-02-04 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398506', 'tblTempUsageDetail_20' ) end [2025-02-04 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:24:21] Production.INFO: ==23333== Releasing lock... [2025-02-04 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:24:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:25:05 [end_date_ymd] => 2025-02-04 06:25:05 [RateCDR] => 1 ) [2025-02-04 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:25:05' and `end` < '2025-02-04 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:25:18] Production.INFO: count ==79 [2025-02-04 06:25:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:25:05 - End Time 2025-02-04 06:25:05 [2025-02-04 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398511', 'tblTempUsageDetail_20' ) start [2025-02-04 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398511', 'tblTempUsageDetail_20' ) end [2025-02-04 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398511', 'tblTempVendorCDR_20' ) start [2025-02-04 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398511', 'tblTempVendorCDR_20' ) end [2025-02-04 06:25:18] Production.INFO: ProcessCDR(1,14398511,1,1,2) [2025-02-04 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398511', 'tblTempUsageDetail_20' ) start [2025-02-04 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398511', 'tblTempUsageDetail_20' ) end [2025-02-04 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:25:21] Production.INFO: ==23404== Releasing lock... [2025-02-04 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:25:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:26:05 [end_date_ymd] => 2025-02-04 06:26:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 03:26:05' and `end` < '2025-02-04 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-02-04 06:26:19] Production.INFO: count ==79 [2025-02-04 06:26:19] Production.ERROR: pbx CDR StartTime 2025-02-04 03:26:05 - End Time 2025-02-04 06:26:05 [2025-02-04 06:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398516', 'tblTempUsageDetail_20' ) start [2025-02-04 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398516', 'tblTempUsageDetail_20' ) end [2025-02-04 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398516', 'tblTempVendorCDR_20' ) start [2025-02-04 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398516', 'tblTempVendorCDR_20' ) end [2025-02-04 06:26:19] Production.INFO: ProcessCDR(1,14398516,1,1,2) [2025-02-04 06:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398516', 'tblTempUsageDetail_20' ) start [2025-02-04 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398516', 'tblTempUsageDetail_20' ) end [2025-02-04 06:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:26:22] Production.INFO: ==23480== Releasing lock... [2025-02-04 06:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:26:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:27:05 [end_date_ymd] => 2025-02-04 06:27:05 [RateCDR] => 1 ) [2025-02-04 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:27:05' and `end` < '2025-02-04 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:27:18] Production.INFO: count ==79 [2025-02-04 06:27:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:27:05 - End Time 2025-02-04 06:27:05 [2025-02-04 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398521', 'tblTempUsageDetail_20' ) start [2025-02-04 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398521', 'tblTempUsageDetail_20' ) end [2025-02-04 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398521', 'tblTempVendorCDR_20' ) start [2025-02-04 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398521', 'tblTempVendorCDR_20' ) end [2025-02-04 06:27:18] Production.INFO: ProcessCDR(1,14398521,1,1,2) [2025-02-04 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398521', 'tblTempUsageDetail_20' ) start [2025-02-04 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398521', 'tblTempUsageDetail_20' ) end [2025-02-04 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:27:21] Production.INFO: ==23558== Releasing lock... [2025-02-04 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:27:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:28:05 [end_date_ymd] => 2025-02-04 06:28:05 [RateCDR] => 1 ) [2025-02-04 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:28:05' and `end` < '2025-02-04 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:28:18] Production.INFO: count ==79 [2025-02-04 06:28:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:28:05 - End Time 2025-02-04 06:28:05 [2025-02-04 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398526', 'tblTempUsageDetail_20' ) start [2025-02-04 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398526', 'tblTempUsageDetail_20' ) end [2025-02-04 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398526', 'tblTempVendorCDR_20' ) start [2025-02-04 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398526', 'tblTempVendorCDR_20' ) end [2025-02-04 06:28:18] Production.INFO: ProcessCDR(1,14398526,1,1,2) [2025-02-04 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398526', 'tblTempUsageDetail_20' ) start [2025-02-04 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398526', 'tblTempUsageDetail_20' ) end [2025-02-04 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:28:21] Production.INFO: ==23669== Releasing lock... [2025-02-04 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:28:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:29:05 [end_date_ymd] => 2025-02-04 06:29:05 [RateCDR] => 1 ) [2025-02-04 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:29:05' and `end` < '2025-02-04 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:29:18] Production.INFO: count ==79 [2025-02-04 06:29:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:29:05 - End Time 2025-02-04 06:29:05 [2025-02-04 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398531', 'tblTempUsageDetail_20' ) start [2025-02-04 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398531', 'tblTempUsageDetail_20' ) end [2025-02-04 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398531', 'tblTempVendorCDR_20' ) start [2025-02-04 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398531', 'tblTempVendorCDR_20' ) end [2025-02-04 06:29:18] Production.INFO: ProcessCDR(1,14398531,1,1,2) [2025-02-04 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398531', 'tblTempUsageDetail_20' ) start [2025-02-04 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398531', 'tblTempUsageDetail_20' ) end [2025-02-04 06:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:29:20] Production.INFO: ==23745== Releasing lock... [2025-02-04 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:29:20] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:30:06 [end_date_ymd] => 2025-02-04 06:30:06 [RateCDR] => 1 ) [2025-02-04 06:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:30:06' and `end` < '2025-02-04 06:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:30:19] Production.INFO: count ==81 [2025-02-04 06:30:19] Production.ERROR: pbx CDR StartTime 2025-02-04 03:30:06 - End Time 2025-02-04 06:30:06 [2025-02-04 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398537', 'tblTempUsageDetail_20' ) start [2025-02-04 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398537', 'tblTempUsageDetail_20' ) end [2025-02-04 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398537', 'tblTempVendorCDR_20' ) start [2025-02-04 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398537', 'tblTempVendorCDR_20' ) end [2025-02-04 06:30:19] Production.INFO: ProcessCDR(1,14398537,1,1,2) [2025-02-04 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398537', 'tblTempUsageDetail_20' ) start [2025-02-04 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398537', 'tblTempUsageDetail_20' ) end [2025-02-04 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:30:22] Production.INFO: ==23822== Releasing lock... [2025-02-04 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:30:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:31:04 [end_date_ymd] => 2025-02-04 06:31:04 [RateCDR] => 1 ) [2025-02-04 06:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:31:04' and `end` < '2025-02-04 06:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:31:18] Production.INFO: count ==82 [2025-02-04 06:31:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:31:04 - End Time 2025-02-04 06:31:04 [2025-02-04 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398542', 'tblTempUsageDetail_20' ) start [2025-02-04 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398542', 'tblTempUsageDetail_20' ) end [2025-02-04 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398542', 'tblTempVendorCDR_20' ) start [2025-02-04 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398542', 'tblTempVendorCDR_20' ) end [2025-02-04 06:31:18] Production.INFO: ProcessCDR(1,14398542,1,1,2) [2025-02-04 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398542', 'tblTempUsageDetail_20' ) start [2025-02-04 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398542', 'tblTempUsageDetail_20' ) end [2025-02-04 06:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:31:22] Production.INFO: ==23895== Releasing lock... [2025-02-04 06:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:31:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:32:05 [end_date_ymd] => 2025-02-04 06:32:05 [RateCDR] => 1 ) [2025-02-04 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:32:05' and `end` < '2025-02-04 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:32:18] Production.INFO: count ==82 [2025-02-04 06:32:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:32:05 - End Time 2025-02-04 06:32:05 [2025-02-04 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398547', 'tblTempUsageDetail_20' ) start [2025-02-04 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398547', 'tblTempUsageDetail_20' ) end [2025-02-04 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398547', 'tblTempVendorCDR_20' ) start [2025-02-04 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398547', 'tblTempVendorCDR_20' ) end [2025-02-04 06:32:18] Production.INFO: ProcessCDR(1,14398547,1,1,2) [2025-02-04 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398547', 'tblTempUsageDetail_20' ) start [2025-02-04 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398547', 'tblTempUsageDetail_20' ) end [2025-02-04 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:32:21] Production.INFO: ==23968== Releasing lock... [2025-02-04 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:32:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:33:05 [end_date_ymd] => 2025-02-04 06:33:05 [RateCDR] => 1 ) [2025-02-04 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:33:05' and `end` < '2025-02-04 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:33:18] Production.INFO: count ==82 [2025-02-04 06:33:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:33:05 - End Time 2025-02-04 06:33:05 [2025-02-04 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398552', 'tblTempUsageDetail_20' ) start [2025-02-04 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398552', 'tblTempUsageDetail_20' ) end [2025-02-04 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398552', 'tblTempVendorCDR_20' ) start [2025-02-04 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398552', 'tblTempVendorCDR_20' ) end [2025-02-04 06:33:18] Production.INFO: ProcessCDR(1,14398552,1,1,2) [2025-02-04 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398552', 'tblTempUsageDetail_20' ) start [2025-02-04 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398552', 'tblTempUsageDetail_20' ) end [2025-02-04 06:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:33:21] Production.INFO: ==24040== Releasing lock... [2025-02-04 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:33:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:34:05 [end_date_ymd] => 2025-02-04 06:34:05 [RateCDR] => 1 ) [2025-02-04 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:34:05' and `end` < '2025-02-04 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:34:18] Production.INFO: count ==82 [2025-02-04 06:34:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:34:05 - End Time 2025-02-04 06:34:05 [2025-02-04 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398557', 'tblTempUsageDetail_20' ) start [2025-02-04 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398557', 'tblTempUsageDetail_20' ) end [2025-02-04 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398557', 'tblTempVendorCDR_20' ) start [2025-02-04 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398557', 'tblTempVendorCDR_20' ) end [2025-02-04 06:34:18] Production.INFO: ProcessCDR(1,14398557,1,1,2) [2025-02-04 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398557', 'tblTempUsageDetail_20' ) start [2025-02-04 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398557', 'tblTempUsageDetail_20' ) end [2025-02-04 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:34:21] Production.INFO: ==24114== Releasing lock... [2025-02-04 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:34:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:35:05 [end_date_ymd] => 2025-02-04 06:35:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 03:35:05' and `end` < '2025-02-04 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-02-04 06:35:19] Production.INFO: count ==82 [2025-02-04 06:35:19] Production.ERROR: pbx CDR StartTime 2025-02-04 03:35:05 - End Time 2025-02-04 06:35:05 [2025-02-04 06:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398562', 'tblTempUsageDetail_20' ) start [2025-02-04 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398562', 'tblTempUsageDetail_20' ) end [2025-02-04 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398562', 'tblTempVendorCDR_20' ) start [2025-02-04 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398562', 'tblTempVendorCDR_20' ) end [2025-02-04 06:35:19] Production.INFO: ProcessCDR(1,14398562,1,1,2) [2025-02-04 06:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398562', 'tblTempUsageDetail_20' ) start [2025-02-04 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398562', 'tblTempUsageDetail_20' ) end [2025-02-04 06:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:35:22] Production.INFO: ==24186== Releasing lock... [2025-02-04 06:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:35:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:36:05 [end_date_ymd] => 2025-02-04 06:36:05 [RateCDR] => 1 ) [2025-02-04 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:36:05' and `end` < '2025-02-04 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:36:18] Production.INFO: count ==82 [2025-02-04 06:36:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:36:05 - End Time 2025-02-04 06:36:05 [2025-02-04 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398567', 'tblTempUsageDetail_20' ) start [2025-02-04 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398567', 'tblTempUsageDetail_20' ) end [2025-02-04 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398567', 'tblTempVendorCDR_20' ) start [2025-02-04 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398567', 'tblTempVendorCDR_20' ) end [2025-02-04 06:36:18] Production.INFO: ProcessCDR(1,14398567,1,1,2) [2025-02-04 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398567', 'tblTempUsageDetail_20' ) start [2025-02-04 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398567', 'tblTempUsageDetail_20' ) end [2025-02-04 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:36:21] Production.INFO: ==24257== Releasing lock... [2025-02-04 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:36:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:37:05 [end_date_ymd] => 2025-02-04 06:37:05 [RateCDR] => 1 ) [2025-02-04 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:37:05' and `end` < '2025-02-04 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:37:18] Production.INFO: count ==82 [2025-02-04 06:37:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:37:05 - End Time 2025-02-04 06:37:05 [2025-02-04 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398572', 'tblTempUsageDetail_20' ) start [2025-02-04 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398572', 'tblTempUsageDetail_20' ) end [2025-02-04 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398572', 'tblTempVendorCDR_20' ) start [2025-02-04 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398572', 'tblTempVendorCDR_20' ) end [2025-02-04 06:37:18] Production.INFO: ProcessCDR(1,14398572,1,1,2) [2025-02-04 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398572', 'tblTempUsageDetail_20' ) start [2025-02-04 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398572', 'tblTempUsageDetail_20' ) end [2025-02-04 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:37:21] Production.INFO: ==24327== Releasing lock... [2025-02-04 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:37:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:38:05 [end_date_ymd] => 2025-02-04 06:38:05 [RateCDR] => 1 ) [2025-02-04 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:38:05' and `end` < '2025-02-04 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:38:18] Production.INFO: count ==82 [2025-02-04 06:38:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:38:05 - End Time 2025-02-04 06:38:05 [2025-02-04 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398577', 'tblTempUsageDetail_20' ) start [2025-02-04 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398577', 'tblTempUsageDetail_20' ) end [2025-02-04 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398577', 'tblTempVendorCDR_20' ) start [2025-02-04 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398577', 'tblTempVendorCDR_20' ) end [2025-02-04 06:38:18] Production.INFO: ProcessCDR(1,14398577,1,1,2) [2025-02-04 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398577', 'tblTempUsageDetail_20' ) start [2025-02-04 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398577', 'tblTempUsageDetail_20' ) end [2025-02-04 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:38:21] Production.INFO: ==24411== Releasing lock... [2025-02-04 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:38:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:39:05 [end_date_ymd] => 2025-02-04 06:39:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 03:39:05' and `end` < '2025-02-04 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-02-04 06:39:18] Production.INFO: count ==82 [2025-02-04 06:39:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:39:05 - End Time 2025-02-04 06:39:05 [2025-02-04 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398582', 'tblTempUsageDetail_20' ) start [2025-02-04 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398582', 'tblTempUsageDetail_20' ) end [2025-02-04 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398582', 'tblTempVendorCDR_20' ) start [2025-02-04 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398582', 'tblTempVendorCDR_20' ) end [2025-02-04 06:39:18] Production.INFO: ProcessCDR(1,14398582,1,1,2) [2025-02-04 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398582', 'tblTempUsageDetail_20' ) start [2025-02-04 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398582', 'tblTempUsageDetail_20' ) end [2025-02-04 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:39:21] Production.INFO: ==24486== Releasing lock... [2025-02-04 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:39:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:40:05 [end_date_ymd] => 2025-02-04 06:40:05 [RateCDR] => 1 ) [2025-02-04 06:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:40:05' and `end` < '2025-02-04 06:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:40:18] Production.INFO: count ==82 [2025-02-04 06:40:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:40:05 - End Time 2025-02-04 06:40:05 [2025-02-04 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398588', 'tblTempUsageDetail_20' ) start [2025-02-04 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398588', 'tblTempUsageDetail_20' ) end [2025-02-04 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398588', 'tblTempVendorCDR_20' ) start [2025-02-04 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398588', 'tblTempVendorCDR_20' ) end [2025-02-04 06:40:18] Production.INFO: ProcessCDR(1,14398588,1,1,2) [2025-02-04 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398588', 'tblTempUsageDetail_20' ) start [2025-02-04 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398588', 'tblTempUsageDetail_20' ) end [2025-02-04 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:40:21] Production.INFO: ==24558== Releasing lock... [2025-02-04 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:40:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:41:05 [end_date_ymd] => 2025-02-04 06:41:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 03:41:05' and `end` < '2025-02-04 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-02-04 06:41:18] Production.INFO: count ==82 [2025-02-04 06:41:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:41:05 - End Time 2025-02-04 06:41:05 [2025-02-04 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398593', 'tblTempUsageDetail_20' ) start [2025-02-04 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398593', 'tblTempUsageDetail_20' ) end [2025-02-04 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398593', 'tblTempVendorCDR_20' ) start [2025-02-04 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398593', 'tblTempVendorCDR_20' ) end [2025-02-04 06:41:18] Production.INFO: ProcessCDR(1,14398593,1,1,2) [2025-02-04 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398593', 'tblTempUsageDetail_20' ) start [2025-02-04 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398593', 'tblTempUsageDetail_20' ) end [2025-02-04 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:41:21] Production.INFO: ==24630== Releasing lock... [2025-02-04 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:41:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:42:06 [end_date_ymd] => 2025-02-04 06:42:06 [RateCDR] => 1 ) [2025-02-04 06:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:42:06' and `end` < '2025-02-04 06:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:42:18] Production.INFO: count ==82 [2025-02-04 06:42:19] Production.ERROR: pbx CDR StartTime 2025-02-04 03:42:06 - End Time 2025-02-04 06:42:06 [2025-02-04 06:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398598', 'tblTempUsageDetail_20' ) start [2025-02-04 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398598', 'tblTempUsageDetail_20' ) end [2025-02-04 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398598', 'tblTempVendorCDR_20' ) start [2025-02-04 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398598', 'tblTempVendorCDR_20' ) end [2025-02-04 06:42:19] Production.INFO: ProcessCDR(1,14398598,1,1,2) [2025-02-04 06:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398598', 'tblTempUsageDetail_20' ) start [2025-02-04 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398598', 'tblTempUsageDetail_20' ) end [2025-02-04 06:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:42:22] Production.INFO: ==24702== Releasing lock... [2025-02-04 06:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:42:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:43:05 [end_date_ymd] => 2025-02-04 06:43:05 [RateCDR] => 1 ) [2025-02-04 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:43:05' and `end` < '2025-02-04 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:43:18] Production.INFO: count ==82 [2025-02-04 06:43:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:43:05 - End Time 2025-02-04 06:43:05 [2025-02-04 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398603', 'tblTempUsageDetail_20' ) start [2025-02-04 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398603', 'tblTempUsageDetail_20' ) end [2025-02-04 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398603', 'tblTempVendorCDR_20' ) start [2025-02-04 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398603', 'tblTempVendorCDR_20' ) end [2025-02-04 06:43:18] Production.INFO: ProcessCDR(1,14398603,1,1,2) [2025-02-04 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398603', 'tblTempUsageDetail_20' ) start [2025-02-04 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398603', 'tblTempUsageDetail_20' ) end [2025-02-04 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:43:21] Production.INFO: ==24816== Releasing lock... [2025-02-04 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:43:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:44:06 [end_date_ymd] => 2025-02-04 06:44:06 [RateCDR] => 1 ) [2025-02-04 06:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:44:06' and `end` < '2025-02-04 06:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:44:19] Production.INFO: count ==82 [2025-02-04 06:44:19] Production.ERROR: pbx CDR StartTime 2025-02-04 03:44:06 - End Time 2025-02-04 06:44:06 [2025-02-04 06:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398608', 'tblTempUsageDetail_20' ) start [2025-02-04 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398608', 'tblTempUsageDetail_20' ) end [2025-02-04 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398608', 'tblTempVendorCDR_20' ) start [2025-02-04 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398608', 'tblTempVendorCDR_20' ) end [2025-02-04 06:44:19] Production.INFO: ProcessCDR(1,14398608,1,1,2) [2025-02-04 06:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398608', 'tblTempUsageDetail_20' ) start [2025-02-04 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398608', 'tblTempUsageDetail_20' ) end [2025-02-04 06:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:44:22] Production.INFO: ==24886== Releasing lock... [2025-02-04 06:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:44:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:45:05 [end_date_ymd] => 2025-02-04 06:45:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 03:45:05' and `end` < '2025-02-04 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-02-04 06:45:18] Production.INFO: count ==82 [2025-02-04 06:45:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:45:05 - End Time 2025-02-04 06:45:05 [2025-02-04 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398613', 'tblTempUsageDetail_20' ) start [2025-02-04 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398613', 'tblTempUsageDetail_20' ) end [2025-02-04 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398613', 'tblTempVendorCDR_20' ) start [2025-02-04 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398613', 'tblTempVendorCDR_20' ) end [2025-02-04 06:45:18] Production.INFO: ProcessCDR(1,14398613,1,1,2) [2025-02-04 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398613', 'tblTempUsageDetail_20' ) start [2025-02-04 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398613', 'tblTempUsageDetail_20' ) end [2025-02-04 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:45:21] Production.INFO: ==24956== Releasing lock... [2025-02-04 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:45:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:46:06 [end_date_ymd] => 2025-02-04 06:46:06 [RateCDR] => 1 ) [2025-02-04 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-02-04 03:46:06' and `end` < '2025-02-04 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-02-04 06:46:18] Production.INFO: count ==82 [2025-02-04 06:46:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:46:06 - End Time 2025-02-04 06:46:06 [2025-02-04 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398618', 'tblTempUsageDetail_20' ) start [2025-02-04 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398618', 'tblTempUsageDetail_20' ) end [2025-02-04 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398618', 'tblTempVendorCDR_20' ) start [2025-02-04 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398618', 'tblTempVendorCDR_20' ) end [2025-02-04 06:46:18] Production.INFO: ProcessCDR(1,14398618,1,1,2) [2025-02-04 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398618', 'tblTempUsageDetail_20' ) start [2025-02-04 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398618', 'tblTempUsageDetail_20' ) end [2025-02-04 06:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:46:22] Production.INFO: ==25029== Releasing lock... [2025-02-04 06:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:46:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:47:05 [end_date_ymd] => 2025-02-04 06:47:05 [RateCDR] => 1 ) [2025-02-04 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:47:05' and `end` < '2025-02-04 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:47:19] Production.INFO: count ==82 [2025-02-04 06:47:19] Production.ERROR: pbx CDR StartTime 2025-02-04 03:47:05 - End Time 2025-02-04 06:47:05 [2025-02-04 06:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398623', 'tblTempUsageDetail_20' ) start [2025-02-04 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398623', 'tblTempUsageDetail_20' ) end [2025-02-04 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398623', 'tblTempVendorCDR_20' ) start [2025-02-04 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398623', 'tblTempVendorCDR_20' ) end [2025-02-04 06:47:19] Production.INFO: ProcessCDR(1,14398623,1,1,2) [2025-02-04 06:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398623', 'tblTempUsageDetail_20' ) start [2025-02-04 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398623', 'tblTempUsageDetail_20' ) end [2025-02-04 06:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:47:22] Production.INFO: ==25100== Releasing lock... [2025-02-04 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:47:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:48:06 [end_date_ymd] => 2025-02-04 06:48:06 [RateCDR] => 1 ) [2025-02-04 06:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:48:06' and `end` < '2025-02-04 06:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:48:18] Production.INFO: count ==82 [2025-02-04 06:48:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:48:06 - End Time 2025-02-04 06:48:06 [2025-02-04 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398628', 'tblTempUsageDetail_20' ) start [2025-02-04 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398628', 'tblTempUsageDetail_20' ) end [2025-02-04 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398628', 'tblTempVendorCDR_20' ) start [2025-02-04 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398628', 'tblTempVendorCDR_20' ) end [2025-02-04 06:48:18] Production.INFO: ProcessCDR(1,14398628,1,1,2) [2025-02-04 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398628', 'tblTempUsageDetail_20' ) start [2025-02-04 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398628', 'tblTempUsageDetail_20' ) end [2025-02-04 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:48:21] Production.INFO: ==25170== Releasing lock... [2025-02-04 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:48:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:49:05 [end_date_ymd] => 2025-02-04 06:49:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 03:49:05' and `end` < '2025-02-04 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-02-04 06:49:18] Production.INFO: count ==82 [2025-02-04 06:49:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:49:05 - End Time 2025-02-04 06:49:05 [2025-02-04 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398633', 'tblTempUsageDetail_20' ) start [2025-02-04 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398633', 'tblTempUsageDetail_20' ) end [2025-02-04 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398633', 'tblTempVendorCDR_20' ) start [2025-02-04 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398633', 'tblTempVendorCDR_20' ) end [2025-02-04 06:49:18] Production.INFO: ProcessCDR(1,14398633,1,1,2) [2025-02-04 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398633', 'tblTempUsageDetail_20' ) start [2025-02-04 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398633', 'tblTempUsageDetail_20' ) end [2025-02-04 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:49:22] Production.INFO: ==25243== Releasing lock... [2025-02-04 06:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:49:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:50:06 [end_date_ymd] => 2025-02-04 06:50:06 [RateCDR] => 1 ) [2025-02-04 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:50:06' and `end` < '2025-02-04 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:50:19] Production.INFO: count ==82 [2025-02-04 06:50:19] Production.ERROR: pbx CDR StartTime 2025-02-04 03:50:06 - End Time 2025-02-04 06:50:06 [2025-02-04 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398639', 'tblTempUsageDetail_20' ) start [2025-02-04 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398639', 'tblTempUsageDetail_20' ) end [2025-02-04 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398639', 'tblTempVendorCDR_20' ) start [2025-02-04 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398639', 'tblTempVendorCDR_20' ) end [2025-02-04 06:50:19] Production.INFO: ProcessCDR(1,14398639,1,1,2) [2025-02-04 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398639', 'tblTempUsageDetail_20' ) start [2025-02-04 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398639', 'tblTempUsageDetail_20' ) end [2025-02-04 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:50:23] Production.INFO: ==25316== Releasing lock... [2025-02-04 06:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:50:23] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:51:06 [end_date_ymd] => 2025-02-04 06:51:06 [RateCDR] => 1 ) [2025-02-04 06:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:51:06' and `end` < '2025-02-04 06:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:51:19] Production.INFO: count ==82 [2025-02-04 06:51:19] Production.ERROR: pbx CDR StartTime 2025-02-04 03:51:06 - End Time 2025-02-04 06:51:06 [2025-02-04 06:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398644', 'tblTempUsageDetail_20' ) start [2025-02-04 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398644', 'tblTempUsageDetail_20' ) end [2025-02-04 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398644', 'tblTempVendorCDR_20' ) start [2025-02-04 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398644', 'tblTempVendorCDR_20' ) end [2025-02-04 06:51:19] Production.INFO: ProcessCDR(1,14398644,1,1,2) [2025-02-04 06:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398644', 'tblTempUsageDetail_20' ) start [2025-02-04 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398644', 'tblTempUsageDetail_20' ) end [2025-02-04 06:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:51:22] Production.INFO: ==25388== Releasing lock... [2025-02-04 06:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:51:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:52:06 [end_date_ymd] => 2025-02-04 06:52:06 [RateCDR] => 1 ) [2025-02-04 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-02-04 03:52:06' and `end` < '2025-02-04 06:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:52:19] Production.INFO: count ==82 [2025-02-04 06:52:19] Production.ERROR: pbx CDR StartTime 2025-02-04 03:52:06 - End Time 2025-02-04 06:52:06 [2025-02-04 06:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398649', 'tblTempUsageDetail_20' ) start [2025-02-04 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398649', 'tblTempUsageDetail_20' ) end [2025-02-04 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398649', 'tblTempVendorCDR_20' ) start [2025-02-04 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398649', 'tblTempVendorCDR_20' ) end [2025-02-04 06:52:19] Production.INFO: ProcessCDR(1,14398649,1,1,2) [2025-02-04 06:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398649', 'tblTempUsageDetail_20' ) start [2025-02-04 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398649', 'tblTempUsageDetail_20' ) end [2025-02-04 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:52:22] Production.INFO: ==25465== Releasing lock... [2025-02-04 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:52:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:53:05 [end_date_ymd] => 2025-02-04 06:53:05 [RateCDR] => 1 ) [2025-02-04 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:53:05' and `end` < '2025-02-04 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:53:18] Production.INFO: count ==82 [2025-02-04 06:53:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:53:05 - End Time 2025-02-04 06:53:05 [2025-02-04 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398654', 'tblTempUsageDetail_20' ) start [2025-02-04 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398654', 'tblTempUsageDetail_20' ) end [2025-02-04 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398654', 'tblTempVendorCDR_20' ) start [2025-02-04 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398654', 'tblTempVendorCDR_20' ) end [2025-02-04 06:53:18] Production.INFO: ProcessCDR(1,14398654,1,1,2) [2025-02-04 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398654', 'tblTempUsageDetail_20' ) start [2025-02-04 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398654', 'tblTempUsageDetail_20' ) end [2025-02-04 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:53:21] Production.INFO: ==25537== Releasing lock... [2025-02-04 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:53:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:54:05 [end_date_ymd] => 2025-02-04 06:54:05 [RateCDR] => 1 ) [2025-02-04 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:54:05' and `end` < '2025-02-04 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:54:18] Production.INFO: count ==82 [2025-02-04 06:54:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:54:05 - End Time 2025-02-04 06:54:05 [2025-02-04 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398659', 'tblTempUsageDetail_20' ) start [2025-02-04 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398659', 'tblTempUsageDetail_20' ) end [2025-02-04 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398659', 'tblTempVendorCDR_20' ) start [2025-02-04 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398659', 'tblTempVendorCDR_20' ) end [2025-02-04 06:54:18] Production.INFO: ProcessCDR(1,14398659,1,1,2) [2025-02-04 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398659', 'tblTempUsageDetail_20' ) start [2025-02-04 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398659', 'tblTempUsageDetail_20' ) end [2025-02-04 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:54:21] Production.INFO: ==25610== Releasing lock... [2025-02-04 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:54:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:55:04 [end_date_ymd] => 2025-02-04 06:55:04 [RateCDR] => 1 ) [2025-02-04 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-02-04 03:55:04' and `end` < '2025-02-04 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-02-04 06:55:18] Production.INFO: count ==82 [2025-02-04 06:55:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:55:04 - End Time 2025-02-04 06:55:04 [2025-02-04 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398664', 'tblTempUsageDetail_20' ) start [2025-02-04 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398664', 'tblTempUsageDetail_20' ) end [2025-02-04 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398664', 'tblTempVendorCDR_20' ) start [2025-02-04 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398664', 'tblTempVendorCDR_20' ) end [2025-02-04 06:55:18] Production.INFO: ProcessCDR(1,14398664,1,1,2) [2025-02-04 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398664', 'tblTempUsageDetail_20' ) start [2025-02-04 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398664', 'tblTempUsageDetail_20' ) end [2025-02-04 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:55:21] Production.INFO: ==25680== Releasing lock... [2025-02-04 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:55:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:56:05 [end_date_ymd] => 2025-02-04 06:56:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 03:56:05' and `end` < '2025-02-04 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-02-04 06:56:18] Production.INFO: count ==82 [2025-02-04 06:56:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:56:05 - End Time 2025-02-04 06:56:05 [2025-02-04 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398669', 'tblTempUsageDetail_20' ) start [2025-02-04 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398669', 'tblTempUsageDetail_20' ) end [2025-02-04 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398669', 'tblTempVendorCDR_20' ) start [2025-02-04 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398669', 'tblTempVendorCDR_20' ) end [2025-02-04 06:56:18] Production.INFO: ProcessCDR(1,14398669,1,1,2) [2025-02-04 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398669', 'tblTempUsageDetail_20' ) start [2025-02-04 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398669', 'tblTempUsageDetail_20' ) end [2025-02-04 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:56:21] Production.INFO: ==25753== Releasing lock... [2025-02-04 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:56:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:57:05 [end_date_ymd] => 2025-02-04 06:57:05 [RateCDR] => 1 ) [2025-02-04 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:57:05' and `end` < '2025-02-04 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:57:18] Production.INFO: count ==82 [2025-02-04 06:57:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:57:05 - End Time 2025-02-04 06:57:05 [2025-02-04 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398674', 'tblTempUsageDetail_20' ) start [2025-02-04 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398674', 'tblTempUsageDetail_20' ) end [2025-02-04 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398674', 'tblTempVendorCDR_20' ) start [2025-02-04 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398674', 'tblTempVendorCDR_20' ) end [2025-02-04 06:57:18] Production.INFO: ProcessCDR(1,14398674,1,1,2) [2025-02-04 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398674', 'tblTempUsageDetail_20' ) start [2025-02-04 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398674', 'tblTempUsageDetail_20' ) end [2025-02-04 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:57:21] Production.INFO: ==25826== Releasing lock... [2025-02-04 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:57:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:58:05 [end_date_ymd] => 2025-02-04 06:58:05 [RateCDR] => 1 ) [2025-02-04 06:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:58:05' and `end` < '2025-02-04 06:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:58:18] Production.INFO: count ==82 [2025-02-04 06:58:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:58:05 - End Time 2025-02-04 06:58:05 [2025-02-04 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398679', 'tblTempUsageDetail_20' ) start [2025-02-04 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398679', 'tblTempUsageDetail_20' ) end [2025-02-04 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398679', 'tblTempVendorCDR_20' ) start [2025-02-04 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398679', 'tblTempVendorCDR_20' ) end [2025-02-04 06:58:18] Production.INFO: ProcessCDR(1,14398679,1,1,2) [2025-02-04 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398679', 'tblTempUsageDetail_20' ) start [2025-02-04 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398679', 'tblTempUsageDetail_20' ) end [2025-02-04 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:58:21] Production.INFO: ==25898== Releasing lock... [2025-02-04 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:58:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 06:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 03:59:06 [end_date_ymd] => 2025-02-04 06:59:06 [RateCDR] => 1 ) [2025-02-04 06:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 03:59:06' and `end` < '2025-02-04 06:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 06:59:18] Production.INFO: count ==82 [2025-02-04 06:59:18] Production.ERROR: pbx CDR StartTime 2025-02-04 03:59:06 - End Time 2025-02-04 06:59:06 [2025-02-04 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398684', 'tblTempUsageDetail_20' ) start [2025-02-04 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398684', 'tblTempUsageDetail_20' ) end [2025-02-04 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398684', 'tblTempVendorCDR_20' ) start [2025-02-04 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398684', 'tblTempVendorCDR_20' ) end [2025-02-04 06:59:18] Production.INFO: ProcessCDR(1,14398684,1,1,2) [2025-02-04 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398684', 'tblTempUsageDetail_20' ) start [2025-02-04 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398684', 'tblTempUsageDetail_20' ) end [2025-02-04 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 06:59:21] Production.INFO: ==26014== Releasing lock... [2025-02-04 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 06:59:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:00:06 [end_date_ymd] => 2025-02-04 07:00:06 [RateCDR] => 1 ) [2025-02-04 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:00:06' and `end` < '2025-02-04 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:00:19] Production.INFO: count ==80 [2025-02-04 07:00:19] Production.ERROR: pbx CDR StartTime 2025-02-04 04:00:06 - End Time 2025-02-04 07:00:06 [2025-02-04 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398689', 'tblTempUsageDetail_20' ) start [2025-02-04 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398689', 'tblTempUsageDetail_20' ) end [2025-02-04 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398689', 'tblTempVendorCDR_20' ) start [2025-02-04 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398689', 'tblTempVendorCDR_20' ) end [2025-02-04 07:00:19] Production.INFO: ProcessCDR(1,14398689,1,1,2) [2025-02-04 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398689', 'tblTempUsageDetail_20' ) start [2025-02-04 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398689', 'tblTempUsageDetail_20' ) end [2025-02-04 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:00:22] Production.INFO: ==26090== Releasing lock... [2025-02-04 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:00:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:01:05 [end_date_ymd] => 2025-02-04 07:01:05 [RateCDR] => 1 ) [2025-02-04 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:01:05' and `end` < '2025-02-04 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:01:32] Production.INFO: count ==81 [2025-02-04 07:01:32] Production.ERROR: pbx CDR StartTime 2025-02-04 04:01:05 - End Time 2025-02-04 07:01:05 [2025-02-04 07:01:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398695', 'tblTempUsageDetail_20' ) start [2025-02-04 07:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398695', 'tblTempUsageDetail_20' ) end [2025-02-04 07:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398695', 'tblTempVendorCDR_20' ) start [2025-02-04 07:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398695', 'tblTempVendorCDR_20' ) end [2025-02-04 07:01:32] Production.INFO: ProcessCDR(1,14398695,1,1,2) [2025-02-04 07:01:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:01:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:01:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:01:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:01:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398695', 'tblTempUsageDetail_20' ) start [2025-02-04 07:01:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398695', 'tblTempUsageDetail_20' ) end [2025-02-04 07:01:37] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:01:37] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:01:37] Production.INFO: ==26178== Releasing lock... [2025-02-04 07:01:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:01:37] Production.INFO: 28 MB #Memory Used# [2025-02-04 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:02:05 [end_date_ymd] => 2025-02-04 07:02:05 [RateCDR] => 1 ) [2025-02-04 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:02:05' and `end` < '2025-02-04 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:02:20] Production.INFO: count ==81 [2025-02-04 07:02:20] Production.ERROR: pbx CDR StartTime 2025-02-04 04:02:05 - End Time 2025-02-04 07:02:05 [2025-02-04 07:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398700', 'tblTempUsageDetail_20' ) start [2025-02-04 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398700', 'tblTempUsageDetail_20' ) end [2025-02-04 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398700', 'tblTempVendorCDR_20' ) start [2025-02-04 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398700', 'tblTempVendorCDR_20' ) end [2025-02-04 07:02:20] Production.INFO: ProcessCDR(1,14398700,1,1,2) [2025-02-04 07:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398700', 'tblTempUsageDetail_20' ) start [2025-02-04 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398700', 'tblTempUsageDetail_20' ) end [2025-02-04 07:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:02:23] Production.INFO: ==26332== Releasing lock... [2025-02-04 07:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:02:23] Production.INFO: 28 MB #Memory Used# [2025-02-04 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:03:05 [end_date_ymd] => 2025-02-04 07:03:05 [RateCDR] => 1 ) [2025-02-04 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:03:05' and `end` < '2025-02-04 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:03:19] Production.INFO: count ==81 [2025-02-04 07:03:19] Production.ERROR: pbx CDR StartTime 2025-02-04 04:03:05 - End Time 2025-02-04 07:03:05 [2025-02-04 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398703', 'tblTempUsageDetail_20' ) start [2025-02-04 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398703', 'tblTempUsageDetail_20' ) end [2025-02-04 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398703', 'tblTempVendorCDR_20' ) start [2025-02-04 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398703', 'tblTempVendorCDR_20' ) end [2025-02-04 07:03:19] Production.INFO: ProcessCDR(1,14398703,1,1,2) [2025-02-04 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398703', 'tblTempUsageDetail_20' ) start [2025-02-04 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398703', 'tblTempUsageDetail_20' ) end [2025-02-04 07:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:03:23] Production.INFO: ==26408== Releasing lock... [2025-02-04 07:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:03:23] Production.INFO: 28 MB #Memory Used# [2025-02-04 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:04:05 [end_date_ymd] => 2025-02-04 07:04:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 04:04:05' and `end` < '2025-02-04 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-02-04 07:04:19] Production.INFO: count ==81 [2025-02-04 07:04:19] Production.ERROR: pbx CDR StartTime 2025-02-04 04:04:05 - End Time 2025-02-04 07:04:05 [2025-02-04 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398710', 'tblTempUsageDetail_20' ) start [2025-02-04 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398710', 'tblTempUsageDetail_20' ) end [2025-02-04 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398710', 'tblTempVendorCDR_20' ) start [2025-02-04 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398710', 'tblTempVendorCDR_20' ) end [2025-02-04 07:04:19] Production.INFO: ProcessCDR(1,14398710,1,1,2) [2025-02-04 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398710', 'tblTempUsageDetail_20' ) start [2025-02-04 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398710', 'tblTempUsageDetail_20' ) end [2025-02-04 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:04:22] Production.INFO: ==26483== Releasing lock... [2025-02-04 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:04:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:05:05 [end_date_ymd] => 2025-02-04 07:05:05 [RateCDR] => 1 ) [2025-02-04 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:05:05' and `end` < '2025-02-04 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:05:20] Production.INFO: count ==86 [2025-02-04 07:05:20] Production.ERROR: pbx CDR StartTime 2025-02-04 04:05:05 - End Time 2025-02-04 07:05:05 [2025-02-04 07:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398715', 'tblTempUsageDetail_20' ) start [2025-02-04 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398715', 'tblTempUsageDetail_20' ) end [2025-02-04 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398715', 'tblTempVendorCDR_20' ) start [2025-02-04 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398715', 'tblTempVendorCDR_20' ) end [2025-02-04 07:05:20] Production.INFO: ProcessCDR(1,14398715,1,1,2) [2025-02-04 07:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398715', 'tblTempUsageDetail_20' ) start [2025-02-04 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398715', 'tblTempUsageDetail_20' ) end [2025-02-04 07:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:05:23] Production.INFO: ==26634== Releasing lock... [2025-02-04 07:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:05:23] Production.INFO: 28 MB #Memory Used# [2025-02-04 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:06:05 [end_date_ymd] => 2025-02-04 07:06:05 [RateCDR] => 1 ) [2025-02-04 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:06:05' and `end` < '2025-02-04 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:06:20] Production.INFO: count ==86 [2025-02-04 07:06:20] Production.ERROR: pbx CDR StartTime 2025-02-04 04:06:05 - End Time 2025-02-04 07:06:05 [2025-02-04 07:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398720', 'tblTempUsageDetail_20' ) start [2025-02-04 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398720', 'tblTempUsageDetail_20' ) end [2025-02-04 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398720', 'tblTempVendorCDR_20' ) start [2025-02-04 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398720', 'tblTempVendorCDR_20' ) end [2025-02-04 07:06:20] Production.INFO: ProcessCDR(1,14398720,1,1,2) [2025-02-04 07:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398720', 'tblTempUsageDetail_20' ) start [2025-02-04 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398720', 'tblTempUsageDetail_20' ) end [2025-02-04 07:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:06:23] Production.INFO: ==26709== Releasing lock... [2025-02-04 07:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:06:23] Production.INFO: 28 MB #Memory Used# [2025-02-04 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:07:05 [end_date_ymd] => 2025-02-04 07:07:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 04:07:05' and `end` < '2025-02-04 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-02-04 07:07:19] Production.INFO: count ==86 [2025-02-04 07:07:19] Production.ERROR: pbx CDR StartTime 2025-02-04 04:07:05 - End Time 2025-02-04 07:07:05 [2025-02-04 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398725', 'tblTempUsageDetail_20' ) start [2025-02-04 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398725', 'tblTempUsageDetail_20' ) end [2025-02-04 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398725', 'tblTempVendorCDR_20' ) start [2025-02-04 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398725', 'tblTempVendorCDR_20' ) end [2025-02-04 07:07:19] Production.INFO: ProcessCDR(1,14398725,1,1,2) [2025-02-04 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398725', 'tblTempUsageDetail_20' ) start [2025-02-04 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398725', 'tblTempUsageDetail_20' ) end [2025-02-04 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:07:22] Production.INFO: ==26779== Releasing lock... [2025-02-04 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:07:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:08:06 [end_date_ymd] => 2025-02-04 07:08:06 [RateCDR] => 1 ) [2025-02-04 07:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:08:06' and `end` < '2025-02-04 07:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:08:19] Production.INFO: count ==86 [2025-02-04 07:08:19] Production.ERROR: pbx CDR StartTime 2025-02-04 04:08:06 - End Time 2025-02-04 07:08:06 [2025-02-04 07:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398730', 'tblTempUsageDetail_20' ) start [2025-02-04 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398730', 'tblTempUsageDetail_20' ) end [2025-02-04 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398730', 'tblTempVendorCDR_20' ) start [2025-02-04 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398730', 'tblTempVendorCDR_20' ) end [2025-02-04 07:08:19] Production.INFO: ProcessCDR(1,14398730,1,1,2) [2025-02-04 07:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398730', 'tblTempUsageDetail_20' ) start [2025-02-04 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398730', 'tblTempUsageDetail_20' ) end [2025-02-04 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:08:23] Production.INFO: ==26893== Releasing lock... [2025-02-04 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:08:23] Production.INFO: 28 MB #Memory Used# [2025-02-04 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:09:05 [end_date_ymd] => 2025-02-04 07:09:05 [RateCDR] => 1 ) [2025-02-04 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:09:05' and `end` < '2025-02-04 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:09:19] Production.INFO: count ==86 [2025-02-04 07:09:19] Production.ERROR: pbx CDR StartTime 2025-02-04 04:09:05 - End Time 2025-02-04 07:09:05 [2025-02-04 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398735', 'tblTempUsageDetail_20' ) start [2025-02-04 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398735', 'tblTempUsageDetail_20' ) end [2025-02-04 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398735', 'tblTempVendorCDR_20' ) start [2025-02-04 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398735', 'tblTempVendorCDR_20' ) end [2025-02-04 07:09:19] Production.INFO: ProcessCDR(1,14398735,1,1,2) [2025-02-04 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398735', 'tblTempUsageDetail_20' ) start [2025-02-04 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398735', 'tblTempUsageDetail_20' ) end [2025-02-04 07:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:09:22] Production.INFO: ==27009== Releasing lock... [2025-02-04 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:09:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:10:06 [end_date_ymd] => 2025-02-04 07:10:06 [RateCDR] => 1 ) [2025-02-04 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:10:06' and `end` < '2025-02-04 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:10:20] Production.INFO: count ==86 [2025-02-04 07:10:20] Production.ERROR: pbx CDR StartTime 2025-02-04 04:10:06 - End Time 2025-02-04 07:10:06 [2025-02-04 07:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398741', 'tblTempUsageDetail_20' ) start [2025-02-04 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398741', 'tblTempUsageDetail_20' ) end [2025-02-04 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398741', 'tblTempVendorCDR_20' ) start [2025-02-04 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398741', 'tblTempVendorCDR_20' ) end [2025-02-04 07:10:20] Production.INFO: ProcessCDR(1,14398741,1,1,2) [2025-02-04 07:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398741', 'tblTempUsageDetail_20' ) start [2025-02-04 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398741', 'tblTempUsageDetail_20' ) end [2025-02-04 07:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:10:23] Production.INFO: ==27083== Releasing lock... [2025-02-04 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:10:23] Production.INFO: 28 MB #Memory Used# [2025-02-04 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:11:05 [end_date_ymd] => 2025-02-04 07:11:05 [RateCDR] => 1 ) [2025-02-04 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:11:05' and `end` < '2025-02-04 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:11:19] Production.INFO: count ==86 [2025-02-04 07:11:19] Production.ERROR: pbx CDR StartTime 2025-02-04 04:11:05 - End Time 2025-02-04 07:11:05 [2025-02-04 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398746', 'tblTempUsageDetail_20' ) start [2025-02-04 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398746', 'tblTempUsageDetail_20' ) end [2025-02-04 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398746', 'tblTempVendorCDR_20' ) start [2025-02-04 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398746', 'tblTempVendorCDR_20' ) end [2025-02-04 07:11:19] Production.INFO: ProcessCDR(1,14398746,1,1,2) [2025-02-04 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398746', 'tblTempUsageDetail_20' ) start [2025-02-04 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398746', 'tblTempUsageDetail_20' ) end [2025-02-04 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:11:22] Production.INFO: ==27157== Releasing lock... [2025-02-04 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:11:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:12:05 [end_date_ymd] => 2025-02-04 07:12:05 [RateCDR] => 1 ) [2025-02-04 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:12:05' and `end` < '2025-02-04 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:12:19] Production.INFO: count ==86 [2025-02-04 07:12:19] Production.ERROR: pbx CDR StartTime 2025-02-04 04:12:05 - End Time 2025-02-04 07:12:05 [2025-02-04 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398751', 'tblTempUsageDetail_20' ) start [2025-02-04 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398751', 'tblTempUsageDetail_20' ) end [2025-02-04 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398751', 'tblTempVendorCDR_20' ) start [2025-02-04 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398751', 'tblTempVendorCDR_20' ) end [2025-02-04 07:12:19] Production.INFO: ProcessCDR(1,14398751,1,1,2) [2025-02-04 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398751', 'tblTempUsageDetail_20' ) start [2025-02-04 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398751', 'tblTempUsageDetail_20' ) end [2025-02-04 07:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:12:23] Production.INFO: ==27307== Releasing lock... [2025-02-04 07:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:12:23] Production.INFO: 28 MB #Memory Used# [2025-02-04 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:13:04 [end_date_ymd] => 2025-02-04 07:13:04 [RateCDR] => 1 ) [2025-02-04 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-02-04 04:13:04' and `end` < '2025-02-04 07:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:13:18] Production.INFO: count ==86 [2025-02-04 07:13:18] Production.ERROR: pbx CDR StartTime 2025-02-04 04:13:04 - End Time 2025-02-04 07:13:04 [2025-02-04 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398756', 'tblTempUsageDetail_20' ) start [2025-02-04 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398756', 'tblTempUsageDetail_20' ) end [2025-02-04 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398756', 'tblTempVendorCDR_20' ) start [2025-02-04 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398756', 'tblTempVendorCDR_20' ) end [2025-02-04 07:13:18] Production.INFO: ProcessCDR(1,14398756,1,1,2) [2025-02-04 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398756', 'tblTempUsageDetail_20' ) start [2025-02-04 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398756', 'tblTempUsageDetail_20' ) end [2025-02-04 07:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:13:21] Production.INFO: ==27381== Releasing lock... [2025-02-04 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:13:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 07:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:14:06 [end_date_ymd] => 2025-02-04 07:14:06 [RateCDR] => 1 ) [2025-02-04 07:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:14:06' and `end` < '2025-02-04 07:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:14:20] Production.INFO: count ==86 [2025-02-04 07:14:20] Production.ERROR: pbx CDR StartTime 2025-02-04 04:14:06 - End Time 2025-02-04 07:14:06 [2025-02-04 07:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398761', 'tblTempUsageDetail_20' ) start [2025-02-04 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398761', 'tblTempUsageDetail_20' ) end [2025-02-04 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398761', 'tblTempVendorCDR_20' ) start [2025-02-04 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398761', 'tblTempVendorCDR_20' ) end [2025-02-04 07:14:20] Production.INFO: ProcessCDR(1,14398761,1,1,2) [2025-02-04 07:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398761', 'tblTempUsageDetail_20' ) start [2025-02-04 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398761', 'tblTempUsageDetail_20' ) end [2025-02-04 07:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:14:24] Production.INFO: ==27499== Releasing lock... [2025-02-04 07:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:14:24] Production.INFO: 28 MB #Memory Used# [2025-02-04 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:15:05 [end_date_ymd] => 2025-02-04 07:15:05 [RateCDR] => 1 ) [2025-02-04 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:15:05' and `end` < '2025-02-04 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:15:18] Production.INFO: count ==86 [2025-02-04 07:15:18] Production.ERROR: pbx CDR StartTime 2025-02-04 04:15:05 - End Time 2025-02-04 07:15:05 [2025-02-04 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398766', 'tblTempUsageDetail_20' ) start [2025-02-04 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398766', 'tblTempUsageDetail_20' ) end [2025-02-04 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398766', 'tblTempVendorCDR_20' ) start [2025-02-04 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398766', 'tblTempVendorCDR_20' ) end [2025-02-04 07:15:18] Production.INFO: ProcessCDR(1,14398766,1,1,2) [2025-02-04 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398766', 'tblTempUsageDetail_20' ) start [2025-02-04 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398766', 'tblTempUsageDetail_20' ) end [2025-02-04 07:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:15:21] Production.INFO: ==27609== Releasing lock... [2025-02-04 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:15:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:16:05 [end_date_ymd] => 2025-02-04 07:16:05 [RateCDR] => 1 ) [2025-02-04 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:16:05' and `end` < '2025-02-04 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:16:20] Production.INFO: count ==87 [2025-02-04 07:16:20] Production.ERROR: pbx CDR StartTime 2025-02-04 04:16:05 - End Time 2025-02-04 07:16:05 [2025-02-04 07:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398771', 'tblTempUsageDetail_20' ) start [2025-02-04 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398771', 'tblTempUsageDetail_20' ) end [2025-02-04 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398771', 'tblTempVendorCDR_20' ) start [2025-02-04 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398771', 'tblTempVendorCDR_20' ) end [2025-02-04 07:16:20] Production.INFO: ProcessCDR(1,14398771,1,1,2) [2025-02-04 07:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398771', 'tblTempUsageDetail_20' ) start [2025-02-04 07:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398771', 'tblTempUsageDetail_20' ) end [2025-02-04 07:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:16:25] Production.INFO: ==27724== Releasing lock... [2025-02-04 07:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:16:25] Production.INFO: 28 MB #Memory Used# [2025-02-04 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:17:05 [end_date_ymd] => 2025-02-04 07:17:05 [RateCDR] => 1 ) [2025-02-04 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:17:05' and `end` < '2025-02-04 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:17:19] Production.INFO: count ==87 [2025-02-04 07:17:19] Production.ERROR: pbx CDR StartTime 2025-02-04 04:17:05 - End Time 2025-02-04 07:17:05 [2025-02-04 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398776', 'tblTempUsageDetail_20' ) start [2025-02-04 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398776', 'tblTempUsageDetail_20' ) end [2025-02-04 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398776', 'tblTempVendorCDR_20' ) start [2025-02-04 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398776', 'tblTempVendorCDR_20' ) end [2025-02-04 07:17:19] Production.INFO: ProcessCDR(1,14398776,1,1,2) [2025-02-04 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398776', 'tblTempUsageDetail_20' ) start [2025-02-04 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398776', 'tblTempUsageDetail_20' ) end [2025-02-04 07:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:17:22] Production.INFO: ==27802== Releasing lock... [2025-02-04 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:17:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:18:05 [end_date_ymd] => 2025-02-04 07:18:05 [RateCDR] => 1 ) [2025-02-04 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:18:05' and `end` < '2025-02-04 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:18:20] Production.INFO: count ==87 [2025-02-04 07:18:20] Production.ERROR: pbx CDR StartTime 2025-02-04 04:18:05 - End Time 2025-02-04 07:18:05 [2025-02-04 07:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398781', 'tblTempUsageDetail_20' ) start [2025-02-04 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398781', 'tblTempUsageDetail_20' ) end [2025-02-04 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398781', 'tblTempVendorCDR_20' ) start [2025-02-04 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398781', 'tblTempVendorCDR_20' ) end [2025-02-04 07:18:20] Production.INFO: ProcessCDR(1,14398781,1,1,2) [2025-02-04 07:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398781', 'tblTempUsageDetail_20' ) start [2025-02-04 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398781', 'tblTempUsageDetail_20' ) end [2025-02-04 07:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:18:23] Production.INFO: ==27879== Releasing lock... [2025-02-04 07:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:18:23] Production.INFO: 28 MB #Memory Used# [2025-02-04 07:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:19:06 [end_date_ymd] => 2025-02-04 07:19:06 [RateCDR] => 1 ) [2025-02-04 07:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:19:06' and `end` < '2025-02-04 07:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:19:18] Production.INFO: count ==87 [2025-02-04 07:19:18] Production.ERROR: pbx CDR StartTime 2025-02-04 04:19:06 - End Time 2025-02-04 07:19:06 [2025-02-04 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398786', 'tblTempUsageDetail_20' ) start [2025-02-04 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398786', 'tblTempUsageDetail_20' ) end [2025-02-04 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398786', 'tblTempVendorCDR_20' ) start [2025-02-04 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398786', 'tblTempVendorCDR_20' ) end [2025-02-04 07:19:18] Production.INFO: ProcessCDR(1,14398786,1,1,2) [2025-02-04 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398786', 'tblTempUsageDetail_20' ) start [2025-02-04 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398786', 'tblTempUsageDetail_20' ) end [2025-02-04 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:19:22] Production.INFO: ==27956== Releasing lock... [2025-02-04 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:19:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 07:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:20:05 [end_date_ymd] => 2025-02-04 07:20:05 [RateCDR] => 1 ) [2025-02-04 07:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:20:05' and `end` < '2025-02-04 07:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:20:18] Production.INFO: count ==87 [2025-02-04 07:20:18] Production.ERROR: pbx CDR StartTime 2025-02-04 04:20:05 - End Time 2025-02-04 07:20:05 [2025-02-04 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398791', 'tblTempUsageDetail_20' ) start [2025-02-04 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398791', 'tblTempUsageDetail_20' ) end [2025-02-04 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398791', 'tblTempVendorCDR_20' ) start [2025-02-04 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398791', 'tblTempVendorCDR_20' ) end [2025-02-04 07:20:18] Production.INFO: ProcessCDR(1,14398791,1,1,2) [2025-02-04 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398791', 'tblTempUsageDetail_20' ) start [2025-02-04 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398791', 'tblTempUsageDetail_20' ) end [2025-02-04 07:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:20:21] Production.INFO: ==28038== Releasing lock... [2025-02-04 07:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:20:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:21:05 [end_date_ymd] => 2025-02-04 07:21:05 [RateCDR] => 1 ) [2025-02-04 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:21:05' and `end` < '2025-02-04 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:21:19] Production.INFO: count ==87 [2025-02-04 07:21:19] Production.ERROR: pbx CDR StartTime 2025-02-04 04:21:05 - End Time 2025-02-04 07:21:05 [2025-02-04 07:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398797', 'tblTempUsageDetail_20' ) start [2025-02-04 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398797', 'tblTempUsageDetail_20' ) end [2025-02-04 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398797', 'tblTempVendorCDR_20' ) start [2025-02-04 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398797', 'tblTempVendorCDR_20' ) end [2025-02-04 07:21:19] Production.INFO: ProcessCDR(1,14398797,1,1,2) [2025-02-04 07:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398797', 'tblTempUsageDetail_20' ) start [2025-02-04 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398797', 'tblTempUsageDetail_20' ) end [2025-02-04 07:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:21:22] Production.INFO: ==28116== Releasing lock... [2025-02-04 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:21:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 07:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:22:04 [end_date_ymd] => 2025-02-04 07:22:04 [RateCDR] => 1 ) [2025-02-04 07: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-02-04 04:22:04' and `end` < '2025-02-04 07: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-02-04 07:22:18] Production.INFO: count ==87 [2025-02-04 07:22:18] Production.ERROR: pbx CDR StartTime 2025-02-04 04:22:04 - End Time 2025-02-04 07:22:04 [2025-02-04 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398802', 'tblTempUsageDetail_20' ) start [2025-02-04 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398802', 'tblTempUsageDetail_20' ) end [2025-02-04 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398802', 'tblTempVendorCDR_20' ) start [2025-02-04 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398802', 'tblTempVendorCDR_20' ) end [2025-02-04 07:22:18] Production.INFO: ProcessCDR(1,14398802,1,1,2) [2025-02-04 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398802', 'tblTempUsageDetail_20' ) start [2025-02-04 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398802', 'tblTempUsageDetail_20' ) end [2025-02-04 07:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:22:21] Production.INFO: ==28197== Releasing lock... [2025-02-04 07:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:22:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:23:05 [end_date_ymd] => 2025-02-04 07:23:05 [RateCDR] => 1 ) [2025-02-04 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:23:05' and `end` < '2025-02-04 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:23:18] Production.INFO: count ==87 [2025-02-04 07:23:18] Production.ERROR: pbx CDR StartTime 2025-02-04 04:23:05 - End Time 2025-02-04 07:23:05 [2025-02-04 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398807', 'tblTempUsageDetail_20' ) start [2025-02-04 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398807', 'tblTempUsageDetail_20' ) end [2025-02-04 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398807', 'tblTempVendorCDR_20' ) start [2025-02-04 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398807', 'tblTempVendorCDR_20' ) end [2025-02-04 07:23:18] Production.INFO: ProcessCDR(1,14398807,1,1,2) [2025-02-04 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398807', 'tblTempUsageDetail_20' ) start [2025-02-04 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398807', 'tblTempUsageDetail_20' ) end [2025-02-04 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:23:22] Production.INFO: ==28273== Releasing lock... [2025-02-04 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:23:22] Production.INFO: 28 MB #Memory Used# [2025-02-04 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:24:05 [end_date_ymd] => 2025-02-04 07:24:05 [RateCDR] => 1 ) [2025-02-04 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:24:05' and `end` < '2025-02-04 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:24:18] Production.INFO: count ==87 [2025-02-04 07:24:18] Production.ERROR: pbx CDR StartTime 2025-02-04 04:24:05 - End Time 2025-02-04 07:24:05 [2025-02-04 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398812', 'tblTempUsageDetail_20' ) start [2025-02-04 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398812', 'tblTempUsageDetail_20' ) end [2025-02-04 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398812', 'tblTempVendorCDR_20' ) start [2025-02-04 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398812', 'tblTempVendorCDR_20' ) end [2025-02-04 07:24:18] Production.INFO: ProcessCDR(1,14398812,1,1,2) [2025-02-04 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398812', 'tblTempUsageDetail_20' ) start [2025-02-04 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398812', 'tblTempUsageDetail_20' ) end [2025-02-04 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:24:21] Production.INFO: ==28352== Releasing lock... [2025-02-04 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:24:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:25:05 [end_date_ymd] => 2025-02-04 07:25:05 [RateCDR] => 1 ) [2025-02-04 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:25:05' and `end` < '2025-02-04 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:25:18] Production.INFO: count ==88 [2025-02-04 07:25:18] Production.ERROR: pbx CDR StartTime 2025-02-04 04:25:05 - End Time 2025-02-04 07:25:05 [2025-02-04 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398817', 'tblTempUsageDetail_20' ) start [2025-02-04 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398817', 'tblTempUsageDetail_20' ) end [2025-02-04 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398817', 'tblTempVendorCDR_20' ) start [2025-02-04 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398817', 'tblTempVendorCDR_20' ) end [2025-02-04 07:25:18] Production.INFO: ProcessCDR(1,14398817,1,1,2) [2025-02-04 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398817', 'tblTempUsageDetail_20' ) start [2025-02-04 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398817', 'tblTempUsageDetail_20' ) end [2025-02-04 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:25:21] Production.INFO: ==28429== Releasing lock... [2025-02-04 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:25:21] Production.INFO: 28 MB #Memory Used# [2025-02-04 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:26:05 [end_date_ymd] => 2025-02-04 07:26:05 [RateCDR] => 1 ) [2025-02-04 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:26:05' and `end` < '2025-02-04 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:26:20] Production.INFO: count ==100 [2025-02-04 07:26:20] Production.ERROR: pbx CDR StartTime 2025-02-04 04:26:05 - End Time 2025-02-04 07:26:05 [2025-02-04 07:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398822', 'tblTempUsageDetail_20' ) start [2025-02-04 07:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398822', 'tblTempUsageDetail_20' ) end [2025-02-04 07:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398822', 'tblTempVendorCDR_20' ) start [2025-02-04 07:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398822', 'tblTempVendorCDR_20' ) end [2025-02-04 07:26:20] Production.INFO: ProcessCDR(1,14398822,1,1,2) [2025-02-04 07:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398822', 'tblTempUsageDetail_20' ) start [2025-02-04 07:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398822', 'tblTempUsageDetail_20' ) end [2025-02-04 07:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:26:23] Production.INFO: ==28509== Releasing lock... [2025-02-04 07:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:26:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:27:05 [end_date_ymd] => 2025-02-04 07:27:05 [RateCDR] => 1 ) [2025-02-04 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:27:05' and `end` < '2025-02-04 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:27:17] Production.INFO: count ==100 [2025-02-04 07:27:17] Production.ERROR: pbx CDR StartTime 2025-02-04 04:27:05 - End Time 2025-02-04 07:27:05 [2025-02-04 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398827', 'tblTempUsageDetail_20' ) start [2025-02-04 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398827', 'tblTempUsageDetail_20' ) end [2025-02-04 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398827', 'tblTempVendorCDR_20' ) start [2025-02-04 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398827', 'tblTempVendorCDR_20' ) end [2025-02-04 07:27:17] Production.INFO: ProcessCDR(1,14398827,1,1,2) [2025-02-04 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398827', 'tblTempUsageDetail_20' ) start [2025-02-04 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398827', 'tblTempUsageDetail_20' ) end [2025-02-04 07:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:27:20] Production.INFO: ==28584== Releasing lock... [2025-02-04 07:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:27:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:28:06 [end_date_ymd] => 2025-02-04 07:28:06 [RateCDR] => 1 ) [2025-02-04 07:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:28:06' and `end` < '2025-02-04 07:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:28:20] Production.INFO: count ==100 [2025-02-04 07:28:20] Production.ERROR: pbx CDR StartTime 2025-02-04 04:28:06 - End Time 2025-02-04 07:28:06 [2025-02-04 07:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398832', 'tblTempUsageDetail_20' ) start [2025-02-04 07:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398832', 'tblTempUsageDetail_20' ) end [2025-02-04 07:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398832', 'tblTempVendorCDR_20' ) start [2025-02-04 07:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398832', 'tblTempVendorCDR_20' ) end [2025-02-04 07:28:20] Production.INFO: ProcessCDR(1,14398832,1,1,2) [2025-02-04 07:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398832', 'tblTempUsageDetail_20' ) start [2025-02-04 07:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398832', 'tblTempUsageDetail_20' ) end [2025-02-04 07:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:28:23] Production.INFO: ==28663== Releasing lock... [2025-02-04 07:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:28:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:29:05 [end_date_ymd] => 2025-02-04 07:29:05 [RateCDR] => 1 ) [2025-02-04 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:29:05' and `end` < '2025-02-04 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:29:18] Production.INFO: count ==100 [2025-02-04 07:29:18] Production.ERROR: pbx CDR StartTime 2025-02-04 04:29:05 - End Time 2025-02-04 07:29:05 [2025-02-04 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398837', 'tblTempUsageDetail_20' ) start [2025-02-04 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398837', 'tblTempUsageDetail_20' ) end [2025-02-04 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398837', 'tblTempVendorCDR_20' ) start [2025-02-04 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398837', 'tblTempVendorCDR_20' ) end [2025-02-04 07:29:18] Production.INFO: ProcessCDR(1,14398837,1,1,2) [2025-02-04 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398837', 'tblTempUsageDetail_20' ) start [2025-02-04 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398837', 'tblTempUsageDetail_20' ) end [2025-02-04 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:29:21] Production.INFO: ==28737== Releasing lock... [2025-02-04 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:30:06 [end_date_ymd] => 2025-02-04 07:30:06 [RateCDR] => 1 ) [2025-02-04 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:30:06' and `end` < '2025-02-04 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:30:20] Production.INFO: count ==97 [2025-02-04 07:30:20] Production.ERROR: pbx CDR StartTime 2025-02-04 04:30:06 - End Time 2025-02-04 07:30:06 [2025-02-04 07:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398843', 'tblTempUsageDetail_20' ) start [2025-02-04 07:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398843', 'tblTempUsageDetail_20' ) end [2025-02-04 07:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398843', 'tblTempVendorCDR_20' ) start [2025-02-04 07:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398843', 'tblTempVendorCDR_20' ) end [2025-02-04 07:30:20] Production.INFO: ProcessCDR(1,14398843,1,1,2) [2025-02-04 07:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398843', 'tblTempUsageDetail_20' ) start [2025-02-04 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398843', 'tblTempUsageDetail_20' ) end [2025-02-04 07:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:30:23] Production.INFO: ==28877== Releasing lock... [2025-02-04 07:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:30:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:31:05 [end_date_ymd] => 2025-02-04 07:31:05 [RateCDR] => 1 ) [2025-02-04 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:31:05' and `end` < '2025-02-04 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:31:18] Production.INFO: count ==97 [2025-02-04 07:31:18] Production.ERROR: pbx CDR StartTime 2025-02-04 04:31:05 - End Time 2025-02-04 07:31:05 [2025-02-04 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398848', 'tblTempUsageDetail_20' ) start [2025-02-04 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398848', 'tblTempUsageDetail_20' ) end [2025-02-04 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398848', 'tblTempVendorCDR_20' ) start [2025-02-04 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398848', 'tblTempVendorCDR_20' ) end [2025-02-04 07:31:18] Production.INFO: ProcessCDR(1,14398848,1,1,2) [2025-02-04 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398848', 'tblTempUsageDetail_20' ) start [2025-02-04 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398848', 'tblTempUsageDetail_20' ) end [2025-02-04 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:31:21] Production.INFO: ==28961== Releasing lock... [2025-02-04 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:32:05 [end_date_ymd] => 2025-02-04 07:32:05 [RateCDR] => 1 ) [2025-02-04 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:32:05' and `end` < '2025-02-04 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:32:19] Production.INFO: count ==97 [2025-02-04 07:32:19] Production.ERROR: pbx CDR StartTime 2025-02-04 04:32:05 - End Time 2025-02-04 07:32:05 [2025-02-04 07:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398853', 'tblTempUsageDetail_20' ) start [2025-02-04 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398853', 'tblTempUsageDetail_20' ) end [2025-02-04 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398853', 'tblTempVendorCDR_20' ) start [2025-02-04 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398853', 'tblTempVendorCDR_20' ) end [2025-02-04 07:32:19] Production.INFO: ProcessCDR(1,14398853,1,1,2) [2025-02-04 07:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398853', 'tblTempUsageDetail_20' ) start [2025-02-04 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398853', 'tblTempUsageDetail_20' ) end [2025-02-04 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:32:22] Production.INFO: ==29035== Releasing lock... [2025-02-04 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:32:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 07:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:33:04 [end_date_ymd] => 2025-02-04 07:33:04 [RateCDR] => 1 ) [2025-02-04 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-02-04 04:33:04' and `end` < '2025-02-04 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-02-04 07:33:17] Production.INFO: count ==97 [2025-02-04 07:33:17] Production.ERROR: pbx CDR StartTime 2025-02-04 04:33:04 - End Time 2025-02-04 07:33:04 [2025-02-04 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398858', 'tblTempUsageDetail_20' ) start [2025-02-04 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398858', 'tblTempUsageDetail_20' ) end [2025-02-04 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398858', 'tblTempVendorCDR_20' ) start [2025-02-04 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398858', 'tblTempVendorCDR_20' ) end [2025-02-04 07:33:17] Production.INFO: ProcessCDR(1,14398858,1,1,2) [2025-02-04 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398858', 'tblTempUsageDetail_20' ) start [2025-02-04 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398858', 'tblTempUsageDetail_20' ) end [2025-02-04 07:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:33:20] Production.INFO: ==29116== Releasing lock... [2025-02-04 07:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:33:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 07:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:34:06 [end_date_ymd] => 2025-02-04 07:34:06 [RateCDR] => 1 ) [2025-02-04 07:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:34:06' and `end` < '2025-02-04 07:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:34:19] Production.INFO: count ==97 [2025-02-04 07:34:19] Production.ERROR: pbx CDR StartTime 2025-02-04 04:34:06 - End Time 2025-02-04 07:34:06 [2025-02-04 07:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398863', 'tblTempUsageDetail_20' ) start [2025-02-04 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398863', 'tblTempUsageDetail_20' ) end [2025-02-04 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398863', 'tblTempVendorCDR_20' ) start [2025-02-04 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398863', 'tblTempVendorCDR_20' ) end [2025-02-04 07:34:19] Production.INFO: ProcessCDR(1,14398863,1,1,2) [2025-02-04 07:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398863', 'tblTempUsageDetail_20' ) start [2025-02-04 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398863', 'tblTempUsageDetail_20' ) end [2025-02-04 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:34:22] Production.INFO: ==29252== Releasing lock... [2025-02-04 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:34:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:35:05 [end_date_ymd] => 2025-02-04 07:35:05 [RateCDR] => 1 ) [2025-02-04 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:35:05' and `end` < '2025-02-04 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:35:17] Production.INFO: count ==98 [2025-02-04 07:35:17] Production.ERROR: pbx CDR StartTime 2025-02-04 04:35:05 - End Time 2025-02-04 07:35:05 [2025-02-04 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398868', 'tblTempUsageDetail_20' ) start [2025-02-04 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398868', 'tblTempUsageDetail_20' ) end [2025-02-04 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398868', 'tblTempVendorCDR_20' ) start [2025-02-04 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398868', 'tblTempVendorCDR_20' ) end [2025-02-04 07:35:17] Production.INFO: ProcessCDR(1,14398868,1,1,2) [2025-02-04 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398868', 'tblTempUsageDetail_20' ) start [2025-02-04 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398868', 'tblTempUsageDetail_20' ) end [2025-02-04 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:35:21] Production.INFO: ==29362== Releasing lock... [2025-02-04 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:36:05 [end_date_ymd] => 2025-02-04 07:36:05 [RateCDR] => 1 ) [2025-02-04 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:36:05' and `end` < '2025-02-04 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:36:19] Production.INFO: count ==111 [2025-02-04 07:36:19] Production.ERROR: pbx CDR StartTime 2025-02-04 04:36:05 - End Time 2025-02-04 07:36:05 [2025-02-04 07:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398873', 'tblTempUsageDetail_20' ) start [2025-02-04 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398873', 'tblTempUsageDetail_20' ) end [2025-02-04 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398873', 'tblTempVendorCDR_20' ) start [2025-02-04 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398873', 'tblTempVendorCDR_20' ) end [2025-02-04 07:36:19] Production.INFO: ProcessCDR(1,14398873,1,1,2) [2025-02-04 07:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398873', 'tblTempUsageDetail_20' ) start [2025-02-04 07:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398873', 'tblTempUsageDetail_20' ) end [2025-02-04 07:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:36:23] Production.INFO: ==29442== Releasing lock... [2025-02-04 07:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:36:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:37:05 [end_date_ymd] => 2025-02-04 07:37:05 [RateCDR] => 1 ) [2025-02-04 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:37:05' and `end` < '2025-02-04 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:37:19] Production.INFO: count ==110 [2025-02-04 07:37:19] Production.ERROR: pbx CDR StartTime 2025-02-04 04:37:05 - End Time 2025-02-04 07:37:05 [2025-02-04 07:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398878', 'tblTempUsageDetail_20' ) start [2025-02-04 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398878', 'tblTempUsageDetail_20' ) end [2025-02-04 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398878', 'tblTempVendorCDR_20' ) start [2025-02-04 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398878', 'tblTempVendorCDR_20' ) end [2025-02-04 07:37:19] Production.INFO: ProcessCDR(1,14398878,1,1,2) [2025-02-04 07:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398878', 'tblTempUsageDetail_20' ) start [2025-02-04 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398878', 'tblTempUsageDetail_20' ) end [2025-02-04 07:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:37:22] Production.INFO: ==29520== Releasing lock... [2025-02-04 07:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:37:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:38:05 [end_date_ymd] => 2025-02-04 07:38:05 [RateCDR] => 1 ) [2025-02-04 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:38:05' and `end` < '2025-02-04 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:38:18] Production.INFO: count ==110 [2025-02-04 07:38:18] Production.ERROR: pbx CDR StartTime 2025-02-04 04:38:05 - End Time 2025-02-04 07:38:05 [2025-02-04 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398883', 'tblTempUsageDetail_20' ) start [2025-02-04 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398883', 'tblTempUsageDetail_20' ) end [2025-02-04 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398883', 'tblTempVendorCDR_20' ) start [2025-02-04 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398883', 'tblTempVendorCDR_20' ) end [2025-02-04 07:38:18] Production.INFO: ProcessCDR(1,14398883,1,1,2) [2025-02-04 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398883', 'tblTempUsageDetail_20' ) start [2025-02-04 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398883', 'tblTempUsageDetail_20' ) end [2025-02-04 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:38:21] Production.INFO: ==29596== Releasing lock... [2025-02-04 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:39:05 [end_date_ymd] => 2025-02-04 07:39:05 [RateCDR] => 1 ) [2025-02-04 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:39:05' and `end` < '2025-02-04 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:39:18] Production.INFO: count ==110 [2025-02-04 07:39:18] Production.ERROR: pbx CDR StartTime 2025-02-04 04:39:05 - End Time 2025-02-04 07:39:05 [2025-02-04 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398888', 'tblTempUsageDetail_20' ) start [2025-02-04 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398888', 'tblTempUsageDetail_20' ) end [2025-02-04 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398888', 'tblTempVendorCDR_20' ) start [2025-02-04 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398888', 'tblTempVendorCDR_20' ) end [2025-02-04 07:39:18] Production.INFO: ProcessCDR(1,14398888,1,1,2) [2025-02-04 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398888', 'tblTempUsageDetail_20' ) start [2025-02-04 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398888', 'tblTempUsageDetail_20' ) end [2025-02-04 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:39:21] Production.INFO: ==29675== Releasing lock... [2025-02-04 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:40:06 [end_date_ymd] => 2025-02-04 07:40:06 [RateCDR] => 1 ) [2025-02-04 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:40:06' and `end` < '2025-02-04 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:40:19] Production.INFO: count ==110 [2025-02-04 07:40:19] Production.ERROR: pbx CDR StartTime 2025-02-04 04:40:06 - End Time 2025-02-04 07:40:06 [2025-02-04 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398894', 'tblTempUsageDetail_20' ) start [2025-02-04 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398894', 'tblTempUsageDetail_20' ) end [2025-02-04 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398894', 'tblTempVendorCDR_20' ) start [2025-02-04 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398894', 'tblTempVendorCDR_20' ) end [2025-02-04 07:40:19] Production.INFO: ProcessCDR(1,14398894,1,1,2) [2025-02-04 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398894', 'tblTempUsageDetail_20' ) start [2025-02-04 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398894', 'tblTempUsageDetail_20' ) end [2025-02-04 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:40:22] Production.INFO: ==29755== Releasing lock... [2025-02-04 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:41:05 [end_date_ymd] => 2025-02-04 07:41:05 [RateCDR] => 1 ) [2025-02-04 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:41:05' and `end` < '2025-02-04 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:41:18] Production.INFO: count ==110 [2025-02-04 07:41:18] Production.ERROR: pbx CDR StartTime 2025-02-04 04:41:05 - End Time 2025-02-04 07:41:05 [2025-02-04 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398899', 'tblTempUsageDetail_20' ) start [2025-02-04 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398899', 'tblTempUsageDetail_20' ) end [2025-02-04 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398899', 'tblTempVendorCDR_20' ) start [2025-02-04 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398899', 'tblTempVendorCDR_20' ) end [2025-02-04 07:41:18] Production.INFO: ProcessCDR(1,14398899,1,1,2) [2025-02-04 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398899', 'tblTempUsageDetail_20' ) start [2025-02-04 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398899', 'tblTempUsageDetail_20' ) end [2025-02-04 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:41:21] Production.INFO: ==29839== Releasing lock... [2025-02-04 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:42:05 [end_date_ymd] => 2025-02-04 07:42:05 [RateCDR] => 1 ) [2025-02-04 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:42:05' and `end` < '2025-02-04 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:42:18] Production.INFO: count ==110 [2025-02-04 07:42:18] Production.ERROR: pbx CDR StartTime 2025-02-04 04:42:05 - End Time 2025-02-04 07:42:05 [2025-02-04 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398904', 'tblTempUsageDetail_20' ) start [2025-02-04 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398904', 'tblTempUsageDetail_20' ) end [2025-02-04 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398904', 'tblTempVendorCDR_20' ) start [2025-02-04 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398904', 'tblTempVendorCDR_20' ) end [2025-02-04 07:42:18] Production.INFO: ProcessCDR(1,14398904,1,1,2) [2025-02-04 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398904', 'tblTempUsageDetail_20' ) start [2025-02-04 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398904', 'tblTempUsageDetail_20' ) end [2025-02-04 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:42:21] Production.INFO: ==29913== Releasing lock... [2025-02-04 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:43:05 [end_date_ymd] => 2025-02-04 07:43:05 [RateCDR] => 1 ) [2025-02-04 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:43:05' and `end` < '2025-02-04 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:43:18] Production.INFO: count ==110 [2025-02-04 07:43:18] Production.ERROR: pbx CDR StartTime 2025-02-04 04:43:05 - End Time 2025-02-04 07:43:05 [2025-02-04 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398909', 'tblTempUsageDetail_20' ) start [2025-02-04 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398909', 'tblTempUsageDetail_20' ) end [2025-02-04 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398909', 'tblTempVendorCDR_20' ) start [2025-02-04 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398909', 'tblTempVendorCDR_20' ) end [2025-02-04 07:43:18] Production.INFO: ProcessCDR(1,14398909,1,1,2) [2025-02-04 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398909', 'tblTempUsageDetail_20' ) start [2025-02-04 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398909', 'tblTempUsageDetail_20' ) end [2025-02-04 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:43:21] Production.INFO: ==29992== Releasing lock... [2025-02-04 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:43:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:44:05 [end_date_ymd] => 2025-02-04 07:44:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 04:44:05' and `end` < '2025-02-04 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-02-04 07:44:18] Production.INFO: count ==110 [2025-02-04 07:44:18] Production.ERROR: pbx CDR StartTime 2025-02-04 04:44:05 - End Time 2025-02-04 07:44:05 [2025-02-04 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398914', 'tblTempUsageDetail_20' ) start [2025-02-04 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398914', 'tblTempUsageDetail_20' ) end [2025-02-04 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398914', 'tblTempVendorCDR_20' ) start [2025-02-04 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398914', 'tblTempVendorCDR_20' ) end [2025-02-04 07:44:18] Production.INFO: ProcessCDR(1,14398914,1,1,2) [2025-02-04 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398914', 'tblTempUsageDetail_20' ) start [2025-02-04 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398914', 'tblTempUsageDetail_20' ) end [2025-02-04 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:44:22] Production.INFO: ==30067== Releasing lock... [2025-02-04 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:44:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:45:05 [end_date_ymd] => 2025-02-04 07:45:05 [RateCDR] => 1 ) [2025-02-04 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:45:05' and `end` < '2025-02-04 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:45:20] Production.INFO: count ==110 [2025-02-04 07:45:20] Production.ERROR: pbx CDR StartTime 2025-02-04 04:45:05 - End Time 2025-02-04 07:45:05 [2025-02-04 07:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398919', 'tblTempUsageDetail_20' ) start [2025-02-04 07:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398919', 'tblTempUsageDetail_20' ) end [2025-02-04 07:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398919', 'tblTempVendorCDR_20' ) start [2025-02-04 07:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398919', 'tblTempVendorCDR_20' ) end [2025-02-04 07:45:20] Production.INFO: ProcessCDR(1,14398919,1,1,2) [2025-02-04 07:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398919', 'tblTempUsageDetail_20' ) start [2025-02-04 07:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398919', 'tblTempUsageDetail_20' ) end [2025-02-04 07:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:45:23] Production.INFO: ==30186== Releasing lock... [2025-02-04 07:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:45:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:46:05 [end_date_ymd] => 2025-02-04 07:46:05 [RateCDR] => 1 ) [2025-02-04 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:46:05' and `end` < '2025-02-04 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:46:18] Production.INFO: count ==110 [2025-02-04 07:46:18] Production.ERROR: pbx CDR StartTime 2025-02-04 04:46:05 - End Time 2025-02-04 07:46:05 [2025-02-04 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398924', 'tblTempUsageDetail_20' ) start [2025-02-04 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398924', 'tblTempUsageDetail_20' ) end [2025-02-04 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398924', 'tblTempVendorCDR_20' ) start [2025-02-04 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398924', 'tblTempVendorCDR_20' ) end [2025-02-04 07:46:18] Production.INFO: ProcessCDR(1,14398924,1,1,2) [2025-02-04 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398924', 'tblTempUsageDetail_20' ) start [2025-02-04 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398924', 'tblTempUsageDetail_20' ) end [2025-02-04 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:46:21] Production.INFO: ==30263== Releasing lock... [2025-02-04 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:46:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:47:05 [end_date_ymd] => 2025-02-04 07:47:05 [RateCDR] => 1 ) [2025-02-04 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:47:05' and `end` < '2025-02-04 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:47:19] Production.INFO: count ==110 [2025-02-04 07:47:19] Production.ERROR: pbx CDR StartTime 2025-02-04 04:47:05 - End Time 2025-02-04 07:47:05 [2025-02-04 07:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398929', 'tblTempUsageDetail_20' ) start [2025-02-04 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398929', 'tblTempUsageDetail_20' ) end [2025-02-04 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398929', 'tblTempVendorCDR_20' ) start [2025-02-04 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398929', 'tblTempVendorCDR_20' ) end [2025-02-04 07:47:19] Production.INFO: ProcessCDR(1,14398929,1,1,2) [2025-02-04 07:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398929', 'tblTempUsageDetail_20' ) start [2025-02-04 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398929', 'tblTempUsageDetail_20' ) end [2025-02-04 07:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:47:22] Production.INFO: ==30339== Releasing lock... [2025-02-04 07:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:47:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-04 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:48:05 [end_date_ymd] => 2025-02-04 07:48:05 [RateCDR] => 1 ) [2025-02-04 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:48:05' and `end` < '2025-02-04 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:48:19] Production.INFO: count ==120 [2025-02-04 07:48:19] Production.ERROR: pbx CDR StartTime 2025-02-04 04:48:05 - End Time 2025-02-04 07:48:05 [2025-02-04 07:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398934', 'tblTempUsageDetail_20' ) start [2025-02-04 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398934', 'tblTempUsageDetail_20' ) end [2025-02-04 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398934', 'tblTempVendorCDR_20' ) start [2025-02-04 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398934', 'tblTempVendorCDR_20' ) end [2025-02-04 07:48:19] Production.INFO: ProcessCDR(1,14398934,1,1,2) [2025-02-04 07:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398934', 'tblTempUsageDetail_20' ) start [2025-02-04 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398934', 'tblTempUsageDetail_20' ) end [2025-02-04 07:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:48:22] Production.INFO: ==30413== Releasing lock... [2025-02-04 07:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:48:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-04 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:49:05 [end_date_ymd] => 2025-02-04 07:49:05 [RateCDR] => 1 ) [2025-02-04 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:49:05' and `end` < '2025-02-04 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:49:18] Production.INFO: count ==120 [2025-02-04 07:49:18] Production.ERROR: pbx CDR StartTime 2025-02-04 04:49:05 - End Time 2025-02-04 07:49:05 [2025-02-04 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398939', 'tblTempUsageDetail_20' ) start [2025-02-04 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398939', 'tblTempUsageDetail_20' ) end [2025-02-04 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398939', 'tblTempVendorCDR_20' ) start [2025-02-04 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398939', 'tblTempVendorCDR_20' ) end [2025-02-04 07:49:18] Production.INFO: ProcessCDR(1,14398939,1,1,2) [2025-02-04 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398939', 'tblTempUsageDetail_20' ) start [2025-02-04 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398939', 'tblTempUsageDetail_20' ) end [2025-02-04 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:49:21] Production.INFO: ==30490== Releasing lock... [2025-02-04 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:49:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-04 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:50:06 [end_date_ymd] => 2025-02-04 07:50:06 [RateCDR] => 1 ) [2025-02-04 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:50:06' and `end` < '2025-02-04 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:50:19] Production.INFO: count ==120 [2025-02-04 07:50:19] Production.ERROR: pbx CDR StartTime 2025-02-04 04:50:06 - End Time 2025-02-04 07:50:06 [2025-02-04 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398944', 'tblTempUsageDetail_20' ) start [2025-02-04 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398944', 'tblTempUsageDetail_20' ) end [2025-02-04 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398944', 'tblTempVendorCDR_20' ) start [2025-02-04 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398944', 'tblTempVendorCDR_20' ) end [2025-02-04 07:50:19] Production.INFO: ProcessCDR(1,14398944,1,1,2) [2025-02-04 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398944', 'tblTempUsageDetail_20' ) start [2025-02-04 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398944', 'tblTempUsageDetail_20' ) end [2025-02-04 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:50:22] Production.INFO: ==30565== Releasing lock... [2025-02-04 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:50:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-04 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:51:05 [end_date_ymd] => 2025-02-04 07:51:05 [RateCDR] => 1 ) [2025-02-04 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:51:05' and `end` < '2025-02-04 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:51:19] Production.INFO: count ==120 [2025-02-04 07:51:19] Production.ERROR: pbx CDR StartTime 2025-02-04 04:51:05 - End Time 2025-02-04 07:51:05 [2025-02-04 07:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398950', 'tblTempUsageDetail_20' ) start [2025-02-04 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398950', 'tblTempUsageDetail_20' ) end [2025-02-04 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398950', 'tblTempVendorCDR_20' ) start [2025-02-04 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398950', 'tblTempVendorCDR_20' ) end [2025-02-04 07:51:19] Production.INFO: ProcessCDR(1,14398950,1,1,2) [2025-02-04 07:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398950', 'tblTempUsageDetail_20' ) start [2025-02-04 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398950', 'tblTempUsageDetail_20' ) end [2025-02-04 07:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:51:22] Production.INFO: ==30643== Releasing lock... [2025-02-04 07:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:51:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-04 07:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:52:06 [end_date_ymd] => 2025-02-04 07:52:06 [RateCDR] => 1 ) [2025-02-04 07:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:52:06' and `end` < '2025-02-04 07:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:52:19] Production.INFO: count ==121 [2025-02-04 07:52:19] Production.ERROR: pbx CDR StartTime 2025-02-04 04:52:06 - End Time 2025-02-04 07:52:06 [2025-02-04 07:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398955', 'tblTempUsageDetail_20' ) start [2025-02-04 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398955', 'tblTempUsageDetail_20' ) end [2025-02-04 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398955', 'tblTempVendorCDR_20' ) start [2025-02-04 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398955', 'tblTempVendorCDR_20' ) end [2025-02-04 07:52:19] Production.INFO: ProcessCDR(1,14398955,1,1,2) [2025-02-04 07:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398955', 'tblTempUsageDetail_20' ) start [2025-02-04 07:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398955', 'tblTempUsageDetail_20' ) end [2025-02-04 07:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:52:23] Production.INFO: ==30721== Releasing lock... [2025-02-04 07:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:52:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-04 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:53:05 [end_date_ymd] => 2025-02-04 07:53:05 [RateCDR] => 1 ) [2025-02-04 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:53:05' and `end` < '2025-02-04 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:53:18] Production.INFO: count ==121 [2025-02-04 07:53:18] Production.ERROR: pbx CDR StartTime 2025-02-04 04:53:05 - End Time 2025-02-04 07:53:05 [2025-02-04 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398960', 'tblTempUsageDetail_20' ) start [2025-02-04 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398960', 'tblTempUsageDetail_20' ) end [2025-02-04 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398960', 'tblTempVendorCDR_20' ) start [2025-02-04 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398960', 'tblTempVendorCDR_20' ) end [2025-02-04 07:53:18] Production.INFO: ProcessCDR(1,14398960,1,1,2) [2025-02-04 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398960', 'tblTempUsageDetail_20' ) start [2025-02-04 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398960', 'tblTempUsageDetail_20' ) end [2025-02-04 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:53:21] Production.INFO: ==30796== Releasing lock... [2025-02-04 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:53:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-04 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:54:05 [end_date_ymd] => 2025-02-04 07:54:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 04:54:05' and `end` < '2025-02-04 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-02-04 07:54:18] Production.INFO: count ==121 [2025-02-04 07:54:18] Production.ERROR: pbx CDR StartTime 2025-02-04 04:54:05 - End Time 2025-02-04 07:54:05 [2025-02-04 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398965', 'tblTempUsageDetail_20' ) start [2025-02-04 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398965', 'tblTempUsageDetail_20' ) end [2025-02-04 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398965', 'tblTempVendorCDR_20' ) start [2025-02-04 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398965', 'tblTempVendorCDR_20' ) end [2025-02-04 07:54:18] Production.INFO: ProcessCDR(1,14398965,1,1,2) [2025-02-04 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398965', 'tblTempUsageDetail_20' ) start [2025-02-04 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398965', 'tblTempUsageDetail_20' ) end [2025-02-04 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:54:21] Production.INFO: ==30872== Releasing lock... [2025-02-04 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:54:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-04 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:55:05 [end_date_ymd] => 2025-02-04 07:55:05 [RateCDR] => 1 ) [2025-02-04 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:55:05' and `end` < '2025-02-04 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:55:18] Production.INFO: count ==121 [2025-02-04 07:55:18] Production.ERROR: pbx CDR StartTime 2025-02-04 04:55:05 - End Time 2025-02-04 07:55:05 [2025-02-04 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398969', 'tblTempUsageDetail_20' ) start [2025-02-04 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398969', 'tblTempUsageDetail_20' ) end [2025-02-04 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398969', 'tblTempVendorCDR_20' ) start [2025-02-04 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398969', 'tblTempVendorCDR_20' ) end [2025-02-04 07:55:18] Production.INFO: ProcessCDR(1,14398969,1,1,2) [2025-02-04 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398969', 'tblTempUsageDetail_20' ) start [2025-02-04 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398969', 'tblTempUsageDetail_20' ) end [2025-02-04 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:55:21] Production.INFO: ==30947== Releasing lock... [2025-02-04 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:55:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-04 07:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:56:06 [end_date_ymd] => 2025-02-04 07:56:06 [RateCDR] => 1 ) [2025-02-04 07:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:56:06' and `end` < '2025-02-04 07:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:56:20] Production.INFO: count ==126 [2025-02-04 07:56:20] Production.ERROR: pbx CDR StartTime 2025-02-04 04:56:06 - End Time 2025-02-04 07:56:06 [2025-02-04 07:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398975', 'tblTempUsageDetail_20' ) start [2025-02-04 07:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398975', 'tblTempUsageDetail_20' ) end [2025-02-04 07:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398975', 'tblTempVendorCDR_20' ) start [2025-02-04 07:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398975', 'tblTempVendorCDR_20' ) end [2025-02-04 07:56:20] Production.INFO: ProcessCDR(1,14398975,1,1,2) [2025-02-04 07:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398975', 'tblTempUsageDetail_20' ) start [2025-02-04 07:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398975', 'tblTempUsageDetail_20' ) end [2025-02-04 07:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:56:23] Production.INFO: ==31018== Releasing lock... [2025-02-04 07:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:56:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-04 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:57:05 [end_date_ymd] => 2025-02-04 07:57:05 [RateCDR] => 1 ) [2025-02-04 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:57:05' and `end` < '2025-02-04 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:57:18] Production.INFO: count ==126 [2025-02-04 07:57:18] Production.ERROR: pbx CDR StartTime 2025-02-04 04:57:05 - End Time 2025-02-04 07:57:05 [2025-02-04 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398980', 'tblTempUsageDetail_20' ) start [2025-02-04 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398980', 'tblTempUsageDetail_20' ) end [2025-02-04 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398980', 'tblTempVendorCDR_20' ) start [2025-02-04 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398980', 'tblTempVendorCDR_20' ) end [2025-02-04 07:57:18] Production.INFO: ProcessCDR(1,14398980,1,1,2) [2025-02-04 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398980', 'tblTempUsageDetail_20' ) start [2025-02-04 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398980', 'tblTempUsageDetail_20' ) end [2025-02-04 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:57:21] Production.INFO: ==31096== Releasing lock... [2025-02-04 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-04 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:58:05 [end_date_ymd] => 2025-02-04 07:58:05 [RateCDR] => 1 ) [2025-02-04 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:58:05' and `end` < '2025-02-04 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:58:18] Production.INFO: count ==126 [2025-02-04 07:58:18] Production.ERROR: pbx CDR StartTime 2025-02-04 04:58:05 - End Time 2025-02-04 07:58:05 [2025-02-04 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398985', 'tblTempUsageDetail_20' ) start [2025-02-04 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398985', 'tblTempUsageDetail_20' ) end [2025-02-04 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398985', 'tblTempVendorCDR_20' ) start [2025-02-04 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398985', 'tblTempVendorCDR_20' ) end [2025-02-04 07:58:18] Production.INFO: ProcessCDR(1,14398985,1,1,2) [2025-02-04 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398985', 'tblTempUsageDetail_20' ) start [2025-02-04 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398985', 'tblTempUsageDetail_20' ) end [2025-02-04 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:58:21] Production.INFO: ==31171== Releasing lock... [2025-02-04 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-04 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 04:59:05 [end_date_ymd] => 2025-02-04 07:59:05 [RateCDR] => 1 ) [2025-02-04 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 04:59:05' and `end` < '2025-02-04 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 07:59:18] Production.INFO: count ==126 [2025-02-04 07:59:18] Production.ERROR: pbx CDR StartTime 2025-02-04 04:59:05 - End Time 2025-02-04 07:59:05 [2025-02-04 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398990', 'tblTempUsageDetail_20' ) start [2025-02-04 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398990', 'tblTempUsageDetail_20' ) end [2025-02-04 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398990', 'tblTempVendorCDR_20' ) start [2025-02-04 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398990', 'tblTempVendorCDR_20' ) end [2025-02-04 07:59:18] Production.INFO: ProcessCDR(1,14398990,1,1,2) [2025-02-04 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398990', 'tblTempUsageDetail_20' ) start [2025-02-04 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398990', 'tblTempUsageDetail_20' ) end [2025-02-04 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 07:59:21] Production.INFO: ==31249== Releasing lock... [2025-02-04 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 07:59:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-04 08:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:00:07 [end_date_ymd] => 2025-02-04 08:00:07 [RateCDR] => 1 ) [2025-02-04 08:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:00:07' and `end` < '2025-02-04 08:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:00:20] Production.INFO: count ==127 [2025-02-04 08:00:20] Production.ERROR: pbx CDR StartTime 2025-02-04 05:00:07 - End Time 2025-02-04 08:00:07 [2025-02-04 08:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398996', 'tblTempUsageDetail_20' ) start [2025-02-04 08:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14398996', 'tblTempUsageDetail_20' ) end [2025-02-04 08:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398996', 'tblTempVendorCDR_20' ) start [2025-02-04 08:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14398996', 'tblTempVendorCDR_20' ) end [2025-02-04 08:00:20] Production.INFO: ProcessCDR(1,14398996,1,1,2) [2025-02-04 08:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14398996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14398996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14398996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14398996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398996', 'tblTempUsageDetail_20' ) start [2025-02-04 08:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14398996', 'tblTempUsageDetail_20' ) end [2025-02-04 08:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:00:25] Production.INFO: ==31370== Releasing lock... [2025-02-04 08:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:00:25] Production.INFO: 28.5 MB #Memory Used# [2025-02-04 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:01:05 [end_date_ymd] => 2025-02-04 08:01:05 [RateCDR] => 1 ) [2025-02-04 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:01:05' and `end` < '2025-02-04 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:01:19] Production.INFO: count ==127 [2025-02-04 08:01:19] Production.ERROR: pbx CDR StartTime 2025-02-04 05:01:05 - End Time 2025-02-04 08:01:05 [2025-02-04 08:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399001', 'tblTempUsageDetail_20' ) start [2025-02-04 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399001', 'tblTempUsageDetail_20' ) end [2025-02-04 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399001', 'tblTempVendorCDR_20' ) start [2025-02-04 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399001', 'tblTempVendorCDR_20' ) end [2025-02-04 08:01:19] Production.INFO: ProcessCDR(1,14399001,1,1,2) [2025-02-04 08:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399001', 'tblTempUsageDetail_20' ) start [2025-02-04 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399001', 'tblTempUsageDetail_20' ) end [2025-02-04 08:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:01:22] Production.INFO: ==31462== Releasing lock... [2025-02-04 08:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:01:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-04 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:02:05 [end_date_ymd] => 2025-02-04 08:02:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 05:02:05' and `end` < '2025-02-04 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-02-04 08:02:19] Production.INFO: count ==135 [2025-02-04 08:02:19] Production.ERROR: pbx CDR StartTime 2025-02-04 05:02:05 - End Time 2025-02-04 08:02:05 [2025-02-04 08:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399006', 'tblTempUsageDetail_20' ) start [2025-02-04 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399006', 'tblTempUsageDetail_20' ) end [2025-02-04 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399006', 'tblTempVendorCDR_20' ) start [2025-02-04 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399006', 'tblTempVendorCDR_20' ) end [2025-02-04 08:02:19] Production.INFO: ProcessCDR(1,14399006,1,1,2) [2025-02-04 08:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399006', 'tblTempUsageDetail_20' ) start [2025-02-04 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399006', 'tblTempUsageDetail_20' ) end [2025-02-04 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:02:22] Production.INFO: ==31538== Releasing lock... [2025-02-04 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:02:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-04 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:03:05 [end_date_ymd] => 2025-02-04 08:03:05 [RateCDR] => 1 ) [2025-02-04 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:03:05' and `end` < '2025-02-04 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:03:17] Production.INFO: count ==135 [2025-02-04 08:03:17] Production.ERROR: pbx CDR StartTime 2025-02-04 05:03:05 - End Time 2025-02-04 08:03:05 [2025-02-04 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399011', 'tblTempUsageDetail_20' ) start [2025-02-04 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399011', 'tblTempUsageDetail_20' ) end [2025-02-04 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399011', 'tblTempVendorCDR_20' ) start [2025-02-04 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399011', 'tblTempVendorCDR_20' ) end [2025-02-04 08:03:17] Production.INFO: ProcessCDR(1,14399011,1,1,2) [2025-02-04 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399011', 'tblTempUsageDetail_20' ) start [2025-02-04 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399011', 'tblTempUsageDetail_20' ) end [2025-02-04 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:03:21] Production.INFO: ==31609== Releasing lock... [2025-02-04 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:03:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-04 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:04:05 [end_date_ymd] => 2025-02-04 08:04:05 [RateCDR] => 1 ) [2025-02-04 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:04:05' and `end` < '2025-02-04 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:04:19] Production.INFO: count ==142 [2025-02-04 08:04:20] Production.ERROR: pbx CDR StartTime 2025-02-04 05:04:05 - End Time 2025-02-04 08:04:05 [2025-02-04 08:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399016', 'tblTempUsageDetail_20' ) start [2025-02-04 08:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399016', 'tblTempUsageDetail_20' ) end [2025-02-04 08:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399016', 'tblTempVendorCDR_20' ) start [2025-02-04 08:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399016', 'tblTempVendorCDR_20' ) end [2025-02-04 08:04:20] Production.INFO: ProcessCDR(1,14399016,1,1,2) [2025-02-04 08:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399016', 'tblTempUsageDetail_20' ) start [2025-02-04 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399016', 'tblTempUsageDetail_20' ) end [2025-02-04 08:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:04:23] Production.INFO: ==31686== Releasing lock... [2025-02-04 08:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:04:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-04 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:05:05 [end_date_ymd] => 2025-02-04 08:05:05 [RateCDR] => 1 ) [2025-02-04 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:05:05' and `end` < '2025-02-04 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:05:24] Production.INFO: count ==158 [2025-02-04 08:05:24] Production.ERROR: pbx CDR StartTime 2025-02-04 05:05:05 - End Time 2025-02-04 08:05:05 [2025-02-04 08:05:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399021', 'tblTempUsageDetail_20' ) start [2025-02-04 08:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399021', 'tblTempUsageDetail_20' ) end [2025-02-04 08:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399021', 'tblTempVendorCDR_20' ) start [2025-02-04 08:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399021', 'tblTempVendorCDR_20' ) end [2025-02-04 08:05:24] Production.INFO: ProcessCDR(1,14399021,1,1,2) [2025-02-04 08:05:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399021', 'tblTempUsageDetail_20' ) start [2025-02-04 08:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399021', 'tblTempUsageDetail_20' ) end [2025-02-04 08:05:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:05:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:05:29] Production.INFO: ==31759== Releasing lock... [2025-02-04 08:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:05:29] Production.INFO: 29.25 MB #Memory Used# [2025-02-04 08:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:06:06 [end_date_ymd] => 2025-02-04 08:06:06 [RateCDR] => 1 ) [2025-02-04 08:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:06:06' and `end` < '2025-02-04 08:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:06:18] Production.INFO: count ==158 [2025-02-04 08:06:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:06:06 - End Time 2025-02-04 08:06:06 [2025-02-04 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399026', 'tblTempUsageDetail_20' ) start [2025-02-04 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399026', 'tblTempUsageDetail_20' ) end [2025-02-04 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399026', 'tblTempVendorCDR_20' ) start [2025-02-04 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399026', 'tblTempVendorCDR_20' ) end [2025-02-04 08:06:18] Production.INFO: ProcessCDR(1,14399026,1,1,2) [2025-02-04 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399026', 'tblTempUsageDetail_20' ) start [2025-02-04 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399026', 'tblTempUsageDetail_20' ) end [2025-02-04 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:06:21] Production.INFO: ==31834== Releasing lock... [2025-02-04 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:06:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-04 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:07:05 [end_date_ymd] => 2025-02-04 08:07:05 [RateCDR] => 1 ) [2025-02-04 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:07:05' and `end` < '2025-02-04 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:07:19] Production.INFO: count ==158 [2025-02-04 08:07:19] Production.ERROR: pbx CDR StartTime 2025-02-04 05:07:05 - End Time 2025-02-04 08:07:05 [2025-02-04 08:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399031', 'tblTempUsageDetail_20' ) start [2025-02-04 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399031', 'tblTempUsageDetail_20' ) end [2025-02-04 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399031', 'tblTempVendorCDR_20' ) start [2025-02-04 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399031', 'tblTempVendorCDR_20' ) end [2025-02-04 08:07:19] Production.INFO: ProcessCDR(1,14399031,1,1,2) [2025-02-04 08:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399031', 'tblTempUsageDetail_20' ) start [2025-02-04 08:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399031', 'tblTempUsageDetail_20' ) end [2025-02-04 08:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:07:23] Production.INFO: ==31907== Releasing lock... [2025-02-04 08:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:07:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-04 08:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:08:06 [end_date_ymd] => 2025-02-04 08:08:06 [RateCDR] => 1 ) [2025-02-04 08:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:08:06' and `end` < '2025-02-04 08:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:08:18] Production.INFO: count ==158 [2025-02-04 08:08:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:08:06 - End Time 2025-02-04 08:08:06 [2025-02-04 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399036', 'tblTempUsageDetail_20' ) start [2025-02-04 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399036', 'tblTempUsageDetail_20' ) end [2025-02-04 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399036', 'tblTempVendorCDR_20' ) start [2025-02-04 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399036', 'tblTempVendorCDR_20' ) end [2025-02-04 08:08:18] Production.INFO: ProcessCDR(1,14399036,1,1,2) [2025-02-04 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399036', 'tblTempUsageDetail_20' ) start [2025-02-04 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399036', 'tblTempUsageDetail_20' ) end [2025-02-04 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:08:21] Production.INFO: ==31981== Releasing lock... [2025-02-04 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-04 08:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:09:06 [end_date_ymd] => 2025-02-04 08:09:06 [RateCDR] => 1 ) [2025-02-04 08:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:09:06' and `end` < '2025-02-04 08:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:09:18] Production.INFO: count ==166 [2025-02-04 08:09:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:09:06 - End Time 2025-02-04 08:09:06 [2025-02-04 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399041', 'tblTempUsageDetail_20' ) start [2025-02-04 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399041', 'tblTempUsageDetail_20' ) end [2025-02-04 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399041', 'tblTempVendorCDR_20' ) start [2025-02-04 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399041', 'tblTempVendorCDR_20' ) end [2025-02-04 08:09:18] Production.INFO: ProcessCDR(1,14399041,1,1,2) [2025-02-04 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399041', 'tblTempUsageDetail_20' ) start [2025-02-04 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399041', 'tblTempUsageDetail_20' ) end [2025-02-04 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:09:22] Production.INFO: ==32057== Releasing lock... [2025-02-04 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:09:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-04 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:10:05 [end_date_ymd] => 2025-02-04 08:10:05 [RateCDR] => 1 ) [2025-02-04 08:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:10:05' and `end` < '2025-02-04 08:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:10:18] Production.INFO: count ==168 [2025-02-04 08:10:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:10:05 - End Time 2025-02-04 08:10:05 [2025-02-04 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399047', 'tblTempUsageDetail_20' ) start [2025-02-04 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399047', 'tblTempUsageDetail_20' ) end [2025-02-04 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399047', 'tblTempVendorCDR_20' ) start [2025-02-04 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399047', 'tblTempVendorCDR_20' ) end [2025-02-04 08:10:18] Production.INFO: ProcessCDR(1,14399047,1,1,2) [2025-02-04 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399047', 'tblTempUsageDetail_20' ) start [2025-02-04 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399047', 'tblTempUsageDetail_20' ) end [2025-02-04 08:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:10:21] Production.INFO: ==32145== Releasing lock... [2025-02-04 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:10:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-04 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:11:05 [end_date_ymd] => 2025-02-04 08:11:05 [RateCDR] => 1 ) [2025-02-04 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:11:05' and `end` < '2025-02-04 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:11:20] Production.INFO: count ==192 [2025-02-04 08:11:20] Production.ERROR: pbx CDR StartTime 2025-02-04 05:11:05 - End Time 2025-02-04 08:11:05 [2025-02-04 08:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399052', 'tblTempUsageDetail_20' ) start [2025-02-04 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399052', 'tblTempUsageDetail_20' ) end [2025-02-04 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399052', 'tblTempVendorCDR_20' ) start [2025-02-04 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399052', 'tblTempVendorCDR_20' ) end [2025-02-04 08:11:20] Production.INFO: ProcessCDR(1,14399052,1,1,2) [2025-02-04 08:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399052', 'tblTempUsageDetail_20' ) start [2025-02-04 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399052', 'tblTempUsageDetail_20' ) end [2025-02-04 08:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:11:23] Production.INFO: ==32231== Releasing lock... [2025-02-04 08:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:11:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-04 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:12:05 [end_date_ymd] => 2025-02-04 08:12:05 [RateCDR] => 1 ) [2025-02-04 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:12:05' and `end` < '2025-02-04 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:12:20] Production.INFO: count ==204 [2025-02-04 08:12:20] Production.ERROR: pbx CDR StartTime 2025-02-04 05:12:05 - End Time 2025-02-04 08:12:05 [2025-02-04 08:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399057', 'tblTempUsageDetail_20' ) start [2025-02-04 08:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399057', 'tblTempUsageDetail_20' ) end [2025-02-04 08:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399057', 'tblTempVendorCDR_20' ) start [2025-02-04 08:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399057', 'tblTempVendorCDR_20' ) end [2025-02-04 08:12:20] Production.INFO: ProcessCDR(1,14399057,1,1,2) [2025-02-04 08:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399057', 'tblTempUsageDetail_20' ) start [2025-02-04 08:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399057', 'tblTempUsageDetail_20' ) end [2025-02-04 08:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:12:24] Production.INFO: ==32306== Releasing lock... [2025-02-04 08:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:12:24] Production.INFO: 29.5 MB #Memory Used# [2025-02-04 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:13:05 [end_date_ymd] => 2025-02-04 08:13:05 [RateCDR] => 1 ) [2025-02-04 08:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:13:05' and `end` < '2025-02-04 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:13:18] Production.INFO: count ==212 [2025-02-04 08:13:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:13:05 - End Time 2025-02-04 08:13:05 [2025-02-04 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399062', 'tblTempUsageDetail_20' ) start [2025-02-04 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399062', 'tblTempUsageDetail_20' ) end [2025-02-04 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399062', 'tblTempVendorCDR_20' ) start [2025-02-04 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399062', 'tblTempVendorCDR_20' ) end [2025-02-04 08:13:18] Production.INFO: ProcessCDR(1,14399062,1,1,2) [2025-02-04 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399062', 'tblTempUsageDetail_20' ) start [2025-02-04 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399062', 'tblTempUsageDetail_20' ) end [2025-02-04 08:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:13:22] Production.INFO: ==32386== Releasing lock... [2025-02-04 08:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:13:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-04 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:14:05 [end_date_ymd] => 2025-02-04 08:14:05 [RateCDR] => 1 ) [2025-02-04 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:14:05' and `end` < '2025-02-04 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:14:18] Production.INFO: count ==213 [2025-02-04 08:14:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:14:05 - End Time 2025-02-04 08:14:05 [2025-02-04 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399067', 'tblTempUsageDetail_20' ) start [2025-02-04 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399067', 'tblTempUsageDetail_20' ) end [2025-02-04 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399067', 'tblTempVendorCDR_20' ) start [2025-02-04 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399067', 'tblTempVendorCDR_20' ) end [2025-02-04 08:14:18] Production.INFO: ProcessCDR(1,14399067,1,1,2) [2025-02-04 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399067', 'tblTempUsageDetail_20' ) start [2025-02-04 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399067', 'tblTempUsageDetail_20' ) end [2025-02-04 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:14:22] Production.INFO: ==32468== Releasing lock... [2025-02-04 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:14:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-04 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:15:05 [end_date_ymd] => 2025-02-04 08:15:05 [RateCDR] => 1 ) [2025-02-04 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:15:05' and `end` < '2025-02-04 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:15:18] Production.INFO: count ==213 [2025-02-04 08:15:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:15:05 - End Time 2025-02-04 08:15:05 [2025-02-04 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399072', 'tblTempUsageDetail_20' ) start [2025-02-04 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399072', 'tblTempUsageDetail_20' ) end [2025-02-04 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399072', 'tblTempVendorCDR_20' ) start [2025-02-04 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399072', 'tblTempVendorCDR_20' ) end [2025-02-04 08:15:18] Production.INFO: ProcessCDR(1,14399072,1,1,2) [2025-02-04 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399072', 'tblTempUsageDetail_20' ) start [2025-02-04 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399072', 'tblTempUsageDetail_20' ) end [2025-02-04 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:15:21] Production.INFO: ==32545== Releasing lock... [2025-02-04 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:15:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-04 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:16:05 [end_date_ymd] => 2025-02-04 08:16:05 [RateCDR] => 1 ) [2025-02-04 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:16:05' and `end` < '2025-02-04 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:16:19] Production.INFO: count ==219 [2025-02-04 08:16:19] Production.ERROR: pbx CDR StartTime 2025-02-04 05:16:05 - End Time 2025-02-04 08:16:05 [2025-02-04 08:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399077', 'tblTempUsageDetail_20' ) start [2025-02-04 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399077', 'tblTempUsageDetail_20' ) end [2025-02-04 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399077', 'tblTempVendorCDR_20' ) start [2025-02-04 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399077', 'tblTempVendorCDR_20' ) end [2025-02-04 08:16:19] Production.INFO: ProcessCDR(1,14399077,1,1,2) [2025-02-04 08:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399077', 'tblTempUsageDetail_20' ) start [2025-02-04 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399077', 'tblTempUsageDetail_20' ) end [2025-02-04 08:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:16:23] Production.INFO: ==32663== Releasing lock... [2025-02-04 08:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:16:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-04 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:17:05 [end_date_ymd] => 2025-02-04 08:17:05 [RateCDR] => 1 ) [2025-02-04 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:17:05' and `end` < '2025-02-04 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:17:21] Production.INFO: count ==219 [2025-02-04 08:17:21] Production.ERROR: pbx CDR StartTime 2025-02-04 05:17:05 - End Time 2025-02-04 08:17:05 [2025-02-04 08:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399082', 'tblTempUsageDetail_20' ) start [2025-02-04 08:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399082', 'tblTempUsageDetail_20' ) end [2025-02-04 08:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399082', 'tblTempVendorCDR_20' ) start [2025-02-04 08:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399082', 'tblTempVendorCDR_20' ) end [2025-02-04 08:17:21] Production.INFO: ProcessCDR(1,14399082,1,1,2) [2025-02-04 08:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399082', 'tblTempUsageDetail_20' ) start [2025-02-04 08:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399082', 'tblTempUsageDetail_20' ) end [2025-02-04 08:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:17:24] Production.INFO: ==32744== Releasing lock... [2025-02-04 08:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:17:24] Production.INFO: 29.75 MB #Memory Used# [2025-02-04 08:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:18:06 [end_date_ymd] => 2025-02-04 08:18:06 [RateCDR] => 1 ) [2025-02-04 08:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:18:06' and `end` < '2025-02-04 08:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:18:18] Production.INFO: count ==226 [2025-02-04 08:18:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:18:06 - End Time 2025-02-04 08:18:06 [2025-02-04 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399087', 'tblTempUsageDetail_20' ) start [2025-02-04 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399087', 'tblTempUsageDetail_20' ) end [2025-02-04 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399087', 'tblTempVendorCDR_20' ) start [2025-02-04 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399087', 'tblTempVendorCDR_20' ) end [2025-02-04 08:18:18] Production.INFO: ProcessCDR(1,14399087,1,1,2) [2025-02-04 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399087', 'tblTempUsageDetail_20' ) start [2025-02-04 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399087', 'tblTempUsageDetail_20' ) end [2025-02-04 08:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:18:23] Production.INFO: ==386== Releasing lock... [2025-02-04 08:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:18:23] Production.INFO: 30 MB #Memory Used# [2025-02-04 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:19:05 [end_date_ymd] => 2025-02-04 08:19:05 [RateCDR] => 1 ) [2025-02-04 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:19:05' and `end` < '2025-02-04 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:19:19] Production.INFO: count ==227 [2025-02-04 08:19:19] Production.ERROR: pbx CDR StartTime 2025-02-04 05:19:05 - End Time 2025-02-04 08:19:05 [2025-02-04 08:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399092', 'tblTempUsageDetail_20' ) start [2025-02-04 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399092', 'tblTempUsageDetail_20' ) end [2025-02-04 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399092', 'tblTempVendorCDR_20' ) start [2025-02-04 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399092', 'tblTempVendorCDR_20' ) end [2025-02-04 08:19:19] Production.INFO: ProcessCDR(1,14399092,1,1,2) [2025-02-04 08:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399092', 'tblTempUsageDetail_20' ) start [2025-02-04 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399092', 'tblTempUsageDetail_20' ) end [2025-02-04 08:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:19:23] Production.INFO: ==465== Releasing lock... [2025-02-04 08:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:19:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-04 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:20:06 [end_date_ymd] => 2025-02-04 08:20:06 [RateCDR] => 1 ) [2025-02-04 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:20:06' and `end` < '2025-02-04 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:20:19] Production.INFO: count ==250 [2025-02-04 08:20:19] Production.ERROR: pbx CDR StartTime 2025-02-04 05:20:06 - End Time 2025-02-04 08:20:06 [2025-02-04 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399097', 'tblTempUsageDetail_20' ) start [2025-02-04 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399097', 'tblTempUsageDetail_20' ) end [2025-02-04 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399097', 'tblTempVendorCDR_20' ) start [2025-02-04 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399097', 'tblTempVendorCDR_20' ) end [2025-02-04 08:20:19] Production.INFO: ProcessCDR(1,14399097,1,1,2) [2025-02-04 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399097', 'tblTempUsageDetail_20' ) start [2025-02-04 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399097', 'tblTempUsageDetail_20' ) end [2025-02-04 08:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:20:23] Production.INFO: ==556== Releasing lock... [2025-02-04 08:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:20:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-04 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:21:05 [end_date_ymd] => 2025-02-04 08:21:05 [RateCDR] => 1 ) [2025-02-04 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:21:05' and `end` < '2025-02-04 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-02-04 08:21:18] Production.INFO: count ==262 [2025-02-04 08:21:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:21:05 - End Time 2025-02-04 08:21:05 [2025-02-04 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399103', 'tblTempUsageDetail_20' ) start [2025-02-04 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399103', 'tblTempUsageDetail_20' ) end [2025-02-04 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399103', 'tblTempVendorCDR_20' ) start [2025-02-04 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399103', 'tblTempVendorCDR_20' ) end [2025-02-04 08:21:18] Production.INFO: ProcessCDR(1,14399103,1,1,2) [2025-02-04 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399103', 'tblTempUsageDetail_20' ) start [2025-02-04 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399103', 'tblTempUsageDetail_20' ) end [2025-02-04 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:21:22] Production.INFO: ==646== Releasing lock... [2025-02-04 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:21:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-04 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:22:05 [end_date_ymd] => 2025-02-04 08:22:05 [RateCDR] => 1 ) [2025-02-04 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:22:05' and `end` < '2025-02-04 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:22:18] Production.INFO: count ==284 [2025-02-04 08:22:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:22:05 - End Time 2025-02-04 08:22:05 [2025-02-04 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399108', 'tblTempUsageDetail_20' ) start [2025-02-04 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399108', 'tblTempUsageDetail_20' ) end [2025-02-04 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399108', 'tblTempVendorCDR_20' ) start [2025-02-04 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399108', 'tblTempVendorCDR_20' ) end [2025-02-04 08:22:18] Production.INFO: ProcessCDR(1,14399108,1,1,2) [2025-02-04 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399108', 'tblTempUsageDetail_20' ) start [2025-02-04 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399108', 'tblTempUsageDetail_20' ) end [2025-02-04 08:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:22:23] Production.INFO: ==747== Releasing lock... [2025-02-04 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:22:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-04 08:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:23:04 [end_date_ymd] => 2025-02-04 08:23:04 [RateCDR] => 1 ) [2025-02-04 08:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:23:04' and `end` < '2025-02-04 08:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:23:18] Production.INFO: count ==295 [2025-02-04 08:23:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:23:04 - End Time 2025-02-04 08:23:04 [2025-02-04 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399113', 'tblTempUsageDetail_20' ) start [2025-02-04 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399113', 'tblTempUsageDetail_20' ) end [2025-02-04 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399113', 'tblTempVendorCDR_20' ) start [2025-02-04 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399113', 'tblTempVendorCDR_20' ) end [2025-02-04 08:23:18] Production.INFO: ProcessCDR(1,14399113,1,1,2) [2025-02-04 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399113', 'tblTempUsageDetail_20' ) start [2025-02-04 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399113', 'tblTempUsageDetail_20' ) end [2025-02-04 08:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:23:23] Production.INFO: ==832== Releasing lock... [2025-02-04 08:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:23:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:24:06 [end_date_ymd] => 2025-02-04 08:24:06 [RateCDR] => 1 ) [2025-02-04 08:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:24:06' and `end` < '2025-02-04 08:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:24:22] Production.INFO: count ==301 [2025-02-04 08:24:22] Production.ERROR: pbx CDR StartTime 2025-02-04 05:24:06 - End Time 2025-02-04 08:24:06 [2025-02-04 08:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399118', 'tblTempUsageDetail_20' ) start [2025-02-04 08:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399118', 'tblTempUsageDetail_20' ) end [2025-02-04 08:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399118', 'tblTempVendorCDR_20' ) start [2025-02-04 08:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399118', 'tblTempVendorCDR_20' ) end [2025-02-04 08:24:22] Production.INFO: ProcessCDR(1,14399118,1,1,2) [2025-02-04 08:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399118', 'tblTempUsageDetail_20' ) start [2025-02-04 08:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399118', 'tblTempUsageDetail_20' ) end [2025-02-04 08:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:24:27] Production.INFO: ==910== Releasing lock... [2025-02-04 08:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:24:27] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:25:05 [end_date_ymd] => 2025-02-04 08:25:05 [RateCDR] => 1 ) [2025-02-04 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:25:05' and `end` < '2025-02-04 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:25:18] Production.INFO: count ==302 [2025-02-04 08:25:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:25:05 - End Time 2025-02-04 08:25:05 [2025-02-04 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399123', 'tblTempUsageDetail_20' ) start [2025-02-04 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399123', 'tblTempUsageDetail_20' ) end [2025-02-04 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399123', 'tblTempVendorCDR_20' ) start [2025-02-04 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399123', 'tblTempVendorCDR_20' ) end [2025-02-04 08:25:18] Production.INFO: ProcessCDR(1,14399123,1,1,2) [2025-02-04 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399123', 'tblTempUsageDetail_20' ) start [2025-02-04 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399123', 'tblTempUsageDetail_20' ) end [2025-02-04 08:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:25:22] Production.INFO: ==995== Releasing lock... [2025-02-04 08:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:25:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 08:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:26:04 [end_date_ymd] => 2025-02-04 08:26:04 [RateCDR] => 1 ) [2025-02-04 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-02-04 05:26:04' and `end` < '2025-02-04 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-02-04 08:26:17] Production.INFO: count ==313 [2025-02-04 08:26:17] Production.ERROR: pbx CDR StartTime 2025-02-04 05:26:04 - End Time 2025-02-04 08:26:04 [2025-02-04 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399128', 'tblTempUsageDetail_20' ) start [2025-02-04 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399128', 'tblTempUsageDetail_20' ) end [2025-02-04 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399128', 'tblTempVendorCDR_20' ) start [2025-02-04 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399128', 'tblTempVendorCDR_20' ) end [2025-02-04 08:26:17] Production.INFO: ProcessCDR(1,14399128,1,1,2) [2025-02-04 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399128', 'tblTempUsageDetail_20' ) start [2025-02-04 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399128', 'tblTempUsageDetail_20' ) end [2025-02-04 08:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:26:20] Production.INFO: ==1076== Releasing lock... [2025-02-04 08:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:26:20] Production.INFO: 31 MB #Memory Used# [2025-02-04 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:27:05 [end_date_ymd] => 2025-02-04 08:27:05 [RateCDR] => 1 ) [2025-02-04 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:27:05' and `end` < '2025-02-04 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:27:19] Production.INFO: count ==339 [2025-02-04 08:27:19] Production.ERROR: pbx CDR StartTime 2025-02-04 05:27:05 - End Time 2025-02-04 08:27:05 [2025-02-04 08:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399132', 'tblTempUsageDetail_20' ) start [2025-02-04 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399132', 'tblTempUsageDetail_20' ) end [2025-02-04 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399132', 'tblTempVendorCDR_20' ) start [2025-02-04 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399132', 'tblTempVendorCDR_20' ) end [2025-02-04 08:27:19] Production.INFO: ProcessCDR(1,14399132,1,1,2) [2025-02-04 08:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399132', 'tblTempUsageDetail_20' ) start [2025-02-04 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399132', 'tblTempUsageDetail_20' ) end [2025-02-04 08:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:27:23] Production.INFO: ==1162== Releasing lock... [2025-02-04 08:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:27:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-04 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:28:05 [end_date_ymd] => 2025-02-04 08:28:05 [RateCDR] => 1 ) [2025-02-04 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:28:05' and `end` < '2025-02-04 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:28:18] Production.INFO: count ==345 [2025-02-04 08:28:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:28:05 - End Time 2025-02-04 08:28:05 [2025-02-04 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399138', 'tblTempUsageDetail_20' ) start [2025-02-04 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399138', 'tblTempUsageDetail_20' ) end [2025-02-04 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399138', 'tblTempVendorCDR_20' ) start [2025-02-04 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399138', 'tblTempVendorCDR_20' ) end [2025-02-04 08:28:18] Production.INFO: ProcessCDR(1,14399138,1,1,2) [2025-02-04 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399138', 'tblTempUsageDetail_20' ) start [2025-02-04 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399138', 'tblTempUsageDetail_20' ) end [2025-02-04 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:28:21] Production.INFO: ==1248== Releasing lock... [2025-02-04 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:28:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-04 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:29:05 [end_date_ymd] => 2025-02-04 08:29:05 [RateCDR] => 1 ) [2025-02-04 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:29:05' and `end` < '2025-02-04 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:29:18] Production.INFO: count ==362 [2025-02-04 08:29:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:29:05 - End Time 2025-02-04 08:29:05 [2025-02-04 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399143', 'tblTempUsageDetail_20' ) start [2025-02-04 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399143', 'tblTempUsageDetail_20' ) end [2025-02-04 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399143', 'tblTempVendorCDR_20' ) start [2025-02-04 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399143', 'tblTempVendorCDR_20' ) end [2025-02-04 08:29:18] Production.INFO: ProcessCDR(1,14399143,1,1,2) [2025-02-04 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399143', 'tblTempUsageDetail_20' ) start [2025-02-04 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399143', 'tblTempUsageDetail_20' ) end [2025-02-04 08:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:29:23] Production.INFO: ==1335== Releasing lock... [2025-02-04 08:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:29:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-04 08:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:30:05 [end_date_ymd] => 2025-02-04 08:30:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 05:30:05' and `end` < '2025-02-04 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-02-04 08:30:18] Production.INFO: count ==378 [2025-02-04 08:30:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:30:05 - End Time 2025-02-04 08:30:05 [2025-02-04 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399149', 'tblTempUsageDetail_20' ) start [2025-02-04 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399149', 'tblTempUsageDetail_20' ) end [2025-02-04 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399149', 'tblTempVendorCDR_20' ) start [2025-02-04 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399149', 'tblTempVendorCDR_20' ) end [2025-02-04 08:30:18] Production.INFO: ProcessCDR(1,14399149,1,1,2) [2025-02-04 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399149', 'tblTempUsageDetail_20' ) start [2025-02-04 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399149', 'tblTempUsageDetail_20' ) end [2025-02-04 08:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:30:21] Production.INFO: ==1419== Releasing lock... [2025-02-04 08:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:30:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-04 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:31:05 [end_date_ymd] => 2025-02-04 08:31:05 [RateCDR] => 1 ) [2025-02-04 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:31:05' and `end` < '2025-02-04 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:31:18] Production.INFO: count ==412 [2025-02-04 08:31:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:31:05 - End Time 2025-02-04 08:31:05 [2025-02-04 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399154', 'tblTempUsageDetail_20' ) start [2025-02-04 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399154', 'tblTempUsageDetail_20' ) end [2025-02-04 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399154', 'tblTempVendorCDR_20' ) start [2025-02-04 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399154', 'tblTempVendorCDR_20' ) end [2025-02-04 08:31:18] Production.INFO: ProcessCDR(1,14399154,1,1,2) [2025-02-04 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399154', 'tblTempUsageDetail_20' ) start [2025-02-04 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399154', 'tblTempUsageDetail_20' ) end [2025-02-04 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:31:22] Production.INFO: ==1566== Releasing lock... [2025-02-04 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:31:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-04 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:32:05 [end_date_ymd] => 2025-02-04 08:32:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 05:32:05' and `end` < '2025-02-04 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-02-04 08:32:18] Production.INFO: count ==423 [2025-02-04 08:32:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:32:05 - End Time 2025-02-04 08:32:05 [2025-02-04 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399159', 'tblTempUsageDetail_20' ) start [2025-02-04 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399159', 'tblTempUsageDetail_20' ) end [2025-02-04 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399159', 'tblTempVendorCDR_20' ) start [2025-02-04 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399159', 'tblTempVendorCDR_20' ) end [2025-02-04 08:32:18] Production.INFO: ProcessCDR(1,14399159,1,1,2) [2025-02-04 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399159', 'tblTempUsageDetail_20' ) start [2025-02-04 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399159', 'tblTempUsageDetail_20' ) end [2025-02-04 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:32:21] Production.INFO: ==1651== Releasing lock... [2025-02-04 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:32:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-04 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:33:05 [end_date_ymd] => 2025-02-04 08:33:05 [RateCDR] => 1 ) [2025-02-04 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:33:05' and `end` < '2025-02-04 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:33:18] Production.INFO: count ==432 [2025-02-04 08:33:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:33:05 - End Time 2025-02-04 08:33:05 [2025-02-04 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399164', 'tblTempUsageDetail_20' ) start [2025-02-04 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399164', 'tblTempUsageDetail_20' ) end [2025-02-04 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399164', 'tblTempVendorCDR_20' ) start [2025-02-04 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399164', 'tblTempVendorCDR_20' ) end [2025-02-04 08:33:18] Production.INFO: ProcessCDR(1,14399164,1,1,2) [2025-02-04 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399164', 'tblTempUsageDetail_20' ) start [2025-02-04 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399164', 'tblTempUsageDetail_20' ) end [2025-02-04 08:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:33:22] Production.INFO: ==1731== Releasing lock... [2025-02-04 08:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:33:22] Production.INFO: 32 MB #Memory Used# [2025-02-04 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:34:05 [end_date_ymd] => 2025-02-04 08:34:05 [RateCDR] => 1 ) [2025-02-04 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:34:05' and `end` < '2025-02-04 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:34:19] Production.INFO: count ==434 [2025-02-04 08:34:19] Production.ERROR: pbx CDR StartTime 2025-02-04 05:34:05 - End Time 2025-02-04 08:34:05 [2025-02-04 08:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399169', 'tblTempUsageDetail_20' ) start [2025-02-04 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399169', 'tblTempUsageDetail_20' ) end [2025-02-04 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399169', 'tblTempVendorCDR_20' ) start [2025-02-04 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399169', 'tblTempVendorCDR_20' ) end [2025-02-04 08:34:19] Production.INFO: ProcessCDR(1,14399169,1,1,2) [2025-02-04 08:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399169', 'tblTempUsageDetail_20' ) start [2025-02-04 08:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399169', 'tblTempUsageDetail_20' ) end [2025-02-04 08:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:34:24] Production.INFO: ==1809== Releasing lock... [2025-02-04 08:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:34:24] Production.INFO: 32 MB #Memory Used# [2025-02-04 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:35:05 [end_date_ymd] => 2025-02-04 08:35:05 [RateCDR] => 1 ) [2025-02-04 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:35:05' and `end` < '2025-02-04 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:35:18] Production.INFO: count ==435 [2025-02-04 08:35:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:35:05 - End Time 2025-02-04 08:35:05 [2025-02-04 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399174', 'tblTempUsageDetail_20' ) start [2025-02-04 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399174', 'tblTempUsageDetail_20' ) end [2025-02-04 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399174', 'tblTempVendorCDR_20' ) start [2025-02-04 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399174', 'tblTempVendorCDR_20' ) end [2025-02-04 08:35:18] Production.INFO: ProcessCDR(1,14399174,1,1,2) [2025-02-04 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399174', 'tblTempUsageDetail_20' ) start [2025-02-04 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399174', 'tblTempUsageDetail_20' ) end [2025-02-04 08:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:35:22] Production.INFO: ==1891== Releasing lock... [2025-02-04 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:35:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-04 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:36:05 [end_date_ymd] => 2025-02-04 08:36:05 [RateCDR] => 1 ) [2025-02-04 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:36:05' and `end` < '2025-02-04 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:36:18] Production.INFO: count ==435 [2025-02-04 08:36:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:36:05 - End Time 2025-02-04 08:36:05 [2025-02-04 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399179', 'tblTempUsageDetail_20' ) start [2025-02-04 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399179', 'tblTempUsageDetail_20' ) end [2025-02-04 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399179', 'tblTempVendorCDR_20' ) start [2025-02-04 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399179', 'tblTempVendorCDR_20' ) end [2025-02-04 08:36:18] Production.INFO: ProcessCDR(1,14399179,1,1,2) [2025-02-04 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399179', 'tblTempUsageDetail_20' ) start [2025-02-04 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399179', 'tblTempUsageDetail_20' ) end [2025-02-04 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:36:22] Production.INFO: ==1972== Releasing lock... [2025-02-04 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:36:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-04 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:37:05 [end_date_ymd] => 2025-02-04 08:37:05 [RateCDR] => 1 ) [2025-02-04 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:37:05' and `end` < '2025-02-04 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:37:18] Production.INFO: count ==441 [2025-02-04 08:37:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:37:05 - End Time 2025-02-04 08:37:05 [2025-02-04 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399184', 'tblTempUsageDetail_20' ) start [2025-02-04 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399184', 'tblTempUsageDetail_20' ) end [2025-02-04 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399184', 'tblTempVendorCDR_20' ) start [2025-02-04 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399184', 'tblTempVendorCDR_20' ) end [2025-02-04 08:37:18] Production.INFO: ProcessCDR(1,14399184,1,1,2) [2025-02-04 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399184', 'tblTempUsageDetail_20' ) start [2025-02-04 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399184', 'tblTempUsageDetail_20' ) end [2025-02-04 08:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:37:23] Production.INFO: ==2051== Releasing lock... [2025-02-04 08:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:37:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-04 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:38:05 [end_date_ymd] => 2025-02-04 08:38:05 [RateCDR] => 1 ) [2025-02-04 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:38:05' and `end` < '2025-02-04 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:38:18] Production.INFO: count ==458 [2025-02-04 08:38:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:38:05 - End Time 2025-02-04 08:38:05 [2025-02-04 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399189', 'tblTempUsageDetail_20' ) start [2025-02-04 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399189', 'tblTempUsageDetail_20' ) end [2025-02-04 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399189', 'tblTempVendorCDR_20' ) start [2025-02-04 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399189', 'tblTempVendorCDR_20' ) end [2025-02-04 08:38:18] Production.INFO: ProcessCDR(1,14399189,1,1,2) [2025-02-04 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399189', 'tblTempUsageDetail_20' ) start [2025-02-04 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399189', 'tblTempUsageDetail_20' ) end [2025-02-04 08:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:38:22] Production.INFO: ==2132== Releasing lock... [2025-02-04 08:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:38:22] Production.INFO: 32 MB #Memory Used# [2025-02-04 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:39:05 [end_date_ymd] => 2025-02-04 08:39:05 [RateCDR] => 1 ) [2025-02-04 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:39:05' and `end` < '2025-02-04 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:39:18] Production.INFO: count ==460 [2025-02-04 08:39:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:39:05 - End Time 2025-02-04 08:39:05 [2025-02-04 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399194', 'tblTempUsageDetail_20' ) start [2025-02-04 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399194', 'tblTempUsageDetail_20' ) end [2025-02-04 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399194', 'tblTempVendorCDR_20' ) start [2025-02-04 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399194', 'tblTempVendorCDR_20' ) end [2025-02-04 08:39:18] Production.INFO: ProcessCDR(1,14399194,1,1,2) [2025-02-04 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399194', 'tblTempUsageDetail_20' ) start [2025-02-04 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399194', 'tblTempUsageDetail_20' ) end [2025-02-04 08:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:39:23] Production.INFO: ==2212== Releasing lock... [2025-02-04 08:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:39:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-04 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:40:06 [end_date_ymd] => 2025-02-04 08:40:06 [RateCDR] => 1 ) [2025-02-04 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-02-04 05:40:06' and `end` < '2025-02-04 08:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:40:19] Production.INFO: count ==466 [2025-02-04 08:40:19] Production.ERROR: pbx CDR StartTime 2025-02-04 05:40:06 - End Time 2025-02-04 08:40:06 [2025-02-04 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399200', 'tblTempUsageDetail_20' ) start [2025-02-04 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399200', 'tblTempUsageDetail_20' ) end [2025-02-04 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399200', 'tblTempVendorCDR_20' ) start [2025-02-04 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399200', 'tblTempVendorCDR_20' ) end [2025-02-04 08:40:19] Production.INFO: ProcessCDR(1,14399200,1,1,2) [2025-02-04 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399200', 'tblTempUsageDetail_20' ) start [2025-02-04 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399200', 'tblTempUsageDetail_20' ) end [2025-02-04 08:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:40:23] Production.INFO: ==2300== Releasing lock... [2025-02-04 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:40:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-04 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:41:05 [end_date_ymd] => 2025-02-04 08:41:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 05:41:05' and `end` < '2025-02-04 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-02-04 08:41:18] Production.INFO: count ==523 [2025-02-04 08:41:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:41:05 - End Time 2025-02-04 08:41:05 [2025-02-04 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399205', 'tblTempUsageDetail_20' ) start [2025-02-04 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399205', 'tblTempUsageDetail_20' ) end [2025-02-04 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399205', 'tblTempVendorCDR_20' ) start [2025-02-04 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399205', 'tblTempVendorCDR_20' ) end [2025-02-04 08:41:18] Production.INFO: ProcessCDR(1,14399205,1,1,2) [2025-02-04 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399205', 'tblTempUsageDetail_20' ) start [2025-02-04 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399205', 'tblTempUsageDetail_20' ) end [2025-02-04 08:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:41:23] Production.INFO: ==2385== Releasing lock... [2025-02-04 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:41:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-04 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:42:05 [end_date_ymd] => 2025-02-04 08:42:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 05:42:05' and `end` < '2025-02-04 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-02-04 08:42:17] Production.INFO: count ==540 [2025-02-04 08:42:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:42:05 - End Time 2025-02-04 08:42:05 [2025-02-04 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399210', 'tblTempUsageDetail_20' ) start [2025-02-04 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399210', 'tblTempUsageDetail_20' ) end [2025-02-04 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399210', 'tblTempVendorCDR_20' ) start [2025-02-04 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399210', 'tblTempVendorCDR_20' ) end [2025-02-04 08:42:18] Production.INFO: ProcessCDR(1,14399210,1,1,2) [2025-02-04 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399210', 'tblTempUsageDetail_20' ) start [2025-02-04 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399210', 'tblTempUsageDetail_20' ) end [2025-02-04 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:42:21] Production.INFO: ==2458== Releasing lock... [2025-02-04 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:42:21] Production.INFO: 33 MB #Memory Used# [2025-02-04 08:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:43:06 [end_date_ymd] => 2025-02-04 08:43:06 [RateCDR] => 1 ) [2025-02-04 08:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:43:06' and `end` < '2025-02-04 08:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:43:19] Production.INFO: count ==551 [2025-02-04 08:43:19] Production.ERROR: pbx CDR StartTime 2025-02-04 05:43:06 - End Time 2025-02-04 08:43:06 [2025-02-04 08:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399215', 'tblTempUsageDetail_20' ) start [2025-02-04 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399215', 'tblTempUsageDetail_20' ) end [2025-02-04 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399215', 'tblTempVendorCDR_20' ) start [2025-02-04 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399215', 'tblTempVendorCDR_20' ) end [2025-02-04 08:43:19] Production.INFO: ProcessCDR(1,14399215,1,1,2) [2025-02-04 08:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399215', 'tblTempUsageDetail_20' ) start [2025-02-04 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399215', 'tblTempUsageDetail_20' ) end [2025-02-04 08:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:43:24] Production.INFO: ==2537== Releasing lock... [2025-02-04 08:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:43:24] Production.INFO: 33 MB #Memory Used# [2025-02-04 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:44:05 [end_date_ymd] => 2025-02-04 08:44:05 [RateCDR] => 1 ) [2025-02-04 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:44:05' and `end` < '2025-02-04 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:44:19] Production.INFO: count ==566 [2025-02-04 08:44:19] Production.ERROR: pbx CDR StartTime 2025-02-04 05:44:05 - End Time 2025-02-04 08:44:05 [2025-02-04 08:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399220', 'tblTempUsageDetail_20' ) start [2025-02-04 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399220', 'tblTempUsageDetail_20' ) end [2025-02-04 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399220', 'tblTempVendorCDR_20' ) start [2025-02-04 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399220', 'tblTempVendorCDR_20' ) end [2025-02-04 08:44:19] Production.INFO: ProcessCDR(1,14399220,1,1,2) [2025-02-04 08:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399220', 'tblTempUsageDetail_20' ) start [2025-02-04 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399220', 'tblTempUsageDetail_20' ) end [2025-02-04 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:44:22] Production.INFO: ==2617== Releasing lock... [2025-02-04 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:44:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-04 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:45:05 [end_date_ymd] => 2025-02-04 08:45:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 05:45:05' and `end` < '2025-02-04 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-02-04 08:45:18] Production.INFO: count ==566 [2025-02-04 08:45:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:45:05 - End Time 2025-02-04 08:45:05 [2025-02-04 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399225', 'tblTempUsageDetail_20' ) start [2025-02-04 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399225', 'tblTempUsageDetail_20' ) end [2025-02-04 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399225', 'tblTempVendorCDR_20' ) start [2025-02-04 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399225', 'tblTempVendorCDR_20' ) end [2025-02-04 08:45:18] Production.INFO: ProcessCDR(1,14399225,1,1,2) [2025-02-04 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399225', 'tblTempUsageDetail_20' ) start [2025-02-04 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399225', 'tblTempUsageDetail_20' ) end [2025-02-04 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:45:21] Production.INFO: ==2698== Releasing lock... [2025-02-04 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:45:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-04 08:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:46:04 [end_date_ymd] => 2025-02-04 08:46:04 [RateCDR] => 1 ) [2025-02-04 08: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-02-04 05:46:04' and `end` < '2025-02-04 08: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-02-04 08:46:18] Production.INFO: count ==583 [2025-02-04 08:46:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:46:04 - End Time 2025-02-04 08:46:04 [2025-02-04 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399230', 'tblTempUsageDetail_20' ) start [2025-02-04 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399230', 'tblTempUsageDetail_20' ) end [2025-02-04 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399230', 'tblTempVendorCDR_20' ) start [2025-02-04 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399230', 'tblTempVendorCDR_20' ) end [2025-02-04 08:46:19] Production.INFO: ProcessCDR(1,14399230,1,1,2) [2025-02-04 08:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399230', 'tblTempUsageDetail_20' ) start [2025-02-04 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399230', 'tblTempUsageDetail_20' ) end [2025-02-04 08:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:46:23] Production.INFO: ==2773== Releasing lock... [2025-02-04 08:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:46:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-04 08:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:47:06 [end_date_ymd] => 2025-02-04 08:47:06 [RateCDR] => 1 ) [2025-02-04 08:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:47:06' and `end` < '2025-02-04 08:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:47:20] Production.INFO: count ==597 [2025-02-04 08:47:20] Production.ERROR: pbx CDR StartTime 2025-02-04 05:47:06 - End Time 2025-02-04 08:47:06 [2025-02-04 08:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399235', 'tblTempUsageDetail_20' ) start [2025-02-04 08:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399235', 'tblTempUsageDetail_20' ) end [2025-02-04 08:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399235', 'tblTempVendorCDR_20' ) start [2025-02-04 08:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399235', 'tblTempVendorCDR_20' ) end [2025-02-04 08:47:20] Production.INFO: ProcessCDR(1,14399235,1,1,2) [2025-02-04 08:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399235', 'tblTempUsageDetail_20' ) start [2025-02-04 08:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399235', 'tblTempUsageDetail_20' ) end [2025-02-04 08:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:47:26] Production.INFO: ==2889== Releasing lock... [2025-02-04 08:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:47:26] Production.INFO: 33 MB #Memory Used# [2025-02-04 08:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:48:06 [end_date_ymd] => 2025-02-04 08:48:06 [RateCDR] => 1 ) [2025-02-04 08:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:48:06' and `end` < '2025-02-04 08:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:48:20] Production.INFO: count ==607 [2025-02-04 08:48:20] Production.ERROR: pbx CDR StartTime 2025-02-04 05:48:06 - End Time 2025-02-04 08:48:06 [2025-02-04 08:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399240', 'tblTempUsageDetail_20' ) start [2025-02-04 08:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399240', 'tblTempUsageDetail_20' ) end [2025-02-04 08:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399240', 'tblTempVendorCDR_20' ) start [2025-02-04 08:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399240', 'tblTempVendorCDR_20' ) end [2025-02-04 08:48:20] Production.INFO: ProcessCDR(1,14399240,1,1,2) [2025-02-04 08:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399240', 'tblTempUsageDetail_20' ) start [2025-02-04 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399240', 'tblTempUsageDetail_20' ) end [2025-02-04 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:48:23] Production.INFO: ==2962== Releasing lock... [2025-02-04 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:48:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-04 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:49:05 [end_date_ymd] => 2025-02-04 08:49:05 [RateCDR] => 1 ) [2025-02-04 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:49:05' and `end` < '2025-02-04 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:49:19] Production.INFO: count ==608 [2025-02-04 08:49:19] Production.ERROR: pbx CDR StartTime 2025-02-04 05:49:05 - End Time 2025-02-04 08:49:05 [2025-02-04 08:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399245', 'tblTempUsageDetail_20' ) start [2025-02-04 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399245', 'tblTempUsageDetail_20' ) end [2025-02-04 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399245', 'tblTempVendorCDR_20' ) start [2025-02-04 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399245', 'tblTempVendorCDR_20' ) end [2025-02-04 08:49:19] Production.INFO: ProcessCDR(1,14399245,1,1,2) [2025-02-04 08:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399245', 'tblTempUsageDetail_20' ) start [2025-02-04 08:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399245', 'tblTempUsageDetail_20' ) end [2025-02-04 08:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:49:24] Production.INFO: ==3035== Releasing lock... [2025-02-04 08:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:49:24] Production.INFO: 33.25 MB #Memory Used# [2025-02-04 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:50:06 [end_date_ymd] => 2025-02-04 08:50:06 [RateCDR] => 1 ) [2025-02-04 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:50:06' and `end` < '2025-02-04 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:50:19] Production.INFO: count ==632 [2025-02-04 08:50:19] Production.ERROR: pbx CDR StartTime 2025-02-04 05:50:06 - End Time 2025-02-04 08:50:06 [2025-02-04 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399250', 'tblTempUsageDetail_20' ) start [2025-02-04 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399250', 'tblTempUsageDetail_20' ) end [2025-02-04 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399250', 'tblTempVendorCDR_20' ) start [2025-02-04 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399250', 'tblTempVendorCDR_20' ) end [2025-02-04 08:50:19] Production.INFO: ProcessCDR(1,14399250,1,1,2) [2025-02-04 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399250', 'tblTempUsageDetail_20' ) start [2025-02-04 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399250', 'tblTempUsageDetail_20' ) end [2025-02-04 08:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:50:24] Production.INFO: ==3112== Releasing lock... [2025-02-04 08:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:50:24] Production.INFO: 33 MB #Memory Used# [2025-02-04 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:51:05 [end_date_ymd] => 2025-02-04 08:51:05 [RateCDR] => 1 ) [2025-02-04 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:51:05' and `end` < '2025-02-04 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:51:18] Production.INFO: count ==675 [2025-02-04 08:51:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:51:05 - End Time 2025-02-04 08:51:05 [2025-02-04 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399256', 'tblTempUsageDetail_20' ) start [2025-02-04 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399256', 'tblTempUsageDetail_20' ) end [2025-02-04 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399256', 'tblTempVendorCDR_20' ) start [2025-02-04 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399256', 'tblTempVendorCDR_20' ) end [2025-02-04 08:51:18] Production.INFO: ProcessCDR(1,14399256,1,1,2) [2025-02-04 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399256', 'tblTempUsageDetail_20' ) start [2025-02-04 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399256', 'tblTempUsageDetail_20' ) end [2025-02-04 08:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:51:23] Production.INFO: ==3187== Releasing lock... [2025-02-04 08:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:51:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-04 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:52:05 [end_date_ymd] => 2025-02-04 08:52:05 [RateCDR] => 1 ) [2025-02-04 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:52:05' and `end` < '2025-02-04 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:52:18] Production.INFO: count ==687 [2025-02-04 08:52:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:52:05 - End Time 2025-02-04 08:52:05 [2025-02-04 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399261', 'tblTempUsageDetail_20' ) start [2025-02-04 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399261', 'tblTempUsageDetail_20' ) end [2025-02-04 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399261', 'tblTempVendorCDR_20' ) start [2025-02-04 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399261', 'tblTempVendorCDR_20' ) end [2025-02-04 08:52:18] Production.INFO: ProcessCDR(1,14399261,1,1,2) [2025-02-04 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399261', 'tblTempUsageDetail_20' ) start [2025-02-04 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399261', 'tblTempUsageDetail_20' ) end [2025-02-04 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:52:22] Production.INFO: ==3259== Releasing lock... [2025-02-04 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:52:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-04 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:53:05 [end_date_ymd] => 2025-02-04 08:53:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 05:53:05' and `end` < '2025-02-04 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-02-04 08:53:18] Production.INFO: count ==701 [2025-02-04 08:53:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:53:05 - End Time 2025-02-04 08:53:05 [2025-02-04 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399266', 'tblTempUsageDetail_20' ) start [2025-02-04 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399266', 'tblTempUsageDetail_20' ) end [2025-02-04 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399266', 'tblTempVendorCDR_20' ) start [2025-02-04 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399266', 'tblTempVendorCDR_20' ) end [2025-02-04 08:53:18] Production.INFO: ProcessCDR(1,14399266,1,1,2) [2025-02-04 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399266', 'tblTempUsageDetail_20' ) start [2025-02-04 08:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399266', 'tblTempUsageDetail_20' ) end [2025-02-04 08:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:53:24] Production.INFO: ==3333== Releasing lock... [2025-02-04 08:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:53:24] Production.INFO: 33.75 MB #Memory Used# [2025-02-04 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:54:05 [end_date_ymd] => 2025-02-04 08:54:05 [RateCDR] => 1 ) [2025-02-04 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:54:05' and `end` < '2025-02-04 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:54:18] Production.INFO: count ==715 [2025-02-04 08:54:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:54:05 - End Time 2025-02-04 08:54:05 [2025-02-04 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399271', 'tblTempUsageDetail_20' ) start [2025-02-04 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399271', 'tblTempUsageDetail_20' ) end [2025-02-04 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399271', 'tblTempVendorCDR_20' ) start [2025-02-04 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399271', 'tblTempVendorCDR_20' ) end [2025-02-04 08:54:18] Production.INFO: ProcessCDR(1,14399271,1,1,2) [2025-02-04 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399271', 'tblTempUsageDetail_20' ) start [2025-02-04 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399271', 'tblTempUsageDetail_20' ) end [2025-02-04 08:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:54:23] Production.INFO: ==3410== Releasing lock... [2025-02-04 08:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:54:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-04 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:55:05 [end_date_ymd] => 2025-02-04 08:55:05 [RateCDR] => 1 ) [2025-02-04 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:55:05' and `end` < '2025-02-04 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:55:18] Production.INFO: count ==735 [2025-02-04 08:55:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:55:05 - End Time 2025-02-04 08:55:05 [2025-02-04 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399276', 'tblTempUsageDetail_20' ) start [2025-02-04 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399276', 'tblTempUsageDetail_20' ) end [2025-02-04 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399276', 'tblTempVendorCDR_20' ) start [2025-02-04 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399276', 'tblTempVendorCDR_20' ) end [2025-02-04 08:55:18] Production.INFO: ProcessCDR(1,14399276,1,1,2) [2025-02-04 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399276', 'tblTempUsageDetail_20' ) start [2025-02-04 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399276', 'tblTempUsageDetail_20' ) end [2025-02-04 08:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:55:23] Production.INFO: ==3481== Releasing lock... [2025-02-04 08:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:55:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-04 08:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:56:06 [end_date_ymd] => 2025-02-04 08:56:06 [RateCDR] => 1 ) [2025-02-04 08:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:56:06' and `end` < '2025-02-04 08:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:56:19] Production.INFO: count ==746 [2025-02-04 08:56:19] Production.ERROR: pbx CDR StartTime 2025-02-04 05:56:06 - End Time 2025-02-04 08:56:06 [2025-02-04 08:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399281', 'tblTempUsageDetail_20' ) start [2025-02-04 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399281', 'tblTempUsageDetail_20' ) end [2025-02-04 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399281', 'tblTempVendorCDR_20' ) start [2025-02-04 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399281', 'tblTempVendorCDR_20' ) end [2025-02-04 08:56:19] Production.INFO: ProcessCDR(1,14399281,1,1,2) [2025-02-04 08:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399281', 'tblTempUsageDetail_20' ) start [2025-02-04 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399281', 'tblTempUsageDetail_20' ) end [2025-02-04 08:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:56:24] Production.INFO: ==3559== Releasing lock... [2025-02-04 08:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:56:24] Production.INFO: 33.75 MB #Memory Used# [2025-02-04 08:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:57:06 [end_date_ymd] => 2025-02-04 08:57:06 [RateCDR] => 1 ) [2025-02-04 08:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:57:06' and `end` < '2025-02-04 08:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:57:20] Production.INFO: count ==782 [2025-02-04 08:57:20] Production.ERROR: pbx CDR StartTime 2025-02-04 05:57:06 - End Time 2025-02-04 08:57:06 [2025-02-04 08:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399286', 'tblTempUsageDetail_20' ) start [2025-02-04 08:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399286', 'tblTempUsageDetail_20' ) end [2025-02-04 08:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399286', 'tblTempVendorCDR_20' ) start [2025-02-04 08:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399286', 'tblTempVendorCDR_20' ) end [2025-02-04 08:57:20] Production.INFO: ProcessCDR(1,14399286,1,1,2) [2025-02-04 08:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399286', 'tblTempUsageDetail_20' ) start [2025-02-04 08:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399286', 'tblTempUsageDetail_20' ) end [2025-02-04 08:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:57:24] Production.INFO: ==3629== Releasing lock... [2025-02-04 08:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:57:24] Production.INFO: 34 MB #Memory Used# [2025-02-04 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:58:05 [end_date_ymd] => 2025-02-04 08:58:05 [RateCDR] => 1 ) [2025-02-04 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:58:05' and `end` < '2025-02-04 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:58:18] Production.INFO: count ==800 [2025-02-04 08:58:18] Production.ERROR: pbx CDR StartTime 2025-02-04 05:58:05 - End Time 2025-02-04 08:58:05 [2025-02-04 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399291', 'tblTempUsageDetail_20' ) start [2025-02-04 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399291', 'tblTempUsageDetail_20' ) end [2025-02-04 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399291', 'tblTempVendorCDR_20' ) start [2025-02-04 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399291', 'tblTempVendorCDR_20' ) end [2025-02-04 08:58:18] Production.INFO: ProcessCDR(1,14399291,1,1,2) [2025-02-04 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399291', 'tblTempUsageDetail_20' ) start [2025-02-04 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399291', 'tblTempUsageDetail_20' ) end [2025-02-04 08:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:58:23] Production.INFO: ==3699== Releasing lock... [2025-02-04 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:58:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 08:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 05:59:06 [end_date_ymd] => 2025-02-04 08:59:06 [RateCDR] => 1 ) [2025-02-04 08:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 05:59:06' and `end` < '2025-02-04 08:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 08:59:18] Production.INFO: count ==850 [2025-02-04 08:59:19] Production.ERROR: pbx CDR StartTime 2025-02-04 05:59:06 - End Time 2025-02-04 08:59:06 [2025-02-04 08:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399296', 'tblTempUsageDetail_20' ) start [2025-02-04 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399296', 'tblTempUsageDetail_20' ) end [2025-02-04 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399296', 'tblTempVendorCDR_20' ) start [2025-02-04 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399296', 'tblTempVendorCDR_20' ) end [2025-02-04 08:59:19] Production.INFO: ProcessCDR(1,14399296,1,1,2) [2025-02-04 08:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399296', 'tblTempUsageDetail_20' ) start [2025-02-04 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399296', 'tblTempUsageDetail_20' ) end [2025-02-04 08:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 08:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 08:59:22] Production.INFO: ==3774== Releasing lock... [2025-02-04 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 08:59:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-04 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:00:05 [end_date_ymd] => 2025-02-04 09:00:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 06:00:05' and `end` < '2025-02-04 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-02-04 09:00:18] Production.INFO: count ==855 [2025-02-04 09:00:18] Production.ERROR: pbx CDR StartTime 2025-02-04 06:00:05 - End Time 2025-02-04 09:00:05 [2025-02-04 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399301', 'tblTempUsageDetail_20' ) start [2025-02-04 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399301', 'tblTempUsageDetail_20' ) end [2025-02-04 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399301', 'tblTempVendorCDR_20' ) start [2025-02-04 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399301', 'tblTempVendorCDR_20' ) end [2025-02-04 09:00:18] Production.INFO: ProcessCDR(1,14399301,1,1,2) [2025-02-04 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399301', 'tblTempUsageDetail_20' ) start [2025-02-04 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399301', 'tblTempUsageDetail_20' ) end [2025-02-04 09:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:00:23] Production.INFO: ==3854== Releasing lock... [2025-02-04 09:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:00:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-04 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:01:05 [end_date_ymd] => 2025-02-04 09:01:05 [RateCDR] => 1 ) [2025-02-04 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:01:05' and `end` < '2025-02-04 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:01:18] Production.INFO: count ==886 [2025-02-04 09:01:18] Production.ERROR: pbx CDR StartTime 2025-02-04 06:01:05 - End Time 2025-02-04 09:01:05 [2025-02-04 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399307', 'tblTempUsageDetail_20' ) start [2025-02-04 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399307', 'tblTempUsageDetail_20' ) end [2025-02-04 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399307', 'tblTempVendorCDR_20' ) start [2025-02-04 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399307', 'tblTempVendorCDR_20' ) end [2025-02-04 09:01:18] Production.INFO: ProcessCDR(1,14399307,1,1,2) [2025-02-04 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399307', 'tblTempUsageDetail_20' ) start [2025-02-04 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399307', 'tblTempUsageDetail_20' ) end [2025-02-04 09:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:01:22] Production.INFO: ==3940== Releasing lock... [2025-02-04 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:01:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-04 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:02:05 [end_date_ymd] => 2025-02-04 09:02:05 [RateCDR] => 1 ) [2025-02-04 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:02:05' and `end` < '2025-02-04 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:02:18] Production.INFO: count ==891 [2025-02-04 09:02:18] Production.ERROR: pbx CDR StartTime 2025-02-04 06:02:05 - End Time 2025-02-04 09:02:05 [2025-02-04 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399312', 'tblTempUsageDetail_20' ) start [2025-02-04 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399312', 'tblTempUsageDetail_20' ) end [2025-02-04 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399312', 'tblTempVendorCDR_20' ) start [2025-02-04 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399312', 'tblTempVendorCDR_20' ) end [2025-02-04 09:02:18] Production.INFO: ProcessCDR(1,14399312,1,1,2) [2025-02-04 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399312', 'tblTempUsageDetail_20' ) start [2025-02-04 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399312', 'tblTempUsageDetail_20' ) end [2025-02-04 09:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:02:21] Production.INFO: ==4053== Releasing lock... [2025-02-04 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:02:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-04 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:03:05 [end_date_ymd] => 2025-02-04 09:03:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 06:03:05' and `end` < '2025-02-04 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-02-04 09:03:18] Production.INFO: count ==892 [2025-02-04 09:03:18] Production.ERROR: pbx CDR StartTime 2025-02-04 06:03:05 - End Time 2025-02-04 09:03:05 [2025-02-04 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399317', 'tblTempUsageDetail_20' ) start [2025-02-04 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399317', 'tblTempUsageDetail_20' ) end [2025-02-04 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399317', 'tblTempVendorCDR_20' ) start [2025-02-04 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399317', 'tblTempVendorCDR_20' ) end [2025-02-04 09:03:18] Production.INFO: ProcessCDR(1,14399317,1,1,2) [2025-02-04 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399317', 'tblTempUsageDetail_20' ) start [2025-02-04 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399317', 'tblTempUsageDetail_20' ) end [2025-02-04 09:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:03:23] Production.INFO: ==4130== Releasing lock... [2025-02-04 09:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:03:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-04 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:04:06 [end_date_ymd] => 2025-02-04 09:04:06 [RateCDR] => 1 ) [2025-02-04 09:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:04:06' and `end` < '2025-02-04 09:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:04:19] Production.INFO: count ==904 [2025-02-04 09:04:19] Production.ERROR: pbx CDR StartTime 2025-02-04 06:04:06 - End Time 2025-02-04 09:04:06 [2025-02-04 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399322', 'tblTempUsageDetail_20' ) start [2025-02-04 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399322', 'tblTempUsageDetail_20' ) end [2025-02-04 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399322', 'tblTempVendorCDR_20' ) start [2025-02-04 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399322', 'tblTempVendorCDR_20' ) end [2025-02-04 09:04:19] Production.INFO: ProcessCDR(1,14399322,1,1,2) [2025-02-04 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399322', 'tblTempUsageDetail_20' ) start [2025-02-04 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399322', 'tblTempUsageDetail_20' ) end [2025-02-04 09:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:04:24] Production.INFO: ==4201== Releasing lock... [2025-02-04 09:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:04:24] Production.INFO: 35 MB #Memory Used# [2025-02-04 09:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:05:06 [end_date_ymd] => 2025-02-04 09:05:06 [RateCDR] => 1 ) [2025-02-04 09:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:05:06' and `end` < '2025-02-04 09:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:05:18] Production.INFO: count ==907 [2025-02-04 09:05:19] Production.ERROR: pbx CDR StartTime 2025-02-04 06:05:06 - End Time 2025-02-04 09:05:06 [2025-02-04 09:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399327', 'tblTempUsageDetail_20' ) start [2025-02-04 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399327', 'tblTempUsageDetail_20' ) end [2025-02-04 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399327', 'tblTempVendorCDR_20' ) start [2025-02-04 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399327', 'tblTempVendorCDR_20' ) end [2025-02-04 09:05:19] Production.INFO: ProcessCDR(1,14399327,1,1,2) [2025-02-04 09:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399327', 'tblTempUsageDetail_20' ) start [2025-02-04 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399327', 'tblTempUsageDetail_20' ) end [2025-02-04 09:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:05:24] Production.INFO: ==4273== Releasing lock... [2025-02-04 09:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:05:24] Production.INFO: 34.75 MB #Memory Used# [2025-02-04 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:06:06 [end_date_ymd] => 2025-02-04 09:06:06 [RateCDR] => 1 ) [2025-02-04 09:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:06:06' and `end` < '2025-02-04 09:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:06:19] Production.INFO: count ==909 [2025-02-04 09:06:19] Production.ERROR: pbx CDR StartTime 2025-02-04 06:06:06 - End Time 2025-02-04 09:06:06 [2025-02-04 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399332', 'tblTempUsageDetail_20' ) start [2025-02-04 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399332', 'tblTempUsageDetail_20' ) end [2025-02-04 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399332', 'tblTempVendorCDR_20' ) start [2025-02-04 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399332', 'tblTempVendorCDR_20' ) end [2025-02-04 09:06:19] Production.INFO: ProcessCDR(1,14399332,1,1,2) [2025-02-04 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399332', 'tblTempUsageDetail_20' ) start [2025-02-04 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399332', 'tblTempUsageDetail_20' ) end [2025-02-04 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:06:23] Production.INFO: ==4348== Releasing lock... [2025-02-04 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:06:23] Production.INFO: 35 MB #Memory Used# [2025-02-04 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:07:05 [end_date_ymd] => 2025-02-04 09:07:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 06:07:05' and `end` < '2025-02-04 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-02-04 09:07:18] Production.INFO: count ==912 [2025-02-04 09:07:18] Production.ERROR: pbx CDR StartTime 2025-02-04 06:07:05 - End Time 2025-02-04 09:07:05 [2025-02-04 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399337', 'tblTempUsageDetail_20' ) start [2025-02-04 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399337', 'tblTempUsageDetail_20' ) end [2025-02-04 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399337', 'tblTempVendorCDR_20' ) start [2025-02-04 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399337', 'tblTempVendorCDR_20' ) end [2025-02-04 09:07:18] Production.INFO: ProcessCDR(1,14399337,1,1,2) [2025-02-04 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399337', 'tblTempUsageDetail_20' ) start [2025-02-04 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399337', 'tblTempUsageDetail_20' ) end [2025-02-04 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:07:23] Production.INFO: ==4426== Releasing lock... [2025-02-04 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:07:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-04 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:08:05 [end_date_ymd] => 2025-02-04 09:08:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 06:08:05' and `end` < '2025-02-04 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-02-04 09:08:19] Production.INFO: count ==915 [2025-02-04 09:08:19] Production.ERROR: pbx CDR StartTime 2025-02-04 06:08:05 - End Time 2025-02-04 09:08:05 [2025-02-04 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399342', 'tblTempUsageDetail_20' ) start [2025-02-04 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399342', 'tblTempUsageDetail_20' ) end [2025-02-04 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399342', 'tblTempVendorCDR_20' ) start [2025-02-04 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399342', 'tblTempVendorCDR_20' ) end [2025-02-04 09:08:19] Production.INFO: ProcessCDR(1,14399342,1,1,2) [2025-02-04 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399342', 'tblTempUsageDetail_20' ) start [2025-02-04 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399342', 'tblTempUsageDetail_20' ) end [2025-02-04 09:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:08:24] Production.INFO: ==4499== Releasing lock... [2025-02-04 09:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:08:24] Production.INFO: 34.75 MB #Memory Used# [2025-02-04 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:09:05 [end_date_ymd] => 2025-02-04 09:09:05 [RateCDR] => 1 ) [2025-02-04 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:09:05' and `end` < '2025-02-04 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:09:19] Production.INFO: count ==920 [2025-02-04 09:09:19] Production.ERROR: pbx CDR StartTime 2025-02-04 06:09:05 - End Time 2025-02-04 09:09:05 [2025-02-04 09:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399347', 'tblTempUsageDetail_20' ) start [2025-02-04 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399347', 'tblTempUsageDetail_20' ) end [2025-02-04 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399347', 'tblTempVendorCDR_20' ) start [2025-02-04 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399347', 'tblTempVendorCDR_20' ) end [2025-02-04 09:09:19] Production.INFO: ProcessCDR(1,14399347,1,1,2) [2025-02-04 09:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399347', 'tblTempUsageDetail_20' ) start [2025-02-04 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399347', 'tblTempUsageDetail_20' ) end [2025-02-04 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:09:23] Production.INFO: ==4572== Releasing lock... [2025-02-04 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:09:23] Production.INFO: 35 MB #Memory Used# [2025-02-04 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:10:06 [end_date_ymd] => 2025-02-04 09:10:06 [RateCDR] => 1 ) [2025-02-04 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:10:06' and `end` < '2025-02-04 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:10:19] Production.INFO: count ==931 [2025-02-04 09:10:19] Production.ERROR: pbx CDR StartTime 2025-02-04 06:10:06 - End Time 2025-02-04 09:10:06 [2025-02-04 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399353', 'tblTempUsageDetail_20' ) start [2025-02-04 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399353', 'tblTempUsageDetail_20' ) end [2025-02-04 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399353', 'tblTempVendorCDR_20' ) start [2025-02-04 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399353', 'tblTempVendorCDR_20' ) end [2025-02-04 09:10:19] Production.INFO: ProcessCDR(1,14399353,1,1,2) [2025-02-04 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399353', 'tblTempUsageDetail_20' ) start [2025-02-04 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399353', 'tblTempUsageDetail_20' ) end [2025-02-04 09:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:10:24] Production.INFO: ==4653== Releasing lock... [2025-02-04 09:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:10:24] Production.INFO: 35.5 MB #Memory Used# [2025-02-04 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:11:05 [end_date_ymd] => 2025-02-04 09:11:05 [RateCDR] => 1 ) [2025-02-04 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:11:05' and `end` < '2025-02-04 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:11:18] Production.INFO: count ==992 [2025-02-04 09:11:18] Production.ERROR: pbx CDR StartTime 2025-02-04 06:11:05 - End Time 2025-02-04 09:11:05 [2025-02-04 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399358', 'tblTempUsageDetail_20' ) start [2025-02-04 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399358', 'tblTempUsageDetail_20' ) end [2025-02-04 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399358', 'tblTempVendorCDR_20' ) start [2025-02-04 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399358', 'tblTempVendorCDR_20' ) end [2025-02-04 09:11:18] Production.INFO: ProcessCDR(1,14399358,1,1,2) [2025-02-04 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399358', 'tblTempUsageDetail_20' ) start [2025-02-04 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399358', 'tblTempUsageDetail_20' ) end [2025-02-04 09:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:11:21] Production.INFO: ==4726== Releasing lock... [2025-02-04 09:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:11:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-04 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:12:05 [end_date_ymd] => 2025-02-04 09:12:05 [RateCDR] => 1 ) [2025-02-04 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:12:05' and `end` < '2025-02-04 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:12:18] Production.INFO: count ==1003 [2025-02-04 09:12:19] Production.ERROR: pbx CDR StartTime 2025-02-04 06:12:05 - End Time 2025-02-04 09:12:05 [2025-02-04 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399363', 'tblTempUsageDetail_20' ) start [2025-02-04 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399363', 'tblTempUsageDetail_20' ) end [2025-02-04 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399363', 'tblTempVendorCDR_20' ) start [2025-02-04 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399363', 'tblTempVendorCDR_20' ) end [2025-02-04 09:12:19] Production.INFO: ProcessCDR(1,14399363,1,1,2) [2025-02-04 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399363', 'tblTempUsageDetail_20' ) start [2025-02-04 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399363', 'tblTempUsageDetail_20' ) end [2025-02-04 09:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:12:23] Production.INFO: ==4797== Releasing lock... [2025-02-04 09:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:12:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-04 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:13:05 [end_date_ymd] => 2025-02-04 09:13:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 06:13:05' and `end` < '2025-02-04 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-02-04 09:13:18] Production.INFO: count ==1014 [2025-02-04 09:13:18] Production.ERROR: pbx CDR StartTime 2025-02-04 06:13:05 - End Time 2025-02-04 09:13:05 [2025-02-04 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399368', 'tblTempUsageDetail_20' ) start [2025-02-04 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399368', 'tblTempUsageDetail_20' ) end [2025-02-04 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399368', 'tblTempVendorCDR_20' ) start [2025-02-04 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399368', 'tblTempVendorCDR_20' ) end [2025-02-04 09:13:18] Production.INFO: ProcessCDR(1,14399368,1,1,2) [2025-02-04 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399368', 'tblTempUsageDetail_20' ) start [2025-02-04 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399368', 'tblTempUsageDetail_20' ) end [2025-02-04 09:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:13:23] Production.INFO: ==4869== Releasing lock... [2025-02-04 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:13:23] Production.INFO: 36 MB #Memory Used# [2025-02-04 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:14:05 [end_date_ymd] => 2025-02-04 09:14:05 [RateCDR] => 1 ) [2025-02-04 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:14:05' and `end` < '2025-02-04 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:14:18] Production.INFO: count ==1068 [2025-02-04 09:14:19] Production.ERROR: pbx CDR StartTime 2025-02-04 06:14:05 - End Time 2025-02-04 09:14:05 [2025-02-04 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399373', 'tblTempUsageDetail_20' ) start [2025-02-04 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399373', 'tblTempUsageDetail_20' ) end [2025-02-04 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399373', 'tblTempVendorCDR_20' ) start [2025-02-04 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399373', 'tblTempVendorCDR_20' ) end [2025-02-04 09:14:19] Production.INFO: ProcessCDR(1,14399373,1,1,2) [2025-02-04 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399373', 'tblTempUsageDetail_20' ) start [2025-02-04 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399373', 'tblTempUsageDetail_20' ) end [2025-02-04 09:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:14:24] Production.INFO: ==4942== Releasing lock... [2025-02-04 09:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:14:24] Production.INFO: 36.25 MB #Memory Used# [2025-02-04 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:15:05 [end_date_ymd] => 2025-02-04 09:15:05 [RateCDR] => 1 ) [2025-02-04 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:15:05' and `end` < '2025-02-04 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:15:18] Production.INFO: count ==1094 [2025-02-04 09:15:19] Production.ERROR: pbx CDR StartTime 2025-02-04 06:15:05 - End Time 2025-02-04 09:15:05 [2025-02-04 09:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399378', 'tblTempUsageDetail_20' ) start [2025-02-04 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399378', 'tblTempUsageDetail_20' ) end [2025-02-04 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399378', 'tblTempVendorCDR_20' ) start [2025-02-04 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399378', 'tblTempVendorCDR_20' ) end [2025-02-04 09:15:19] Production.INFO: ProcessCDR(1,14399378,1,1,2) [2025-02-04 09:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399378', 'tblTempUsageDetail_20' ) start [2025-02-04 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399378', 'tblTempUsageDetail_20' ) end [2025-02-04 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:15:23] Production.INFO: ==5014== Releasing lock... [2025-02-04 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:15:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-04 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:16:05 [end_date_ymd] => 2025-02-04 09:16:05 [RateCDR] => 1 ) [2025-02-04 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:16:05' and `end` < '2025-02-04 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:16:18] Production.INFO: count ==1110 [2025-02-04 09:16:19] Production.ERROR: pbx CDR StartTime 2025-02-04 06:16:05 - End Time 2025-02-04 09:16:05 [2025-02-04 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399383', 'tblTempUsageDetail_20' ) start [2025-02-04 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399383', 'tblTempUsageDetail_20' ) end [2025-02-04 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399383', 'tblTempVendorCDR_20' ) start [2025-02-04 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399383', 'tblTempVendorCDR_20' ) end [2025-02-04 09:16:19] Production.INFO: ProcessCDR(1,14399383,1,1,2) [2025-02-04 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399383', 'tblTempUsageDetail_20' ) start [2025-02-04 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399383', 'tblTempUsageDetail_20' ) end [2025-02-04 09:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:16:23] Production.INFO: ==5084== Releasing lock... [2025-02-04 09:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:16:23] Production.INFO: 37 MB #Memory Used# [2025-02-04 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:17:05 [end_date_ymd] => 2025-02-04 09:17:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 06:17:05' and `end` < '2025-02-04 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-02-04 09:17:18] Production.INFO: count ==1117 [2025-02-04 09:17:19] Production.ERROR: pbx CDR StartTime 2025-02-04 06:17:05 - End Time 2025-02-04 09:17:05 [2025-02-04 09:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399388', 'tblTempUsageDetail_20' ) start [2025-02-04 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399388', 'tblTempUsageDetail_20' ) end [2025-02-04 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399388', 'tblTempVendorCDR_20' ) start [2025-02-04 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399388', 'tblTempVendorCDR_20' ) end [2025-02-04 09:17:19] Production.INFO: ProcessCDR(1,14399388,1,1,2) [2025-02-04 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399388', 'tblTempUsageDetail_20' ) start [2025-02-04 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399388', 'tblTempUsageDetail_20' ) end [2025-02-04 09:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:17:23] Production.INFO: ==5156== Releasing lock... [2025-02-04 09:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:17:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-04 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:18:05 [end_date_ymd] => 2025-02-04 09:18:05 [RateCDR] => 1 ) [2025-02-04 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:18:05' and `end` < '2025-02-04 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:18:18] Production.INFO: count ==1127 [2025-02-04 09:18:18] Production.ERROR: pbx CDR StartTime 2025-02-04 06:18:05 - End Time 2025-02-04 09:18:05 [2025-02-04 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399393', 'tblTempUsageDetail_20' ) start [2025-02-04 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399393', 'tblTempUsageDetail_20' ) end [2025-02-04 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399393', 'tblTempVendorCDR_20' ) start [2025-02-04 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399393', 'tblTempVendorCDR_20' ) end [2025-02-04 09:18:18] Production.INFO: ProcessCDR(1,14399393,1,1,2) [2025-02-04 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399393', 'tblTempUsageDetail_20' ) start [2025-02-04 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399393', 'tblTempUsageDetail_20' ) end [2025-02-04 09:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:18:23] Production.INFO: ==5270== Releasing lock... [2025-02-04 09:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:18:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-04 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:19:05 [end_date_ymd] => 2025-02-04 09:19:05 [RateCDR] => 1 ) [2025-02-04 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:19:05' and `end` < '2025-02-04 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:19:18] Production.INFO: count ==1133 [2025-02-04 09:19:19] Production.ERROR: pbx CDR StartTime 2025-02-04 06:19:05 - End Time 2025-02-04 09:19:05 [2025-02-04 09:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399398', 'tblTempUsageDetail_20' ) start [2025-02-04 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399398', 'tblTempUsageDetail_20' ) end [2025-02-04 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399398', 'tblTempVendorCDR_20' ) start [2025-02-04 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399398', 'tblTempVendorCDR_20' ) end [2025-02-04 09:19:19] Production.INFO: ProcessCDR(1,14399398,1,1,2) [2025-02-04 09:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399398', 'tblTempUsageDetail_20' ) start [2025-02-04 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399398', 'tblTempUsageDetail_20' ) end [2025-02-04 09:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:19:24] Production.INFO: ==5342== Releasing lock... [2025-02-04 09:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:19:24] Production.INFO: 36.5 MB #Memory Used# [2025-02-04 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:20:06 [end_date_ymd] => 2025-02-04 09:20:06 [RateCDR] => 1 ) [2025-02-04 09:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:20:06' and `end` < '2025-02-04 09:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:20:19] Production.INFO: count ==1149 [2025-02-04 09:20:20] Production.ERROR: pbx CDR StartTime 2025-02-04 06:20:06 - End Time 2025-02-04 09:20:06 [2025-02-04 09:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399404', 'tblTempUsageDetail_20' ) start [2025-02-04 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399404', 'tblTempUsageDetail_20' ) end [2025-02-04 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399404', 'tblTempVendorCDR_20' ) start [2025-02-04 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399404', 'tblTempVendorCDR_20' ) end [2025-02-04 09:20:20] Production.INFO: ProcessCDR(1,14399404,1,1,2) [2025-02-04 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399404', 'tblTempUsageDetail_20' ) start [2025-02-04 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399404', 'tblTempUsageDetail_20' ) end [2025-02-04 09:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:20:25] Production.INFO: ==5417== Releasing lock... [2025-02-04 09:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:20:25] Production.INFO: 37 MB #Memory Used# [2025-02-04 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:21:05 [end_date_ymd] => 2025-02-04 09:21:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 06:21:05' and `end` < '2025-02-04 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-02-04 09:21:18] Production.INFO: count ==1197 [2025-02-04 09:21:19] Production.ERROR: pbx CDR StartTime 2025-02-04 06:21:05 - End Time 2025-02-04 09:21:05 [2025-02-04 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399409', 'tblTempUsageDetail_20' ) start [2025-02-04 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399409', 'tblTempUsageDetail_20' ) end [2025-02-04 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399409', 'tblTempVendorCDR_20' ) start [2025-02-04 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399409', 'tblTempVendorCDR_20' ) end [2025-02-04 09:21:19] Production.INFO: ProcessCDR(1,14399409,1,1,2) [2025-02-04 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399409', 'tblTempUsageDetail_20' ) start [2025-02-04 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399409', 'tblTempUsageDetail_20' ) end [2025-02-04 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:21:23] Production.INFO: ==5489== Releasing lock... [2025-02-04 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:21:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-04 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:22:06 [end_date_ymd] => 2025-02-04 09:22:06 [RateCDR] => 1 ) [2025-02-04 09:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:22:06' and `end` < '2025-02-04 09:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:22:19] Production.INFO: count ==1200 [2025-02-04 09:22:19] Production.ERROR: pbx CDR StartTime 2025-02-04 06:22:06 - End Time 2025-02-04 09:22:06 [2025-02-04 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399414', 'tblTempUsageDetail_20' ) start [2025-02-04 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399414', 'tblTempUsageDetail_20' ) end [2025-02-04 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399414', 'tblTempVendorCDR_20' ) start [2025-02-04 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399414', 'tblTempVendorCDR_20' ) end [2025-02-04 09:22:19] Production.INFO: ProcessCDR(1,14399414,1,1,2) [2025-02-04 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399414', 'tblTempUsageDetail_20' ) start [2025-02-04 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399414', 'tblTempUsageDetail_20' ) end [2025-02-04 09:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:22:22] Production.INFO: ==5560== Releasing lock... [2025-02-04 09:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:22:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-04 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:23:05 [end_date_ymd] => 2025-02-04 09:23:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 06:23:05' and `end` < '2025-02-04 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-02-04 09:23:18] Production.INFO: count ==1207 [2025-02-04 09:23:18] Production.ERROR: pbx CDR StartTime 2025-02-04 06:23:05 - End Time 2025-02-04 09:23:05 [2025-02-04 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399419', 'tblTempUsageDetail_20' ) start [2025-02-04 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399419', 'tblTempUsageDetail_20' ) end [2025-02-04 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399419', 'tblTempVendorCDR_20' ) start [2025-02-04 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399419', 'tblTempVendorCDR_20' ) end [2025-02-04 09:23:18] Production.INFO: ProcessCDR(1,14399419,1,1,2) [2025-02-04 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399419', 'tblTempUsageDetail_20' ) start [2025-02-04 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399419', 'tblTempUsageDetail_20' ) end [2025-02-04 09:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:23:23] Production.INFO: ==5630== Releasing lock... [2025-02-04 09:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:23:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-04 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:24:05 [end_date_ymd] => 2025-02-04 09:24:05 [RateCDR] => 1 ) [2025-02-04 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:24:05' and `end` < '2025-02-04 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:24:18] Production.INFO: count ==1214 [2025-02-04 09:24:18] Production.ERROR: pbx CDR StartTime 2025-02-04 06:24:05 - End Time 2025-02-04 09:24:05 [2025-02-04 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399424', 'tblTempUsageDetail_20' ) start [2025-02-04 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399424', 'tblTempUsageDetail_20' ) end [2025-02-04 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399424', 'tblTempVendorCDR_20' ) start [2025-02-04 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399424', 'tblTempVendorCDR_20' ) end [2025-02-04 09:24:18] Production.INFO: ProcessCDR(1,14399424,1,1,2) [2025-02-04 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399424', 'tblTempUsageDetail_20' ) start [2025-02-04 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399424', 'tblTempUsageDetail_20' ) end [2025-02-04 09:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:24:23] Production.INFO: ==5702== Releasing lock... [2025-02-04 09:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:24:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-04 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:25:05 [end_date_ymd] => 2025-02-04 09:25:05 [RateCDR] => 1 ) [2025-02-04 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:25:05' and `end` < '2025-02-04 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:25:18] Production.INFO: count ==1215 [2025-02-04 09:25:18] Production.ERROR: pbx CDR StartTime 2025-02-04 06:25:05 - End Time 2025-02-04 09:25:05 [2025-02-04 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399429', 'tblTempUsageDetail_20' ) start [2025-02-04 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399429', 'tblTempUsageDetail_20' ) end [2025-02-04 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399429', 'tblTempVendorCDR_20' ) start [2025-02-04 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399429', 'tblTempVendorCDR_20' ) end [2025-02-04 09:25:18] Production.INFO: ProcessCDR(1,14399429,1,1,2) [2025-02-04 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399429', 'tblTempUsageDetail_20' ) start [2025-02-04 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399429', 'tblTempUsageDetail_20' ) end [2025-02-04 09:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:25:23] Production.INFO: ==5771== Releasing lock... [2025-02-04 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:25:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-04 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:26:05 [end_date_ymd] => 2025-02-04 09:26:05 [RateCDR] => 1 ) [2025-02-04 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:26:05' and `end` < '2025-02-04 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:26:18] Production.INFO: count ==1232 [2025-02-04 09:26:19] Production.ERROR: pbx CDR StartTime 2025-02-04 06:26:05 - End Time 2025-02-04 09:26:05 [2025-02-04 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399434', 'tblTempUsageDetail_20' ) start [2025-02-04 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399434', 'tblTempUsageDetail_20' ) end [2025-02-04 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399434', 'tblTempVendorCDR_20' ) start [2025-02-04 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399434', 'tblTempVendorCDR_20' ) end [2025-02-04 09:26:19] Production.INFO: ProcessCDR(1,14399434,1,1,2) [2025-02-04 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399434', 'tblTempUsageDetail_20' ) start [2025-02-04 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399434', 'tblTempUsageDetail_20' ) end [2025-02-04 09:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:26:23] Production.INFO: ==5847== Releasing lock... [2025-02-04 09:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:26:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-04 09:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:27:06 [end_date_ymd] => 2025-02-04 09:27:06 [RateCDR] => 1 ) [2025-02-04 09:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:27:06' and `end` < '2025-02-04 09:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:27:20] Production.INFO: count ==1237 [2025-02-04 09:27:20] Production.ERROR: pbx CDR StartTime 2025-02-04 06:27:06 - End Time 2025-02-04 09:27:06 [2025-02-04 09:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399439', 'tblTempUsageDetail_20' ) start [2025-02-04 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399439', 'tblTempUsageDetail_20' ) end [2025-02-04 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399439', 'tblTempVendorCDR_20' ) start [2025-02-04 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399439', 'tblTempVendorCDR_20' ) end [2025-02-04 09:27:20] Production.INFO: ProcessCDR(1,14399439,1,1,2) [2025-02-04 09:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399439', 'tblTempUsageDetail_20' ) start [2025-02-04 09:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399439', 'tblTempUsageDetail_20' ) end [2025-02-04 09:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:27:25] Production.INFO: ==5917== Releasing lock... [2025-02-04 09:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:27:25] Production.INFO: 37 MB #Memory Used# [2025-02-04 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:28:05 [end_date_ymd] => 2025-02-04 09:28:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 06:28:05' and `end` < '2025-02-04 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-02-04 09:28:18] Production.INFO: count ==1245 [2025-02-04 09:28:18] Production.ERROR: pbx CDR StartTime 2025-02-04 06:28:05 - End Time 2025-02-04 09:28:05 [2025-02-04 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399444', 'tblTempUsageDetail_20' ) start [2025-02-04 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399444', 'tblTempUsageDetail_20' ) end [2025-02-04 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399444', 'tblTempVendorCDR_20' ) start [2025-02-04 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399444', 'tblTempVendorCDR_20' ) end [2025-02-04 09:28:18] Production.INFO: ProcessCDR(1,14399444,1,1,2) [2025-02-04 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399444', 'tblTempUsageDetail_20' ) start [2025-02-04 09:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399444', 'tblTempUsageDetail_20' ) end [2025-02-04 09:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:28:22] Production.INFO: ==5988== Releasing lock... [2025-02-04 09:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:28:22] Production.INFO: 38 MB #Memory Used# [2025-02-04 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:29:05 [end_date_ymd] => 2025-02-04 09:29:05 [RateCDR] => 1 ) [2025-02-04 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:29:05' and `end` < '2025-02-04 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:29:18] Production.INFO: count ==1247 [2025-02-04 09:29:19] Production.ERROR: pbx CDR StartTime 2025-02-04 06:29:05 - End Time 2025-02-04 09:29:05 [2025-02-04 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399449', 'tblTempUsageDetail_20' ) start [2025-02-04 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399449', 'tblTempUsageDetail_20' ) end [2025-02-04 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399449', 'tblTempVendorCDR_20' ) start [2025-02-04 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399449', 'tblTempVendorCDR_20' ) end [2025-02-04 09:29:19] Production.INFO: ProcessCDR(1,14399449,1,1,2) [2025-02-04 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399449', 'tblTempUsageDetail_20' ) start [2025-02-04 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399449', 'tblTempUsageDetail_20' ) end [2025-02-04 09:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:29:22] Production.INFO: ==6061== Releasing lock... [2025-02-04 09:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:29:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-04 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:30:06 [end_date_ymd] => 2025-02-04 09:30:06 [RateCDR] => 1 ) [2025-02-04 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-02-04 06:30:06' and `end` < '2025-02-04 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-02-04 09:30:19] Production.INFO: count ==1254 [2025-02-04 09:30:20] Production.ERROR: pbx CDR StartTime 2025-02-04 06:30:06 - End Time 2025-02-04 09:30:06 [2025-02-04 09:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399454', 'tblTempUsageDetail_20' ) start [2025-02-04 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399454', 'tblTempUsageDetail_20' ) end [2025-02-04 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399454', 'tblTempVendorCDR_20' ) start [2025-02-04 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399454', 'tblTempVendorCDR_20' ) end [2025-02-04 09:30:20] Production.INFO: ProcessCDR(1,14399454,1,1,2) [2025-02-04 09:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399454', 'tblTempUsageDetail_20' ) start [2025-02-04 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399454', 'tblTempUsageDetail_20' ) end [2025-02-04 09:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:30:25] Production.INFO: ==6134== Releasing lock... [2025-02-04 09:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:30:25] Production.INFO: 37.5 MB #Memory Used# [2025-02-04 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:31:05 [end_date_ymd] => 2025-02-04 09:31:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 06:31:05' and `end` < '2025-02-04 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-02-04 09:31:18] Production.INFO: count ==1340 [2025-02-04 09:31:18] Production.ERROR: pbx CDR StartTime 2025-02-04 06:31:05 - End Time 2025-02-04 09:31:05 [2025-02-04 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399460', 'tblTempUsageDetail_20' ) start [2025-02-04 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399460', 'tblTempUsageDetail_20' ) end [2025-02-04 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399460', 'tblTempVendorCDR_20' ) start [2025-02-04 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399460', 'tblTempVendorCDR_20' ) end [2025-02-04 09:31:19] Production.INFO: ProcessCDR(1,14399460,1,1,2) [2025-02-04 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399460', 'tblTempUsageDetail_20' ) start [2025-02-04 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399460', 'tblTempUsageDetail_20' ) end [2025-02-04 09:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:31:23] Production.INFO: ==6207== Releasing lock... [2025-02-04 09:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:31:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-04 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:32:05 [end_date_ymd] => 2025-02-04 09:32:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 06:32:05' and `end` < '2025-02-04 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-02-04 09:32:19] Production.INFO: count ==1353 [2025-02-04 09:32:20] Production.ERROR: pbx CDR StartTime 2025-02-04 06:32:05 - End Time 2025-02-04 09:32:05 [2025-02-04 09:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399465', 'tblTempUsageDetail_20' ) start [2025-02-04 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399465', 'tblTempUsageDetail_20' ) end [2025-02-04 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399465', 'tblTempVendorCDR_20' ) start [2025-02-04 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399465', 'tblTempVendorCDR_20' ) end [2025-02-04 09:32:20] Production.INFO: ProcessCDR(1,14399465,1,1,2) [2025-02-04 09:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399465', 'tblTempUsageDetail_20' ) start [2025-02-04 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399465', 'tblTempUsageDetail_20' ) end [2025-02-04 09:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:32:24] Production.INFO: ==6277== Releasing lock... [2025-02-04 09:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:32:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-04 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:33:05 [end_date_ymd] => 2025-02-04 09:33:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 06:33:05' and `end` < '2025-02-04 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-02-04 09:33:18] Production.INFO: count ==1357 [2025-02-04 09:33:19] Production.ERROR: pbx CDR StartTime 2025-02-04 06:33:05 - End Time 2025-02-04 09:33:05 [2025-02-04 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399470', 'tblTempUsageDetail_20' ) start [2025-02-04 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399470', 'tblTempUsageDetail_20' ) end [2025-02-04 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399470', 'tblTempVendorCDR_20' ) start [2025-02-04 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399470', 'tblTempVendorCDR_20' ) end [2025-02-04 09:33:19] Production.INFO: ProcessCDR(1,14399470,1,1,2) [2025-02-04 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399470', 'tblTempUsageDetail_20' ) start [2025-02-04 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399470', 'tblTempUsageDetail_20' ) end [2025-02-04 09:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:33:23] Production.INFO: ==6388== Releasing lock... [2025-02-04 09:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:33:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-04 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:34:05 [end_date_ymd] => 2025-02-04 09:34:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 06:34:05' and `end` < '2025-02-04 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-02-04 09:34:18] Production.INFO: count ==1373 [2025-02-04 09:34:18] Production.ERROR: pbx CDR StartTime 2025-02-04 06:34:05 - End Time 2025-02-04 09:34:05 [2025-02-04 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399475', 'tblTempUsageDetail_20' ) start [2025-02-04 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399475', 'tblTempUsageDetail_20' ) end [2025-02-04 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399475', 'tblTempVendorCDR_20' ) start [2025-02-04 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399475', 'tblTempVendorCDR_20' ) end [2025-02-04 09:34:18] Production.INFO: ProcessCDR(1,14399475,1,1,2) [2025-02-04 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399475', 'tblTempUsageDetail_20' ) start [2025-02-04 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399475', 'tblTempUsageDetail_20' ) end [2025-02-04 09:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:34:23] Production.INFO: ==6463== Releasing lock... [2025-02-04 09:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:34:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-04 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:35:05 [end_date_ymd] => 2025-02-04 09:35:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 06:35:05' and `end` < '2025-02-04 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-02-04 09:35:18] Production.INFO: count ==1391 [2025-02-04 09:35:19] Production.ERROR: pbx CDR StartTime 2025-02-04 06:35:05 - End Time 2025-02-04 09:35:05 [2025-02-04 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399480', 'tblTempUsageDetail_20' ) start [2025-02-04 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399480', 'tblTempUsageDetail_20' ) end [2025-02-04 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399480', 'tblTempVendorCDR_20' ) start [2025-02-04 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399480', 'tblTempVendorCDR_20' ) end [2025-02-04 09:35:19] Production.INFO: ProcessCDR(1,14399480,1,1,2) [2025-02-04 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399480', 'tblTempUsageDetail_20' ) start [2025-02-04 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399480', 'tblTempUsageDetail_20' ) end [2025-02-04 09:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:35:24] Production.INFO: ==6537== Releasing lock... [2025-02-04 09:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:35:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-04 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:36:05 [end_date_ymd] => 2025-02-04 09:36:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 06:36:05' and `end` < '2025-02-04 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-02-04 09:36:19] Production.INFO: count ==1399 [2025-02-04 09:36:19] Production.ERROR: pbx CDR StartTime 2025-02-04 06:36:05 - End Time 2025-02-04 09:36:05 [2025-02-04 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399485', 'tblTempUsageDetail_20' ) start [2025-02-04 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399485', 'tblTempUsageDetail_20' ) end [2025-02-04 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399485', 'tblTempVendorCDR_20' ) start [2025-02-04 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399485', 'tblTempVendorCDR_20' ) end [2025-02-04 09:36:19] Production.INFO: ProcessCDR(1,14399485,1,1,2) [2025-02-04 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399485', 'tblTempUsageDetail_20' ) start [2025-02-04 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399485', 'tblTempUsageDetail_20' ) end [2025-02-04 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:36:24] Production.INFO: ==6607== Releasing lock... [2025-02-04 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:36:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-04 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:37:05 [end_date_ymd] => 2025-02-04 09:37:05 [RateCDR] => 1 ) [2025-02-04 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:37:05' and `end` < '2025-02-04 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:37:18] Production.INFO: count ==1400 [2025-02-04 09:37:19] Production.ERROR: pbx CDR StartTime 2025-02-04 06:37:05 - End Time 2025-02-04 09:37:05 [2025-02-04 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399490', 'tblTempUsageDetail_20' ) start [2025-02-04 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399490', 'tblTempUsageDetail_20' ) end [2025-02-04 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399490', 'tblTempVendorCDR_20' ) start [2025-02-04 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399490', 'tblTempVendorCDR_20' ) end [2025-02-04 09:37:19] Production.INFO: ProcessCDR(1,14399490,1,1,2) [2025-02-04 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399490', 'tblTempUsageDetail_20' ) start [2025-02-04 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399490', 'tblTempUsageDetail_20' ) end [2025-02-04 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:37:24] Production.INFO: ==6682== Releasing lock... [2025-02-04 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:37:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-04 09:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:38:06 [end_date_ymd] => 2025-02-04 09:38:06 [RateCDR] => 1 ) [2025-02-04 09:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:38:06' and `end` < '2025-02-04 09:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:38:20] Production.INFO: count ==1419 [2025-02-04 09:38:20] Production.ERROR: pbx CDR StartTime 2025-02-04 06:38:06 - End Time 2025-02-04 09:38:06 [2025-02-04 09:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399495', 'tblTempUsageDetail_20' ) start [2025-02-04 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399495', 'tblTempUsageDetail_20' ) end [2025-02-04 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399495', 'tblTempVendorCDR_20' ) start [2025-02-04 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399495', 'tblTempVendorCDR_20' ) end [2025-02-04 09:38:20] Production.INFO: ProcessCDR(1,14399495,1,1,2) [2025-02-04 09:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399495', 'tblTempUsageDetail_20' ) start [2025-02-04 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399495', 'tblTempUsageDetail_20' ) end [2025-02-04 09:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:38:25] Production.INFO: ==6753== Releasing lock... [2025-02-04 09:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:38:25] Production.INFO: 38.75 MB #Memory Used# [2025-02-04 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:39:05 [end_date_ymd] => 2025-02-04 09:39:05 [RateCDR] => 1 ) [2025-02-04 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:39:05' and `end` < '2025-02-04 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:39:19] Production.INFO: count ==1427 [2025-02-04 09:39:19] Production.ERROR: pbx CDR StartTime 2025-02-04 06:39:05 - End Time 2025-02-04 09:39:05 [2025-02-04 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399500', 'tblTempUsageDetail_20' ) start [2025-02-04 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399500', 'tblTempUsageDetail_20' ) end [2025-02-04 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399500', 'tblTempVendorCDR_20' ) start [2025-02-04 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399500', 'tblTempVendorCDR_20' ) end [2025-02-04 09:39:19] Production.INFO: ProcessCDR(1,14399500,1,1,2) [2025-02-04 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399500', 'tblTempUsageDetail_20' ) start [2025-02-04 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399500', 'tblTempUsageDetail_20' ) end [2025-02-04 09:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:39:23] Production.INFO: ==6827== Releasing lock... [2025-02-04 09:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:39:23] Production.INFO: 39 MB #Memory Used# [2025-02-04 09:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:40:07 [end_date_ymd] => 2025-02-04 09:40:07 [RateCDR] => 1 ) [2025-02-04 09:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:40:07' and `end` < '2025-02-04 09:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:40:21] Production.INFO: count ==1452 [2025-02-04 09:40:21] Production.ERROR: pbx CDR StartTime 2025-02-04 06:40:07 - End Time 2025-02-04 09:40:07 [2025-02-04 09:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399506', 'tblTempUsageDetail_20' ) start [2025-02-04 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399506', 'tblTempUsageDetail_20' ) end [2025-02-04 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399506', 'tblTempVendorCDR_20' ) start [2025-02-04 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399506', 'tblTempVendorCDR_20' ) end [2025-02-04 09:40:21] Production.INFO: ProcessCDR(1,14399506,1,1,2) [2025-02-04 09:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399506', 'tblTempUsageDetail_20' ) start [2025-02-04 09:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399506', 'tblTempUsageDetail_20' ) end [2025-02-04 09:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:40:26] Production.INFO: ==6902== Releasing lock... [2025-02-04 09:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:40:26] Production.INFO: 39 MB #Memory Used# [2025-02-04 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:41:05 [end_date_ymd] => 2025-02-04 09:41:05 [RateCDR] => 1 ) [2025-02-04 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:41:05' and `end` < '2025-02-04 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:41:18] Production.INFO: count ==1517 [2025-02-04 09:41:19] Production.ERROR: pbx CDR StartTime 2025-02-04 06:41:05 - End Time 2025-02-04 09:41:05 [2025-02-04 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399511', 'tblTempUsageDetail_20' ) start [2025-02-04 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399511', 'tblTempUsageDetail_20' ) end [2025-02-04 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399511', 'tblTempVendorCDR_20' ) start [2025-02-04 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399511', 'tblTempVendorCDR_20' ) end [2025-02-04 09:41:19] Production.INFO: ProcessCDR(1,14399511,1,1,2) [2025-02-04 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399511', 'tblTempUsageDetail_20' ) start [2025-02-04 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399511', 'tblTempUsageDetail_20' ) end [2025-02-04 09:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:41:23] Production.INFO: ==6975== Releasing lock... [2025-02-04 09:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:41:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-04 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:42:05 [end_date_ymd] => 2025-02-04 09:42:05 [RateCDR] => 1 ) [2025-02-04 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:42:05' and `end` < '2025-02-04 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:42:18] Production.INFO: count ==1527 [2025-02-04 09:42:19] Production.ERROR: pbx CDR StartTime 2025-02-04 06:42:05 - End Time 2025-02-04 09:42:05 [2025-02-04 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399516', 'tblTempUsageDetail_20' ) start [2025-02-04 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399516', 'tblTempUsageDetail_20' ) end [2025-02-04 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399516', 'tblTempVendorCDR_20' ) start [2025-02-04 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399516', 'tblTempVendorCDR_20' ) end [2025-02-04 09:42:19] Production.INFO: ProcessCDR(1,14399516,1,1,2) [2025-02-04 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399516', 'tblTempUsageDetail_20' ) start [2025-02-04 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399516', 'tblTempUsageDetail_20' ) end [2025-02-04 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:42:24] Production.INFO: ==7045== Releasing lock... [2025-02-04 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:42:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-04 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:43:05 [end_date_ymd] => 2025-02-04 09:43:05 [RateCDR] => 1 ) [2025-02-04 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:43:05' and `end` < '2025-02-04 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:43:18] Production.INFO: count ==1553 [2025-02-04 09:43:18] Production.ERROR: pbx CDR StartTime 2025-02-04 06:43:05 - End Time 2025-02-04 09:43:05 [2025-02-04 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399521', 'tblTempUsageDetail_20' ) start [2025-02-04 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399521', 'tblTempUsageDetail_20' ) end [2025-02-04 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399521', 'tblTempVendorCDR_20' ) start [2025-02-04 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399521', 'tblTempVendorCDR_20' ) end [2025-02-04 09:43:19] Production.INFO: ProcessCDR(1,14399521,1,1,2) [2025-02-04 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399521', 'tblTempUsageDetail_20' ) start [2025-02-04 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399521', 'tblTempUsageDetail_20' ) end [2025-02-04 09:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:43:23] Production.INFO: ==7114== Releasing lock... [2025-02-04 09:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:43:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-04 09:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:44:05 [end_date_ymd] => 2025-02-04 09:44:05 [RateCDR] => 1 ) [2025-02-04 09:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:44:05' and `end` < '2025-02-04 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:44:23] Production.INFO: count ==1565 [2025-02-04 09:44:24] Production.ERROR: pbx CDR StartTime 2025-02-04 06:44:05 - End Time 2025-02-04 09:44:05 [2025-02-04 09:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399526', 'tblTempUsageDetail_20' ) start [2025-02-04 09:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399526', 'tblTempUsageDetail_20' ) end [2025-02-04 09:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399526', 'tblTempVendorCDR_20' ) start [2025-02-04 09:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399526', 'tblTempVendorCDR_20' ) end [2025-02-04 09:44:24] Production.INFO: ProcessCDR(1,14399526,1,1,2) [2025-02-04 09:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399526', 'tblTempUsageDetail_20' ) start [2025-02-04 09:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399526', 'tblTempUsageDetail_20' ) end [2025-02-04 09:44:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:44:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:44:29] Production.INFO: ==7184== Releasing lock... [2025-02-04 09:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:44:29] Production.INFO: 40 MB #Memory Used# [2025-02-04 09:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:45:06 [end_date_ymd] => 2025-02-04 09:45:06 [RateCDR] => 1 ) [2025-02-04 09:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:45:06' and `end` < '2025-02-04 09:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:45:19] Production.INFO: count ==1589 [2025-02-04 09:45:19] Production.ERROR: pbx CDR StartTime 2025-02-04 06:45:06 - End Time 2025-02-04 09:45:06 [2025-02-04 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399531', 'tblTempUsageDetail_20' ) start [2025-02-04 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399531', 'tblTempUsageDetail_20' ) end [2025-02-04 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399531', 'tblTempVendorCDR_20' ) start [2025-02-04 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399531', 'tblTempVendorCDR_20' ) end [2025-02-04 09:45:19] Production.INFO: ProcessCDR(1,14399531,1,1,2) [2025-02-04 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399531', 'tblTempUsageDetail_20' ) start [2025-02-04 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399531', 'tblTempUsageDetail_20' ) end [2025-02-04 09:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:45:24] Production.INFO: ==7257== Releasing lock... [2025-02-04 09:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:45:24] Production.INFO: 40.25 MB #Memory Used# [2025-02-04 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:46:05 [end_date_ymd] => 2025-02-04 09:46:05 [RateCDR] => 1 ) [2025-02-04 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:46:05' and `end` < '2025-02-04 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:46:23] Production.INFO: count ==1612 [2025-02-04 09:46:23] Production.ERROR: pbx CDR StartTime 2025-02-04 06:46:05 - End Time 2025-02-04 09:46:05 [2025-02-04 09:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399536', 'tblTempUsageDetail_20' ) start [2025-02-04 09:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399536', 'tblTempUsageDetail_20' ) end [2025-02-04 09:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399536', 'tblTempVendorCDR_20' ) start [2025-02-04 09:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399536', 'tblTempVendorCDR_20' ) end [2025-02-04 09:46:23] Production.INFO: ProcessCDR(1,14399536,1,1,2) [2025-02-04 09:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399536', 'tblTempUsageDetail_20' ) start [2025-02-04 09:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399536', 'tblTempUsageDetail_20' ) end [2025-02-04 09:46:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:46:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:46:29] Production.INFO: ==7328== Releasing lock... [2025-02-04 09:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:46:29] Production.INFO: 40.25 MB #Memory Used# [2025-02-04 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:47:05 [end_date_ymd] => 2025-02-04 09:47:05 [RateCDR] => 1 ) [2025-02-04 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:47:05' and `end` < '2025-02-04 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-02-04 09:47:19] Production.INFO: count ==1624 [2025-02-04 09:47:20] Production.ERROR: pbx CDR StartTime 2025-02-04 06:47:05 - End Time 2025-02-04 09:47:05 [2025-02-04 09:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399541', 'tblTempUsageDetail_20' ) start [2025-02-04 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399541', 'tblTempUsageDetail_20' ) end [2025-02-04 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399541', 'tblTempVendorCDR_20' ) start [2025-02-04 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399541', 'tblTempVendorCDR_20' ) end [2025-02-04 09:47:20] Production.INFO: ProcessCDR(1,14399541,1,1,2) [2025-02-04 09:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399541', 'tblTempUsageDetail_20' ) start [2025-02-04 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399541', 'tblTempUsageDetail_20' ) end [2025-02-04 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:47:24] Production.INFO: ==7400== Releasing lock... [2025-02-04 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:47:24] Production.INFO: 40.25 MB #Memory Used# [2025-02-04 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:48:05 [end_date_ymd] => 2025-02-04 09:48:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 06:48:05' and `end` < '2025-02-04 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-02-04 09:48:19] Production.INFO: count ==1627 [2025-02-04 09:48:20] Production.ERROR: pbx CDR StartTime 2025-02-04 06:48:05 - End Time 2025-02-04 09:48:05 [2025-02-04 09:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399546', 'tblTempUsageDetail_20' ) start [2025-02-04 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399546', 'tblTempUsageDetail_20' ) end [2025-02-04 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399546', 'tblTempVendorCDR_20' ) start [2025-02-04 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399546', 'tblTempVendorCDR_20' ) end [2025-02-04 09:48:20] Production.INFO: ProcessCDR(1,14399546,1,1,2) [2025-02-04 09:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399546', 'tblTempUsageDetail_20' ) start [2025-02-04 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399546', 'tblTempUsageDetail_20' ) end [2025-02-04 09:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:48:25] Production.INFO: ==7492== Releasing lock... [2025-02-04 09:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:48:25] Production.INFO: 40.25 MB #Memory Used# [2025-02-04 09:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:49:05 [end_date_ymd] => 2025-02-04 09:49:05 [RateCDR] => 1 ) [2025-02-04 09:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:49:05' and `end` < '2025-02-04 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-02-04 09:49:19] Production.INFO: count ==1636 [2025-02-04 09:49:19] Production.ERROR: pbx CDR StartTime 2025-02-04 06:49:05 - End Time 2025-02-04 09:49:05 [2025-02-04 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399551', 'tblTempUsageDetail_20' ) start [2025-02-04 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399551', 'tblTempUsageDetail_20' ) end [2025-02-04 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399551', 'tblTempVendorCDR_20' ) start [2025-02-04 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399551', 'tblTempVendorCDR_20' ) end [2025-02-04 09:49:19] Production.INFO: ProcessCDR(1,14399551,1,1,2) [2025-02-04 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399551', 'tblTempUsageDetail_20' ) start [2025-02-04 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399551', 'tblTempUsageDetail_20' ) end [2025-02-04 09:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:49:24] Production.INFO: ==7603== Releasing lock... [2025-02-04 09:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:49:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-04 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:50:06 [end_date_ymd] => 2025-02-04 09:50:06 [RateCDR] => 1 ) [2025-02-04 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:50:06' and `end` < '2025-02-04 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:50:20] Production.INFO: count ==1649 [2025-02-04 09:50:20] Production.ERROR: pbx CDR StartTime 2025-02-04 06:50:06 - End Time 2025-02-04 09:50:06 [2025-02-04 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399557', 'tblTempUsageDetail_20' ) start [2025-02-04 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399557', 'tblTempUsageDetail_20' ) end [2025-02-04 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399557', 'tblTempVendorCDR_20' ) start [2025-02-04 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399557', 'tblTempVendorCDR_20' ) end [2025-02-04 09:50:20] Production.INFO: ProcessCDR(1,14399557,1,1,2) [2025-02-04 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399557', 'tblTempUsageDetail_20' ) start [2025-02-04 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399557', 'tblTempUsageDetail_20' ) end [2025-02-04 09:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:50:25] Production.INFO: ==7677== Releasing lock... [2025-02-04 09:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:50:25] Production.INFO: 40.5 MB #Memory Used# [2025-02-04 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:51:05 [end_date_ymd] => 2025-02-04 09:51:05 [RateCDR] => 1 ) [2025-02-04 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:51:05' and `end` < '2025-02-04 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:51:22] Production.INFO: count ==1709 [2025-02-04 09:51:23] Production.ERROR: pbx CDR StartTime 2025-02-04 06:51:05 - End Time 2025-02-04 09:51:05 [2025-02-04 09:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399562', 'tblTempUsageDetail_20' ) start [2025-02-04 09:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399562', 'tblTempUsageDetail_20' ) end [2025-02-04 09:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399562', 'tblTempVendorCDR_20' ) start [2025-02-04 09:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399562', 'tblTempVendorCDR_20' ) end [2025-02-04 09:51:23] Production.INFO: ProcessCDR(1,14399562,1,1,2) [2025-02-04 09:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399562', 'tblTempUsageDetail_20' ) start [2025-02-04 09:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399562', 'tblTempUsageDetail_20' ) end [2025-02-04 09:51:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:51:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:51:27] Production.INFO: ==7754== Releasing lock... [2025-02-04 09:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:51:27] Production.INFO: 40.75 MB #Memory Used# [2025-02-04 09:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:52:04 [end_date_ymd] => 2025-02-04 09:52:04 [RateCDR] => 1 ) [2025-02-04 09: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-02-04 06:52:04' and `end` < '2025-02-04 09: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-02-04 09:52:22] Production.INFO: count ==1716 [2025-02-04 09:52:23] Production.ERROR: pbx CDR StartTime 2025-02-04 06:52:04 - End Time 2025-02-04 09:52:04 [2025-02-04 09:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399567', 'tblTempUsageDetail_20' ) start [2025-02-04 09:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399567', 'tblTempUsageDetail_20' ) end [2025-02-04 09:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399567', 'tblTempVendorCDR_20' ) start [2025-02-04 09:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399567', 'tblTempVendorCDR_20' ) end [2025-02-04 09:52:23] Production.INFO: ProcessCDR(1,14399567,1,1,2) [2025-02-04 09:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399567', 'tblTempUsageDetail_20' ) start [2025-02-04 09:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399567', 'tblTempUsageDetail_20' ) end [2025-02-04 09:52:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:52:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:52:27] Production.INFO: ==7823== Releasing lock... [2025-02-04 09:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:52:27] Production.INFO: 41 MB #Memory Used# [2025-02-04 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:53:05 [end_date_ymd] => 2025-02-04 09:53:05 [RateCDR] => 1 ) [2025-02-04 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:53:05' and `end` < '2025-02-04 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:53:24] Production.INFO: count ==1729 [2025-02-04 09:53:25] Production.ERROR: pbx CDR StartTime 2025-02-04 06:53:05 - End Time 2025-02-04 09:53:05 [2025-02-04 09:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399572', 'tblTempUsageDetail_20' ) start [2025-02-04 09:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399572', 'tblTempUsageDetail_20' ) end [2025-02-04 09:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399572', 'tblTempVendorCDR_20' ) start [2025-02-04 09:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399572', 'tblTempVendorCDR_20' ) end [2025-02-04 09:53:25] Production.INFO: ProcessCDR(1,14399572,1,1,2) [2025-02-04 09:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399572', 'tblTempUsageDetail_20' ) start [2025-02-04 09:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399572', 'tblTempUsageDetail_20' ) end [2025-02-04 09:53:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:53:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:53:29] Production.INFO: ==7896== Releasing lock... [2025-02-04 09:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:53:29] Production.INFO: 41 MB #Memory Used# [2025-02-04 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:54:05 [end_date_ymd] => 2025-02-04 09:54:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 06:54:05' and `end` < '2025-02-04 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-02-04 09:54:20] Production.INFO: count ==1732 [2025-02-04 09:54:20] Production.ERROR: pbx CDR StartTime 2025-02-04 06:54:05 - End Time 2025-02-04 09:54:05 [2025-02-04 09:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399577', 'tblTempUsageDetail_20' ) start [2025-02-04 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399577', 'tblTempUsageDetail_20' ) end [2025-02-04 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399577', 'tblTempVendorCDR_20' ) start [2025-02-04 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399577', 'tblTempVendorCDR_20' ) end [2025-02-04 09:54:20] Production.INFO: ProcessCDR(1,14399577,1,1,2) [2025-02-04 09:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399577', 'tblTempUsageDetail_20' ) start [2025-02-04 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399577', 'tblTempUsageDetail_20' ) end [2025-02-04 09:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:54:25] Production.INFO: ==7971== Releasing lock... [2025-02-04 09:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:54:25] Production.INFO: 41 MB #Memory Used# [2025-02-04 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:55:05 [end_date_ymd] => 2025-02-04 09:55:05 [RateCDR] => 1 ) [2025-02-04 09:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:55:05' and `end` < '2025-02-04 09:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:55:19] Production.INFO: count ==1751 [2025-02-04 09:55:20] Production.ERROR: pbx CDR StartTime 2025-02-04 06:55:05 - End Time 2025-02-04 09:55:05 [2025-02-04 09:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399582', 'tblTempUsageDetail_20' ) start [2025-02-04 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399582', 'tblTempUsageDetail_20' ) end [2025-02-04 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399582', 'tblTempVendorCDR_20' ) start [2025-02-04 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399582', 'tblTempVendorCDR_20' ) end [2025-02-04 09:55:20] Production.INFO: ProcessCDR(1,14399582,1,1,2) [2025-02-04 09:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399582', 'tblTempUsageDetail_20' ) start [2025-02-04 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399582', 'tblTempUsageDetail_20' ) end [2025-02-04 09:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:55:25] Production.INFO: ==8059== Releasing lock... [2025-02-04 09:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:55:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-04 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:56:06 [end_date_ymd] => 2025-02-04 09:56:06 [RateCDR] => 1 ) [2025-02-04 09:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:56:06' and `end` < '2025-02-04 09:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:56:19] Production.INFO: count ==1778 [2025-02-04 09:56:20] Production.ERROR: pbx CDR StartTime 2025-02-04 06:56:06 - End Time 2025-02-04 09:56:06 [2025-02-04 09:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399587', 'tblTempUsageDetail_20' ) start [2025-02-04 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399587', 'tblTempUsageDetail_20' ) end [2025-02-04 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399587', 'tblTempVendorCDR_20' ) start [2025-02-04 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399587', 'tblTempVendorCDR_20' ) end [2025-02-04 09:56:20] Production.INFO: ProcessCDR(1,14399587,1,1,2) [2025-02-04 09:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399587', 'tblTempUsageDetail_20' ) start [2025-02-04 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399587', 'tblTempUsageDetail_20' ) end [2025-02-04 09:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:56:25] Production.INFO: ==8130== Releasing lock... [2025-02-04 09:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:56:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-04 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:57:05 [end_date_ymd] => 2025-02-04 09:57:05 [RateCDR] => 1 ) [2025-02-04 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:57:05' and `end` < '2025-02-04 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:57:22] Production.INFO: count ==1794 [2025-02-04 09:57:23] Production.ERROR: pbx CDR StartTime 2025-02-04 06:57:05 - End Time 2025-02-04 09:57:05 [2025-02-04 09:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399592', 'tblTempUsageDetail_20' ) start [2025-02-04 09:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399592', 'tblTempUsageDetail_20' ) end [2025-02-04 09:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399592', 'tblTempVendorCDR_20' ) start [2025-02-04 09:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399592', 'tblTempVendorCDR_20' ) end [2025-02-04 09:57:23] Production.INFO: ProcessCDR(1,14399592,1,1,2) [2025-02-04 09:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399592', 'tblTempUsageDetail_20' ) start [2025-02-04 09:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399592', 'tblTempUsageDetail_20' ) end [2025-02-04 09:57:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:57:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:57:27] Production.INFO: ==8209== Releasing lock... [2025-02-04 09:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:57:27] Production.INFO: 41.75 MB #Memory Used# [2025-02-04 09:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:58:06 [end_date_ymd] => 2025-02-04 09:58:06 [RateCDR] => 1 ) [2025-02-04 09:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 06:58:06' and `end` < '2025-02-04 09:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 09:58:20] Production.INFO: count ==1817 [2025-02-04 09:58:21] Production.ERROR: pbx CDR StartTime 2025-02-04 06:58:06 - End Time 2025-02-04 09:58:06 [2025-02-04 09:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399597', 'tblTempUsageDetail_20' ) start [2025-02-04 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399597', 'tblTempUsageDetail_20' ) end [2025-02-04 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399597', 'tblTempVendorCDR_20' ) start [2025-02-04 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399597', 'tblTempVendorCDR_20' ) end [2025-02-04 09:58:21] Production.INFO: ProcessCDR(1,14399597,1,1,2) [2025-02-04 09:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399597', 'tblTempUsageDetail_20' ) start [2025-02-04 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399597', 'tblTempUsageDetail_20' ) end [2025-02-04 09:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:58:25] Production.INFO: ==8281== Releasing lock... [2025-02-04 09:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:58:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-04 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 06:59:05 [end_date_ymd] => 2025-02-04 09:59:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 06:59:05' and `end` < '2025-02-04 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-02-04 09:59:18] Production.INFO: count ==1827 [2025-02-04 09:59:19] Production.ERROR: pbx CDR StartTime 2025-02-04 06:59:05 - End Time 2025-02-04 09:59:05 [2025-02-04 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399602', 'tblTempUsageDetail_20' ) start [2025-02-04 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399602', 'tblTempUsageDetail_20' ) end [2025-02-04 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399602', 'tblTempVendorCDR_20' ) start [2025-02-04 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399602', 'tblTempVendorCDR_20' ) end [2025-02-04 09:59:19] Production.INFO: ProcessCDR(1,14399602,1,1,2) [2025-02-04 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 09:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399602', 'tblTempUsageDetail_20' ) start [2025-02-04 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399602', 'tblTempUsageDetail_20' ) end [2025-02-04 09:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 09:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 09:59:23] Production.INFO: ==8351== Releasing lock... [2025-02-04 09:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 09:59:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-04 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:00:06 [end_date_ymd] => 2025-02-04 10:00:06 [RateCDR] => 1 ) [2025-02-04 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:00:06' and `end` < '2025-02-04 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:00:19] Production.INFO: count ==1840 [2025-02-04 10:00:20] Production.ERROR: pbx CDR StartTime 2025-02-04 07:00:06 - End Time 2025-02-04 10:00:06 [2025-02-04 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399608', 'tblTempUsageDetail_20' ) start [2025-02-04 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399608', 'tblTempUsageDetail_20' ) end [2025-02-04 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399608', 'tblTempVendorCDR_20' ) start [2025-02-04 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399608', 'tblTempVendorCDR_20' ) end [2025-02-04 10:00:20] Production.INFO: ProcessCDR(1,14399608,1,1,2) [2025-02-04 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399608', 'tblTempUsageDetail_20' ) start [2025-02-04 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399608', 'tblTempUsageDetail_20' ) end [2025-02-04 10:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:00:25] Production.INFO: ==8428== Releasing lock... [2025-02-04 10:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:00:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-04 10:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:01:04 [end_date_ymd] => 2025-02-04 10:01:04 [RateCDR] => 1 ) [2025-02-04 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-02-04 07:01:04' and `end` < '2025-02-04 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-02-04 10:01:18] Production.INFO: count ==1920 [2025-02-04 10:01:18] Production.ERROR: pbx CDR StartTime 2025-02-04 07:01:04 - End Time 2025-02-04 10:01:04 [2025-02-04 10:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399613', 'tblTempUsageDetail_20' ) start [2025-02-04 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399613', 'tblTempUsageDetail_20' ) end [2025-02-04 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399613', 'tblTempVendorCDR_20' ) start [2025-02-04 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399613', 'tblTempVendorCDR_20' ) end [2025-02-04 10:01:18] Production.INFO: ProcessCDR(1,14399613,1,1,2) [2025-02-04 10:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399613', 'tblTempUsageDetail_20' ) start [2025-02-04 10:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399613', 'tblTempUsageDetail_20' ) end [2025-02-04 10:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:01:23] Production.INFO: ==8515== Releasing lock... [2025-02-04 10:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:01:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-04 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:02:05 [end_date_ymd] => 2025-02-04 10:02:05 [RateCDR] => 1 ) [2025-02-04 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:02:05' and `end` < '2025-02-04 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:02:18] Production.INFO: count ==1935 [2025-02-04 10:02:19] Production.ERROR: pbx CDR StartTime 2025-02-04 07:02:05 - End Time 2025-02-04 10:02:05 [2025-02-04 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399618', 'tblTempUsageDetail_20' ) start [2025-02-04 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399618', 'tblTempUsageDetail_20' ) end [2025-02-04 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399618', 'tblTempVendorCDR_20' ) start [2025-02-04 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399618', 'tblTempVendorCDR_20' ) end [2025-02-04 10:02:19] Production.INFO: ProcessCDR(1,14399618,1,1,2) [2025-02-04 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399618', 'tblTempUsageDetail_20' ) start [2025-02-04 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399618', 'tblTempUsageDetail_20' ) end [2025-02-04 10:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:02:24] Production.INFO: ==8589== Releasing lock... [2025-02-04 10:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:02:24] Production.INFO: 42.75 MB #Memory Used# [2025-02-04 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:03:05 [end_date_ymd] => 2025-02-04 10:03:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 07:03:05' and `end` < '2025-02-04 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-02-04 10:03:24] Production.INFO: count ==1943 [2025-02-04 10:03:24] Production.ERROR: pbx CDR StartTime 2025-02-04 07:03:05 - End Time 2025-02-04 10:03:05 [2025-02-04 10:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399623', 'tblTempUsageDetail_20' ) start [2025-02-04 10:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399623', 'tblTempUsageDetail_20' ) end [2025-02-04 10:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399623', 'tblTempVendorCDR_20' ) start [2025-02-04 10:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399623', 'tblTempVendorCDR_20' ) end [2025-02-04 10:03:24] Production.INFO: ProcessCDR(1,14399623,1,1,2) [2025-02-04 10:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399623', 'tblTempUsageDetail_20' ) start [2025-02-04 10:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399623', 'tblTempUsageDetail_20' ) end [2025-02-04 10:03:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:03:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:03:29] Production.INFO: ==8663== Releasing lock... [2025-02-04 10:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:03:29] Production.INFO: 42.75 MB #Memory Used# [2025-02-04 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:04:06 [end_date_ymd] => 2025-02-04 10:04:06 [RateCDR] => 1 ) [2025-02-04 10:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:04:06' and `end` < '2025-02-04 10:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:04:22] Production.INFO: count ==1967 [2025-02-04 10:04:23] Production.ERROR: pbx CDR StartTime 2025-02-04 07:04:06 - End Time 2025-02-04 10:04:06 [2025-02-04 10:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399628', 'tblTempUsageDetail_20' ) start [2025-02-04 10:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399628', 'tblTempUsageDetail_20' ) end [2025-02-04 10:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399628', 'tblTempVendorCDR_20' ) start [2025-02-04 10:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399628', 'tblTempVendorCDR_20' ) end [2025-02-04 10:04:23] Production.INFO: ProcessCDR(1,14399628,1,1,2) [2025-02-04 10:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399628', 'tblTempUsageDetail_20' ) start [2025-02-04 10:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399628', 'tblTempUsageDetail_20' ) end [2025-02-04 10:04:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:04:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:04:29] Production.INFO: ==8774== Releasing lock... [2025-02-04 10:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:04:29] Production.INFO: 42.75 MB #Memory Used# [2025-02-04 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:05:05 [end_date_ymd] => 2025-02-04 10:05:05 [RateCDR] => 1 ) [2025-02-04 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:05:05' and `end` < '2025-02-04 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:05:29] Production.INFO: count ==1989 [2025-02-04 10:05:30] Production.ERROR: pbx CDR StartTime 2025-02-04 07:05:05 - End Time 2025-02-04 10:05:05 [2025-02-04 10:05:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399633', 'tblTempUsageDetail_20' ) start [2025-02-04 10:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399633', 'tblTempUsageDetail_20' ) end [2025-02-04 10:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399633', 'tblTempVendorCDR_20' ) start [2025-02-04 10:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399633', 'tblTempVendorCDR_20' ) end [2025-02-04 10:05:30] Production.INFO: ProcessCDR(1,14399633,1,1,2) [2025-02-04 10:05:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:05:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:05:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:05:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399633', 'tblTempUsageDetail_20' ) start [2025-02-04 10:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399633', 'tblTempUsageDetail_20' ) end [2025-02-04 10:05:35] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:05:35] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:05:35] Production.INFO: ==8844== Releasing lock... [2025-02-04 10:05:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:05:35] Production.INFO: 43 MB #Memory Used# [2025-02-04 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:06:05 [end_date_ymd] => 2025-02-04 10:06:05 [RateCDR] => 1 ) [2025-02-04 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:06:05' and `end` < '2025-02-04 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:06:23] Production.INFO: count ==2011 [2025-02-04 10:06:24] Production.ERROR: pbx CDR StartTime 2025-02-04 07:06:05 - End Time 2025-02-04 10:06:05 [2025-02-04 10:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399638', 'tblTempUsageDetail_20' ) start [2025-02-04 10:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399638', 'tblTempUsageDetail_20' ) end [2025-02-04 10:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399638', 'tblTempVendorCDR_20' ) start [2025-02-04 10:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399638', 'tblTempVendorCDR_20' ) end [2025-02-04 10:06:24] Production.INFO: ProcessCDR(1,14399638,1,1,2) [2025-02-04 10:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399638', 'tblTempUsageDetail_20' ) start [2025-02-04 10:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399638', 'tblTempUsageDetail_20' ) end [2025-02-04 10:06:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:06:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:06:30] Production.INFO: ==8914== Releasing lock... [2025-02-04 10:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:06:30] Production.INFO: 43.25 MB #Memory Used# [2025-02-04 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:07:05 [end_date_ymd] => 2025-02-04 10:07:05 [RateCDR] => 1 ) [2025-02-04 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:07:05' and `end` < '2025-02-04 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:07:25] Production.INFO: count ==2037 [2025-02-04 10:07:26] Production.ERROR: pbx CDR StartTime 2025-02-04 07:07:05 - End Time 2025-02-04 10:07:05 [2025-02-04 10:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399643', 'tblTempUsageDetail_20' ) start [2025-02-04 10:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399643', 'tblTempUsageDetail_20' ) end [2025-02-04 10:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399643', 'tblTempVendorCDR_20' ) start [2025-02-04 10:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399643', 'tblTempVendorCDR_20' ) end [2025-02-04 10:07:26] Production.INFO: ProcessCDR(1,14399643,1,1,2) [2025-02-04 10:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399643', 'tblTempUsageDetail_20' ) start [2025-02-04 10:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399643', 'tblTempUsageDetail_20' ) end [2025-02-04 10:07:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:07:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:07:31] Production.INFO: ==8988== Releasing lock... [2025-02-04 10:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:07:31] Production.INFO: 43.5 MB #Memory Used# [2025-02-04 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:08:05 [end_date_ymd] => 2025-02-04 10:08:05 [RateCDR] => 1 ) [2025-02-04 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:08:05' and `end` < '2025-02-04 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:08:22] Production.INFO: count ==2044 [2025-02-04 10:08:23] Production.ERROR: pbx CDR StartTime 2025-02-04 07:08:05 - End Time 2025-02-04 10:08:05 [2025-02-04 10:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399648', 'tblTempUsageDetail_20' ) start [2025-02-04 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399648', 'tblTempUsageDetail_20' ) end [2025-02-04 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399648', 'tblTempVendorCDR_20' ) start [2025-02-04 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399648', 'tblTempVendorCDR_20' ) end [2025-02-04 10:08:23] Production.INFO: ProcessCDR(1,14399648,1,1,2) [2025-02-04 10:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399648', 'tblTempUsageDetail_20' ) start [2025-02-04 10:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399648', 'tblTempUsageDetail_20' ) end [2025-02-04 10:08:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:08:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:08:28] Production.INFO: ==9060== Releasing lock... [2025-02-04 10:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:08:28] Production.INFO: 43.5 MB #Memory Used# [2025-02-04 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:09:05 [end_date_ymd] => 2025-02-04 10:09:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 07:09:05' and `end` < '2025-02-04 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-02-04 10:09:22] Production.INFO: count ==2073 [2025-02-04 10:09:23] Production.ERROR: pbx CDR StartTime 2025-02-04 07:09:05 - End Time 2025-02-04 10:09:05 [2025-02-04 10:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399653', 'tblTempUsageDetail_20' ) start [2025-02-04 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399653', 'tblTempUsageDetail_20' ) end [2025-02-04 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399653', 'tblTempVendorCDR_20' ) start [2025-02-04 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399653', 'tblTempVendorCDR_20' ) end [2025-02-04 10:09:23] Production.INFO: ProcessCDR(1,14399653,1,1,2) [2025-02-04 10:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399653', 'tblTempUsageDetail_20' ) start [2025-02-04 10:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399653', 'tblTempUsageDetail_20' ) end [2025-02-04 10:09:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:09:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:09:28] Production.INFO: ==9132== Releasing lock... [2025-02-04 10:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:09:28] Production.INFO: 43.75 MB #Memory Used# [2025-02-04 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:10:06 [end_date_ymd] => 2025-02-04 10:10:06 [RateCDR] => 1 ) [2025-02-04 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:10:06' and `end` < '2025-02-04 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:10:19] Production.INFO: count ==2102 [2025-02-04 10:10:20] Production.ERROR: pbx CDR StartTime 2025-02-04 07:10:06 - End Time 2025-02-04 10:10:06 [2025-02-04 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399658', 'tblTempUsageDetail_20' ) start [2025-02-04 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399658', 'tblTempUsageDetail_20' ) end [2025-02-04 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399658', 'tblTempVendorCDR_20' ) start [2025-02-04 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399658', 'tblTempVendorCDR_20' ) end [2025-02-04 10:10:20] Production.INFO: ProcessCDR(1,14399658,1,1,2) [2025-02-04 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399658', 'tblTempUsageDetail_20' ) start [2025-02-04 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399658', 'tblTempUsageDetail_20' ) end [2025-02-04 10:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:10:25] Production.INFO: ==9208== Releasing lock... [2025-02-04 10:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:10:25] Production.INFO: 43.75 MB #Memory Used# [2025-02-04 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:11:05 [end_date_ymd] => 2025-02-04 10:11:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 07:11:05' and `end` < '2025-02-04 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-02-04 10:11:21] Production.INFO: count ==2187 [2025-02-04 10:11:22] Production.ERROR: pbx CDR StartTime 2025-02-04 07:11:05 - End Time 2025-02-04 10:11:05 [2025-02-04 10:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399664', 'tblTempUsageDetail_20' ) start [2025-02-04 10:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399664', 'tblTempUsageDetail_20' ) end [2025-02-04 10:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399664', 'tblTempVendorCDR_20' ) start [2025-02-04 10:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399664', 'tblTempVendorCDR_20' ) end [2025-02-04 10:11:22] Production.INFO: ProcessCDR(1,14399664,1,1,2) [2025-02-04 10:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399664', 'tblTempUsageDetail_20' ) start [2025-02-04 10:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399664', 'tblTempUsageDetail_20' ) end [2025-02-04 10:11:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:11:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:11:27] Production.INFO: ==9286== Releasing lock... [2025-02-04 10:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:11:27] Production.INFO: 44.5 MB #Memory Used# [2025-02-04 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:12:05 [end_date_ymd] => 2025-02-04 10:12:05 [RateCDR] => 1 ) [2025-02-04 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:12:05' and `end` < '2025-02-04 10:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:12:25] Production.INFO: count ==2196 [2025-02-04 10:12:26] Production.ERROR: pbx CDR StartTime 2025-02-04 07:12:05 - End Time 2025-02-04 10:12:05 [2025-02-04 10:12:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399669', 'tblTempUsageDetail_20' ) start [2025-02-04 10:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399669', 'tblTempUsageDetail_20' ) end [2025-02-04 10:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399669', 'tblTempVendorCDR_20' ) start [2025-02-04 10:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399669', 'tblTempVendorCDR_20' ) end [2025-02-04 10:12:26] Production.INFO: ProcessCDR(1,14399669,1,1,2) [2025-02-04 10:12:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:12:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:12:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:12:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399669', 'tblTempUsageDetail_20' ) start [2025-02-04 10:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399669', 'tblTempUsageDetail_20' ) end [2025-02-04 10:12:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:12:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:12:30] Production.INFO: ==9367== Releasing lock... [2025-02-04 10:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:12:30] Production.INFO: 44.75 MB #Memory Used# [2025-02-04 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:13:05 [end_date_ymd] => 2025-02-04 10:13:05 [RateCDR] => 1 ) [2025-02-04 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:13:05' and `end` < '2025-02-04 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:13:23] Production.INFO: count ==2214 [2025-02-04 10:13:24] Production.ERROR: pbx CDR StartTime 2025-02-04 07:13:05 - End Time 2025-02-04 10:13:05 [2025-02-04 10:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399674', 'tblTempUsageDetail_20' ) start [2025-02-04 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399674', 'tblTempUsageDetail_20' ) end [2025-02-04 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399674', 'tblTempVendorCDR_20' ) start [2025-02-04 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399674', 'tblTempVendorCDR_20' ) end [2025-02-04 10:13:24] Production.INFO: ProcessCDR(1,14399674,1,1,2) [2025-02-04 10:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399674', 'tblTempUsageDetail_20' ) start [2025-02-04 10:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399674', 'tblTempUsageDetail_20' ) end [2025-02-04 10:13:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:13:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:13:28] Production.INFO: ==9437== Releasing lock... [2025-02-04 10:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:13:28] Production.INFO: 45.25 MB #Memory Used# [2025-02-04 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:14:05 [end_date_ymd] => 2025-02-04 10:14:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 07:14:05' and `end` < '2025-02-04 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-02-04 10:14:22] Production.INFO: count ==2235 [2025-02-04 10:14:22] Production.ERROR: pbx CDR StartTime 2025-02-04 07:14:05 - End Time 2025-02-04 10:14:05 [2025-02-04 10:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399679', 'tblTempUsageDetail_20' ) start [2025-02-04 10:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399679', 'tblTempUsageDetail_20' ) end [2025-02-04 10:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399679', 'tblTempVendorCDR_20' ) start [2025-02-04 10:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399679', 'tblTempVendorCDR_20' ) end [2025-02-04 10:14:22] Production.INFO: ProcessCDR(1,14399679,1,1,2) [2025-02-04 10:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399679', 'tblTempUsageDetail_20' ) start [2025-02-04 10:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399679', 'tblTempUsageDetail_20' ) end [2025-02-04 10:14:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:14:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:14:28] Production.INFO: ==9511== Releasing lock... [2025-02-04 10:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:14:28] Production.INFO: 45 MB #Memory Used# [2025-02-04 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:15:05 [end_date_ymd] => 2025-02-04 10:15:05 [RateCDR] => 1 ) [2025-02-04 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:15:05' and `end` < '2025-02-04 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:15:26] Production.INFO: count ==2242 [2025-02-04 10:15:27] Production.ERROR: pbx CDR StartTime 2025-02-04 07:15:05 - End Time 2025-02-04 10:15:05 [2025-02-04 10:15:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399684', 'tblTempUsageDetail_20' ) start [2025-02-04 10:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399684', 'tblTempUsageDetail_20' ) end [2025-02-04 10:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399684', 'tblTempVendorCDR_20' ) start [2025-02-04 10:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399684', 'tblTempVendorCDR_20' ) end [2025-02-04 10:15:27] Production.INFO: ProcessCDR(1,14399684,1,1,2) [2025-02-04 10:15:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:15:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399684', 'tblTempUsageDetail_20' ) start [2025-02-04 10:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399684', 'tblTempUsageDetail_20' ) end [2025-02-04 10:15:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:15:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:15:32] Production.INFO: ==9583== Releasing lock... [2025-02-04 10:15:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:15:32] Production.INFO: 45.25 MB #Memory Used# [2025-02-04 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:16:05 [end_date_ymd] => 2025-02-04 10:16:05 [RateCDR] => 1 ) [2025-02-04 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:16:05' and `end` < '2025-02-04 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:16:21] Production.INFO: count ==2251 [2025-02-04 10:16:22] Production.ERROR: pbx CDR StartTime 2025-02-04 07:16:05 - End Time 2025-02-04 10:16:05 [2025-02-04 10:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399689', 'tblTempUsageDetail_20' ) start [2025-02-04 10:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399689', 'tblTempUsageDetail_20' ) end [2025-02-04 10:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399689', 'tblTempVendorCDR_20' ) start [2025-02-04 10:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399689', 'tblTempVendorCDR_20' ) end [2025-02-04 10:16:22] Production.INFO: ProcessCDR(1,14399689,1,1,2) [2025-02-04 10:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399689', 'tblTempUsageDetail_20' ) start [2025-02-04 10:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399689', 'tblTempUsageDetail_20' ) end [2025-02-04 10:16:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:16:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:16:26] Production.INFO: ==9662== Releasing lock... [2025-02-04 10:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:16:26] Production.INFO: 45 MB #Memory Used# [2025-02-04 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:17:06 [end_date_ymd] => 2025-02-04 10:17:06 [RateCDR] => 1 ) [2025-02-04 10:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:17:06' and `end` < '2025-02-04 10:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:17:24] Production.INFO: count ==2265 [2025-02-04 10:17:25] Production.ERROR: pbx CDR StartTime 2025-02-04 07:17:06 - End Time 2025-02-04 10:17:06 [2025-02-04 10:17:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399694', 'tblTempUsageDetail_20' ) start [2025-02-04 10:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399694', 'tblTempUsageDetail_20' ) end [2025-02-04 10:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399694', 'tblTempVendorCDR_20' ) start [2025-02-04 10:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399694', 'tblTempVendorCDR_20' ) end [2025-02-04 10:17:25] Production.INFO: ProcessCDR(1,14399694,1,1,2) [2025-02-04 10:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:17:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399694', 'tblTempUsageDetail_20' ) start [2025-02-04 10:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399694', 'tblTempUsageDetail_20' ) end [2025-02-04 10:17:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:17:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:17:30] Production.INFO: ==9735== Releasing lock... [2025-02-04 10:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:17:30] Production.INFO: 45 MB #Memory Used# [2025-02-04 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:18:05 [end_date_ymd] => 2025-02-04 10:18:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 07:18:05' and `end` < '2025-02-04 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-02-04 10:18:19] Production.INFO: count ==2274 [2025-02-04 10:18:20] Production.ERROR: pbx CDR StartTime 2025-02-04 07:18:05 - End Time 2025-02-04 10:18:05 [2025-02-04 10:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399699', 'tblTempUsageDetail_20' ) start [2025-02-04 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399699', 'tblTempUsageDetail_20' ) end [2025-02-04 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399699', 'tblTempVendorCDR_20' ) start [2025-02-04 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399699', 'tblTempVendorCDR_20' ) end [2025-02-04 10:18:20] Production.INFO: ProcessCDR(1,14399699,1,1,2) [2025-02-04 10:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399699', 'tblTempUsageDetail_20' ) start [2025-02-04 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399699', 'tblTempUsageDetail_20' ) end [2025-02-04 10:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:18:25] Production.INFO: ==9806== Releasing lock... [2025-02-04 10:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:18:25] Production.INFO: 45.25 MB #Memory Used# [2025-02-04 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:19:05 [end_date_ymd] => 2025-02-04 10:19:05 [RateCDR] => 1 ) [2025-02-04 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:19:05' and `end` < '2025-02-04 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:19:20] Production.INFO: count ==2283 [2025-02-04 10:19:20] Production.ERROR: pbx CDR StartTime 2025-02-04 07:19:05 - End Time 2025-02-04 10:19:05 [2025-02-04 10:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399704', 'tblTempUsageDetail_20' ) start [2025-02-04 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399704', 'tblTempUsageDetail_20' ) end [2025-02-04 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399704', 'tblTempVendorCDR_20' ) start [2025-02-04 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399704', 'tblTempVendorCDR_20' ) end [2025-02-04 10:19:21] Production.INFO: ProcessCDR(1,14399704,1,1,2) [2025-02-04 10:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399704', 'tblTempUsageDetail_20' ) start [2025-02-04 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399704', 'tblTempUsageDetail_20' ) end [2025-02-04 10:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:19:25] Production.INFO: ==9878== Releasing lock... [2025-02-04 10:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:19:25] Production.INFO: 45.25 MB #Memory Used# [2025-02-04 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:20:05 [end_date_ymd] => 2025-02-04 10:20:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 07:20:05' and `end` < '2025-02-04 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-02-04 10:20:24] Production.INFO: count ==2305 [2025-02-04 10:20:25] Production.ERROR: pbx CDR StartTime 2025-02-04 07:20:05 - End Time 2025-02-04 10:20:05 [2025-02-04 10:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399708', 'tblTempUsageDetail_20' ) start [2025-02-04 10:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399708', 'tblTempUsageDetail_20' ) end [2025-02-04 10:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399708', 'tblTempVendorCDR_20' ) start [2025-02-04 10:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399708', 'tblTempVendorCDR_20' ) end [2025-02-04 10:20:25] Production.INFO: ProcessCDR(1,14399708,1,1,2) [2025-02-04 10:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:20:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:20:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399708', 'tblTempUsageDetail_20' ) start [2025-02-04 10:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399708', 'tblTempUsageDetail_20' ) end [2025-02-04 10:20:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:20:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:20:30] Production.INFO: ==9989== Releasing lock... [2025-02-04 10:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:20:30] Production.INFO: 45.5 MB #Memory Used# [2025-02-04 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:21:05 [end_date_ymd] => 2025-02-04 10:21:05 [RateCDR] => 1 ) [2025-02-04 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:21:05' and `end` < '2025-02-04 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:21:23] Production.INFO: count ==2414 [2025-02-04 10:21:24] Production.ERROR: pbx CDR StartTime 2025-02-04 07:21:05 - End Time 2025-02-04 10:21:05 [2025-02-04 10:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399715', 'tblTempUsageDetail_20' ) start [2025-02-04 10:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399715', 'tblTempUsageDetail_20' ) end [2025-02-04 10:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399715', 'tblTempVendorCDR_20' ) start [2025-02-04 10:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399715', 'tblTempVendorCDR_20' ) end [2025-02-04 10:21:24] Production.INFO: ProcessCDR(1,14399715,1,1,2) [2025-02-04 10:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399715', 'tblTempUsageDetail_20' ) start [2025-02-04 10:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399715', 'tblTempUsageDetail_20' ) end [2025-02-04 10:21:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:21:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:21:29] Production.INFO: ==10061== Releasing lock... [2025-02-04 10:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:21:29] Production.INFO: 46.25 MB #Memory Used# [2025-02-04 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:22:05 [end_date_ymd] => 2025-02-04 10:22:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 07:22:05' and `end` < '2025-02-04 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-02-04 10:22:22] Production.INFO: count ==2435 [2025-02-04 10:22:23] Production.ERROR: pbx CDR StartTime 2025-02-04 07:22:05 - End Time 2025-02-04 10:22:05 [2025-02-04 10:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399720', 'tblTempUsageDetail_20' ) start [2025-02-04 10:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399720', 'tblTempUsageDetail_20' ) end [2025-02-04 10:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399720', 'tblTempVendorCDR_20' ) start [2025-02-04 10:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399720', 'tblTempVendorCDR_20' ) end [2025-02-04 10:22:23] Production.INFO: ProcessCDR(1,14399720,1,1,2) [2025-02-04 10:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399720', 'tblTempUsageDetail_20' ) start [2025-02-04 10:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399720', 'tblTempUsageDetail_20' ) end [2025-02-04 10:22:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:22:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:22:28] Production.INFO: ==10131== Releasing lock... [2025-02-04 10:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:22:28] Production.INFO: 46.25 MB #Memory Used# [2025-02-04 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:23:05 [end_date_ymd] => 2025-02-04 10:23:05 [RateCDR] => 1 ) [2025-02-04 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:23:05' and `end` < '2025-02-04 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:23:20] Production.INFO: count ==2459 [2025-02-04 10:23:20] Production.ERROR: pbx CDR StartTime 2025-02-04 07:23:05 - End Time 2025-02-04 10:23:05 [2025-02-04 10:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399725', 'tblTempUsageDetail_20' ) start [2025-02-04 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399725', 'tblTempUsageDetail_20' ) end [2025-02-04 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399725', 'tblTempVendorCDR_20' ) start [2025-02-04 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399725', 'tblTempVendorCDR_20' ) end [2025-02-04 10:23:21] Production.INFO: ProcessCDR(1,14399725,1,1,2) [2025-02-04 10:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399725', 'tblTempUsageDetail_20' ) start [2025-02-04 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399725', 'tblTempUsageDetail_20' ) end [2025-02-04 10:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:23:25] Production.INFO: ==10204== Releasing lock... [2025-02-04 10:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:23:25] Production.INFO: 46.5 MB #Memory Used# [2025-02-04 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:24:05 [end_date_ymd] => 2025-02-04 10:24:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 07:24:05' and `end` < '2025-02-04 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-02-04 10:24:23] Production.INFO: count ==2476 [2025-02-04 10:24:24] Production.ERROR: pbx CDR StartTime 2025-02-04 07:24:05 - End Time 2025-02-04 10:24:05 [2025-02-04 10:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399730', 'tblTempUsageDetail_20' ) start [2025-02-04 10:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399730', 'tblTempUsageDetail_20' ) end [2025-02-04 10:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399730', 'tblTempVendorCDR_20' ) start [2025-02-04 10:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399730', 'tblTempVendorCDR_20' ) end [2025-02-04 10:24:24] Production.INFO: ProcessCDR(1,14399730,1,1,2) [2025-02-04 10:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399730', 'tblTempUsageDetail_20' ) start [2025-02-04 10:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399730', 'tblTempUsageDetail_20' ) end [2025-02-04 10:24:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:24:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:24:29] Production.INFO: ==10277== Releasing lock... [2025-02-04 10:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:24:29] Production.INFO: 46.75 MB #Memory Used# [2025-02-04 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:25:05 [end_date_ymd] => 2025-02-04 10:25:05 [RateCDR] => 1 ) [2025-02-04 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:25:05' and `end` < '2025-02-04 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:25:27] Production.INFO: count ==2488 [2025-02-04 10:25:28] Production.ERROR: pbx CDR StartTime 2025-02-04 07:25:05 - End Time 2025-02-04 10:25:05 [2025-02-04 10:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399735', 'tblTempUsageDetail_20' ) start [2025-02-04 10:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399735', 'tblTempUsageDetail_20' ) end [2025-02-04 10:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399735', 'tblTempVendorCDR_20' ) start [2025-02-04 10:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399735', 'tblTempVendorCDR_20' ) end [2025-02-04 10:25:28] Production.INFO: ProcessCDR(1,14399735,1,1,2) [2025-02-04 10:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399735', 'tblTempUsageDetail_20' ) start [2025-02-04 10:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399735', 'tblTempUsageDetail_20' ) end [2025-02-04 10:25:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:25:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:25:32] Production.INFO: ==10349== Releasing lock... [2025-02-04 10:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:25:32] Production.INFO: 47 MB #Memory Used# [2025-02-04 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:26:05 [end_date_ymd] => 2025-02-04 10:26:05 [RateCDR] => 1 ) [2025-02-04 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:26:05' and `end` < '2025-02-04 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:26:21] Production.INFO: count ==2516 [2025-02-04 10:26:22] Production.ERROR: pbx CDR StartTime 2025-02-04 07:26:05 - End Time 2025-02-04 10:26:05 [2025-02-04 10:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399740', 'tblTempUsageDetail_20' ) start [2025-02-04 10:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399740', 'tblTempUsageDetail_20' ) end [2025-02-04 10:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399740', 'tblTempVendorCDR_20' ) start [2025-02-04 10:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399740', 'tblTempVendorCDR_20' ) end [2025-02-04 10:26:23] Production.INFO: ProcessCDR(1,14399740,1,1,2) [2025-02-04 10:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399740', 'tblTempUsageDetail_20' ) start [2025-02-04 10:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399740', 'tblTempUsageDetail_20' ) end [2025-02-04 10:26:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:26:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:26:27] Production.INFO: ==10422== Releasing lock... [2025-02-04 10:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:26:27] Production.INFO: 47.25 MB #Memory Used# [2025-02-04 10:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:27:04 [end_date_ymd] => 2025-02-04 10:27:04 [RateCDR] => 1 ) [2025-02-04 10: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-02-04 07:27:04' and `end` < '2025-02-04 10: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-02-04 10:27:19] Production.INFO: count ==2531 [2025-02-04 10:27:20] Production.ERROR: pbx CDR StartTime 2025-02-04 07:27:04 - End Time 2025-02-04 10:27:04 [2025-02-04 10:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399745', 'tblTempUsageDetail_20' ) start [2025-02-04 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399745', 'tblTempUsageDetail_20' ) end [2025-02-04 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399745', 'tblTempVendorCDR_20' ) start [2025-02-04 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399745', 'tblTempVendorCDR_20' ) end [2025-02-04 10:27:20] Production.INFO: ProcessCDR(1,14399745,1,1,2) [2025-02-04 10:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399745', 'tblTempUsageDetail_20' ) start [2025-02-04 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399745', 'tblTempUsageDetail_20' ) end [2025-02-04 10:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:27:24] Production.INFO: ==10491== Releasing lock... [2025-02-04 10:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:27:24] Production.INFO: 47 MB #Memory Used# [2025-02-04 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:28:05 [end_date_ymd] => 2025-02-04 10:28:05 [RateCDR] => 1 ) [2025-02-04 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:28:05' and `end` < '2025-02-04 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:28:25] Production.INFO: count ==2554 [2025-02-04 10:28:26] Production.ERROR: pbx CDR StartTime 2025-02-04 07:28:05 - End Time 2025-02-04 10:28:05 [2025-02-04 10:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399750', 'tblTempUsageDetail_20' ) start [2025-02-04 10:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399750', 'tblTempUsageDetail_20' ) end [2025-02-04 10:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399750', 'tblTempVendorCDR_20' ) start [2025-02-04 10:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399750', 'tblTempVendorCDR_20' ) end [2025-02-04 10:28:26] Production.INFO: ProcessCDR(1,14399750,1,1,2) [2025-02-04 10:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399750', 'tblTempUsageDetail_20' ) start [2025-02-04 10:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399750', 'tblTempUsageDetail_20' ) end [2025-02-04 10:28:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:28:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:28:31] Production.INFO: ==10568== Releasing lock... [2025-02-04 10:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:28:31] Production.INFO: 47.25 MB #Memory Used# [2025-02-04 10:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:29:06 [end_date_ymd] => 2025-02-04 10:29:06 [RateCDR] => 1 ) [2025-02-04 10:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:29:06' and `end` < '2025-02-04 10:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:29:22] Production.INFO: count ==2566 [2025-02-04 10:29:23] Production.ERROR: pbx CDR StartTime 2025-02-04 07:29:06 - End Time 2025-02-04 10:29:06 [2025-02-04 10:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399755', 'tblTempUsageDetail_20' ) start [2025-02-04 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399755', 'tblTempUsageDetail_20' ) end [2025-02-04 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399755', 'tblTempVendorCDR_20' ) start [2025-02-04 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399755', 'tblTempVendorCDR_20' ) end [2025-02-04 10:29:23] Production.INFO: ProcessCDR(1,14399755,1,1,2) [2025-02-04 10:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399755', 'tblTempUsageDetail_20' ) start [2025-02-04 10:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399755', 'tblTempUsageDetail_20' ) end [2025-02-04 10:29:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:29:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:29:28] Production.INFO: ==10641== Releasing lock... [2025-02-04 10:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:29:28] Production.INFO: 47.25 MB #Memory Used# [2025-02-04 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:30:06 [end_date_ymd] => 2025-02-04 10:30:06 [RateCDR] => 1 ) [2025-02-04 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:30:06' and `end` < '2025-02-04 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:30:19] Production.INFO: count ==2575 [2025-02-04 10:30:20] Production.ERROR: pbx CDR StartTime 2025-02-04 07:30:06 - End Time 2025-02-04 10:30:06 [2025-02-04 10:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399760', 'tblTempUsageDetail_20' ) start [2025-02-04 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399760', 'tblTempUsageDetail_20' ) end [2025-02-04 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399760', 'tblTempVendorCDR_20' ) start [2025-02-04 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399760', 'tblTempVendorCDR_20' ) end [2025-02-04 10:30:21] Production.INFO: ProcessCDR(1,14399760,1,1,2) [2025-02-04 10:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399760', 'tblTempUsageDetail_20' ) start [2025-02-04 10:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399760', 'tblTempUsageDetail_20' ) end [2025-02-04 10:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:30:24] Production.INFO: ==10718== Releasing lock... [2025-02-04 10:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:30:24] Production.INFO: 47.5 MB #Memory Used# [2025-02-04 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:31:05 [end_date_ymd] => 2025-02-04 10:31:05 [RateCDR] => 1 ) [2025-02-04 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:31:05' and `end` < '2025-02-04 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:31:19] Production.INFO: count ==2694 [2025-02-04 10:31:20] Production.ERROR: pbx CDR StartTime 2025-02-04 07:31:05 - End Time 2025-02-04 10:31:05 [2025-02-04 10:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399766', 'tblTempUsageDetail_20' ) start [2025-02-04 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399766', 'tblTempUsageDetail_20' ) end [2025-02-04 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399766', 'tblTempVendorCDR_20' ) start [2025-02-04 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399766', 'tblTempVendorCDR_20' ) end [2025-02-04 10:31:20] Production.INFO: ProcessCDR(1,14399766,1,1,2) [2025-02-04 10:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399766', 'tblTempUsageDetail_20' ) start [2025-02-04 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399766', 'tblTempUsageDetail_20' ) end [2025-02-04 10:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:31:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:31:25] Production.INFO: ==10790== Releasing lock... [2025-02-04 10:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:31:25] Production.INFO: 48.25 MB #Memory Used# [2025-02-04 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:32:05 [end_date_ymd] => 2025-02-04 10:32:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 07:32:05' and `end` < '2025-02-04 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-02-04 10:32:23] Production.INFO: count ==2717 [2025-02-04 10:32:24] Production.ERROR: pbx CDR StartTime 2025-02-04 07:32:05 - End Time 2025-02-04 10:32:05 [2025-02-04 10:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399771', 'tblTempUsageDetail_20' ) start [2025-02-04 10:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399771', 'tblTempUsageDetail_20' ) end [2025-02-04 10:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399771', 'tblTempVendorCDR_20' ) start [2025-02-04 10:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399771', 'tblTempVendorCDR_20' ) end [2025-02-04 10:32:24] Production.INFO: ProcessCDR(1,14399771,1,1,2) [2025-02-04 10:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:32:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:32:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399771', 'tblTempUsageDetail_20' ) start [2025-02-04 10:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399771', 'tblTempUsageDetail_20' ) end [2025-02-04 10:32:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:32:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:32:29] Production.INFO: ==10859== Releasing lock... [2025-02-04 10:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:32:29] Production.INFO: 48.5 MB #Memory Used# [2025-02-04 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:33:05 [end_date_ymd] => 2025-02-04 10:33:05 [RateCDR] => 1 ) [2025-02-04 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:33:05' and `end` < '2025-02-04 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:33:22] Production.INFO: count ==2725 [2025-02-04 10:33:23] Production.ERROR: pbx CDR StartTime 2025-02-04 07:33:05 - End Time 2025-02-04 10:33:05 [2025-02-04 10:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399776', 'tblTempUsageDetail_20' ) start [2025-02-04 10:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399776', 'tblTempUsageDetail_20' ) end [2025-02-04 10:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399776', 'tblTempVendorCDR_20' ) start [2025-02-04 10:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399776', 'tblTempVendorCDR_20' ) end [2025-02-04 10:33:23] Production.INFO: ProcessCDR(1,14399776,1,1,2) [2025-02-04 10:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399776', 'tblTempUsageDetail_20' ) start [2025-02-04 10:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399776', 'tblTempUsageDetail_20' ) end [2025-02-04 10:33:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:33:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:33:27] Production.INFO: ==10932== Releasing lock... [2025-02-04 10:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:33:27] Production.INFO: 48.5 MB #Memory Used# [2025-02-04 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:34:05 [end_date_ymd] => 2025-02-04 10:34:05 [RateCDR] => 1 ) [2025-02-04 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:34:05' and `end` < '2025-02-04 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:34:30] Production.INFO: count ==2752 [2025-02-04 10:34:31] Production.ERROR: pbx CDR StartTime 2025-02-04 07:34:05 - End Time 2025-02-04 10:34:05 [2025-02-04 10:34:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399781', 'tblTempUsageDetail_20' ) start [2025-02-04 10:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399781', 'tblTempUsageDetail_20' ) end [2025-02-04 10:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399781', 'tblTempVendorCDR_20' ) start [2025-02-04 10:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399781', 'tblTempVendorCDR_20' ) end [2025-02-04 10:34:31] Production.INFO: ProcessCDR(1,14399781,1,1,2) [2025-02-04 10:34:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:34:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:34:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:34:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:34:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399781', 'tblTempUsageDetail_20' ) start [2025-02-04 10:34:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399781', 'tblTempUsageDetail_20' ) end [2025-02-04 10:34:36] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:34:36] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:34:36] Production.INFO: ==11005== Releasing lock... [2025-02-04 10:34:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:34:36] Production.INFO: 48.75 MB #Memory Used# [2025-02-04 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:35:05 [end_date_ymd] => 2025-02-04 10:35:05 [RateCDR] => 1 ) [2025-02-04 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:35:05' and `end` < '2025-02-04 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:35:23] Production.INFO: count ==2765 [2025-02-04 10:35:24] Production.ERROR: pbx CDR StartTime 2025-02-04 07:35:05 - End Time 2025-02-04 10:35:05 [2025-02-04 10:35:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399786', 'tblTempUsageDetail_20' ) start [2025-02-04 10:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399786', 'tblTempUsageDetail_20' ) end [2025-02-04 10:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399786', 'tblTempVendorCDR_20' ) start [2025-02-04 10:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399786', 'tblTempVendorCDR_20' ) end [2025-02-04 10:35:25] Production.INFO: ProcessCDR(1,14399786,1,1,2) [2025-02-04 10:35:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:35:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:35:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:35:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399786', 'tblTempUsageDetail_20' ) start [2025-02-04 10:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399786', 'tblTempUsageDetail_20' ) end [2025-02-04 10:35:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:35:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:35:30] Production.INFO: ==11121== Releasing lock... [2025-02-04 10:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:35:30] Production.INFO: 48.75 MB #Memory Used# [2025-02-04 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:36:05 [end_date_ymd] => 2025-02-04 10:36:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 07:36:05' and `end` < '2025-02-04 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-02-04 10:36:24] Production.INFO: count ==2779 [2025-02-04 10:36:25] Production.ERROR: pbx CDR StartTime 2025-02-04 07:36:05 - End Time 2025-02-04 10:36:05 [2025-02-04 10:36:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399791', 'tblTempUsageDetail_20' ) start [2025-02-04 10:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399791', 'tblTempUsageDetail_20' ) end [2025-02-04 10:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399791', 'tblTempVendorCDR_20' ) start [2025-02-04 10:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399791', 'tblTempVendorCDR_20' ) end [2025-02-04 10:36:25] Production.INFO: ProcessCDR(1,14399791,1,1,2) [2025-02-04 10:36:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:36:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:36:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399791', 'tblTempUsageDetail_20' ) start [2025-02-04 10:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399791', 'tblTempUsageDetail_20' ) end [2025-02-04 10:36:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:36:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:36:30] Production.INFO: ==11194== Releasing lock... [2025-02-04 10:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:36:30] Production.INFO: 49 MB #Memory Used# [2025-02-04 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:37:05 [end_date_ymd] => 2025-02-04 10:37:05 [RateCDR] => 1 ) [2025-02-04 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:37:05' and `end` < '2025-02-04 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:37:25] Production.INFO: count ==2798 [2025-02-04 10:37:27] Production.ERROR: pbx CDR StartTime 2025-02-04 07:37:05 - End Time 2025-02-04 10:37:05 [2025-02-04 10:37:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399796', 'tblTempUsageDetail_20' ) start [2025-02-04 10:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399796', 'tblTempUsageDetail_20' ) end [2025-02-04 10:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399796', 'tblTempVendorCDR_20' ) start [2025-02-04 10:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399796', 'tblTempVendorCDR_20' ) end [2025-02-04 10:37:27] Production.INFO: ProcessCDR(1,14399796,1,1,2) [2025-02-04 10:37:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:37:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:37:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:37:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399796', 'tblTempUsageDetail_20' ) start [2025-02-04 10:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399796', 'tblTempUsageDetail_20' ) end [2025-02-04 10:37:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:37:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:37:31] Production.INFO: ==11266== Releasing lock... [2025-02-04 10:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:37:31] Production.INFO: 49.25 MB #Memory Used# [2025-02-04 10:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:38:06 [end_date_ymd] => 2025-02-04 10:38:06 [RateCDR] => 1 ) [2025-02-04 10:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:38:06' and `end` < '2025-02-04 10:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:38:23] Production.INFO: count ==2810 [2025-02-04 10:38:24] Production.ERROR: pbx CDR StartTime 2025-02-04 07:38:06 - End Time 2025-02-04 10:38:06 [2025-02-04 10:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399801', 'tblTempUsageDetail_20' ) start [2025-02-04 10:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399801', 'tblTempUsageDetail_20' ) end [2025-02-04 10:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399801', 'tblTempVendorCDR_20' ) start [2025-02-04 10:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399801', 'tblTempVendorCDR_20' ) end [2025-02-04 10:38:24] Production.INFO: ProcessCDR(1,14399801,1,1,2) [2025-02-04 10:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399801', 'tblTempUsageDetail_20' ) start [2025-02-04 10:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399801', 'tblTempUsageDetail_20' ) end [2025-02-04 10:38:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:38:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:38:29] Production.INFO: ==11342== Releasing lock... [2025-02-04 10:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:38:29] Production.INFO: 49 MB #Memory Used# [2025-02-04 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:39:05 [end_date_ymd] => 2025-02-04 10:39:05 [RateCDR] => 1 ) [2025-02-04 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:39:05' and `end` < '2025-02-04 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:39:19] Production.INFO: count ==2818 [2025-02-04 10:39:20] Production.ERROR: pbx CDR StartTime 2025-02-04 07:39:05 - End Time 2025-02-04 10:39:05 [2025-02-04 10:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399806', 'tblTempUsageDetail_20' ) start [2025-02-04 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399806', 'tblTempUsageDetail_20' ) end [2025-02-04 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399806', 'tblTempVendorCDR_20' ) start [2025-02-04 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399806', 'tblTempVendorCDR_20' ) end [2025-02-04 10:39:20] Production.INFO: ProcessCDR(1,14399806,1,1,2) [2025-02-04 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399806', 'tblTempUsageDetail_20' ) start [2025-02-04 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399806', 'tblTempUsageDetail_20' ) end [2025-02-04 10:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:39:25] Production.INFO: ==11413== Releasing lock... [2025-02-04 10:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:39:25] Production.INFO: 49.25 MB #Memory Used# [2025-02-04 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:40:06 [end_date_ymd] => 2025-02-04 10:40:06 [RateCDR] => 1 ) [2025-02-04 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:40:06' and `end` < '2025-02-04 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:40:20] Production.INFO: count ==2839 [2025-02-04 10:40:21] Production.ERROR: pbx CDR StartTime 2025-02-04 07:40:06 - End Time 2025-02-04 10:40:06 [2025-02-04 10:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399811', 'tblTempUsageDetail_20' ) start [2025-02-04 10:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399811', 'tblTempUsageDetail_20' ) end [2025-02-04 10:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399811', 'tblTempVendorCDR_20' ) start [2025-02-04 10:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399811', 'tblTempVendorCDR_20' ) end [2025-02-04 10:40:22] Production.INFO: ProcessCDR(1,14399811,1,1,2) [2025-02-04 10:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399811', 'tblTempUsageDetail_20' ) start [2025-02-04 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399811', 'tblTempUsageDetail_20' ) end [2025-02-04 10:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:40:26] Production.INFO: ==11489== Releasing lock... [2025-02-04 10:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:40:26] Production.INFO: 49.5 MB #Memory Used# [2025-02-04 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:41:05 [end_date_ymd] => 2025-02-04 10:41:05 [RateCDR] => 1 ) [2025-02-04 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:41:05' and `end` < '2025-02-04 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:41:18] Production.INFO: count ==2924 [2025-02-04 10:41:19] Production.ERROR: pbx CDR StartTime 2025-02-04 07:41:05 - End Time 2025-02-04 10:41:05 [2025-02-04 10:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399817', 'tblTempUsageDetail_20' ) start [2025-02-04 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399817', 'tblTempUsageDetail_20' ) end [2025-02-04 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399817', 'tblTempVendorCDR_20' ) start [2025-02-04 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399817', 'tblTempVendorCDR_20' ) end [2025-02-04 10:41:20] Production.INFO: ProcessCDR(1,14399817,1,1,2) [2025-02-04 10:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399817', 'tblTempUsageDetail_20' ) start [2025-02-04 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399817', 'tblTempUsageDetail_20' ) end [2025-02-04 10:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:41:24] Production.INFO: ==11565== Releasing lock... [2025-02-04 10:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:41:24] Production.INFO: 49.5 MB #Memory Used# [2025-02-04 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:42:05 [end_date_ymd] => 2025-02-04 10:42:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 07:42:05' and `end` < '2025-02-04 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-02-04 10:42:23] Production.INFO: count ==2936 [2025-02-04 10:42:24] Production.ERROR: pbx CDR StartTime 2025-02-04 07:42:05 - End Time 2025-02-04 10:42:05 [2025-02-04 10:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399822', 'tblTempUsageDetail_20' ) start [2025-02-04 10:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399822', 'tblTempUsageDetail_20' ) end [2025-02-04 10:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399822', 'tblTempVendorCDR_20' ) start [2025-02-04 10:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399822', 'tblTempVendorCDR_20' ) end [2025-02-04 10:42:24] Production.INFO: ProcessCDR(1,14399822,1,1,2) [2025-02-04 10:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399822', 'tblTempUsageDetail_20' ) start [2025-02-04 10:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399822', 'tblTempUsageDetail_20' ) end [2025-02-04 10:42:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:42:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:42:29] Production.INFO: ==11640== Releasing lock... [2025-02-04 10:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:42:29] Production.INFO: 50.75 MB #Memory Used# [2025-02-04 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:43:05 [end_date_ymd] => 2025-02-04 10:43:05 [RateCDR] => 1 ) [2025-02-04 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:43:05' and `end` < '2025-02-04 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:43:20] Production.INFO: count ==2953 [2025-02-04 10:43:21] Production.ERROR: pbx CDR StartTime 2025-02-04 07:43:05 - End Time 2025-02-04 10:43:05 [2025-02-04 10:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399827', 'tblTempUsageDetail_20' ) start [2025-02-04 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399827', 'tblTempUsageDetail_20' ) end [2025-02-04 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399827', 'tblTempVendorCDR_20' ) start [2025-02-04 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399827', 'tblTempVendorCDR_20' ) end [2025-02-04 10:43:21] Production.INFO: ProcessCDR(1,14399827,1,1,2) [2025-02-04 10:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399827', 'tblTempUsageDetail_20' ) start [2025-02-04 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399827', 'tblTempUsageDetail_20' ) end [2025-02-04 10:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:43:25] Production.INFO: ==11711== Releasing lock... [2025-02-04 10:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:43:25] Production.INFO: 50.25 MB #Memory Used# [2025-02-04 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:44:05 [end_date_ymd] => 2025-02-04 10:44:05 [RateCDR] => 1 ) [2025-02-04 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:44:05' and `end` < '2025-02-04 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:44:20] Production.INFO: count ==2962 [2025-02-04 10:44:21] Production.ERROR: pbx CDR StartTime 2025-02-04 07:44:05 - End Time 2025-02-04 10:44:05 [2025-02-04 10:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399832', 'tblTempUsageDetail_20' ) start [2025-02-04 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399832', 'tblTempUsageDetail_20' ) end [2025-02-04 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399832', 'tblTempVendorCDR_20' ) start [2025-02-04 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399832', 'tblTempVendorCDR_20' ) end [2025-02-04 10:44:21] Production.INFO: ProcessCDR(1,14399832,1,1,2) [2025-02-04 10:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399832', 'tblTempUsageDetail_20' ) start [2025-02-04 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399832', 'tblTempUsageDetail_20' ) end [2025-02-04 10:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:44:26] Production.INFO: ==11784== Releasing lock... [2025-02-04 10:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:44:26] Production.INFO: 50 MB #Memory Used# [2025-02-04 10:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:45:06 [end_date_ymd] => 2025-02-04 10:45:06 [RateCDR] => 1 ) [2025-02-04 10:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:45:06' and `end` < '2025-02-04 10:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:45:21] Production.INFO: count ==2971 [2025-02-04 10:45:22] Production.ERROR: pbx CDR StartTime 2025-02-04 07:45:06 - End Time 2025-02-04 10:45:06 [2025-02-04 10:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399837', 'tblTempUsageDetail_20' ) start [2025-02-04 10:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399837', 'tblTempUsageDetail_20' ) end [2025-02-04 10:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399837', 'tblTempVendorCDR_20' ) start [2025-02-04 10:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399837', 'tblTempVendorCDR_20' ) end [2025-02-04 10:45:22] Production.INFO: ProcessCDR(1,14399837,1,1,2) [2025-02-04 10:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399837', 'tblTempUsageDetail_20' ) start [2025-02-04 10:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399837', 'tblTempUsageDetail_20' ) end [2025-02-04 10:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:45:26] Production.INFO: ==11859== Releasing lock... [2025-02-04 10:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:45:26] Production.INFO: 50 MB #Memory Used# [2025-02-04 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:46:05 [end_date_ymd] => 2025-02-04 10:46:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 07:46:05' and `end` < '2025-02-04 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-02-04 10:46:19] Production.INFO: count ==2977 [2025-02-04 10:46:20] Production.ERROR: pbx CDR StartTime 2025-02-04 07:46:05 - End Time 2025-02-04 10:46:05 [2025-02-04 10:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399842', 'tblTempUsageDetail_20' ) start [2025-02-04 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399842', 'tblTempUsageDetail_20' ) end [2025-02-04 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399842', 'tblTempVendorCDR_20' ) start [2025-02-04 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399842', 'tblTempVendorCDR_20' ) end [2025-02-04 10:46:20] Production.INFO: ProcessCDR(1,14399842,1,1,2) [2025-02-04 10:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399842', 'tblTempUsageDetail_20' ) start [2025-02-04 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399842', 'tblTempUsageDetail_20' ) end [2025-02-04 10:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:46:25] Production.INFO: ==11930== Releasing lock... [2025-02-04 10:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:46:25] Production.INFO: 50.25 MB #Memory Used# [2025-02-04 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:47:05 [end_date_ymd] => 2025-02-04 10:47:05 [RateCDR] => 1 ) [2025-02-04 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:47:05' and `end` < '2025-02-04 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:47:19] Production.INFO: count ==2990 [2025-02-04 10:47:20] Production.ERROR: pbx CDR StartTime 2025-02-04 07:47:05 - End Time 2025-02-04 10:47:05 [2025-02-04 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399847', 'tblTempUsageDetail_20' ) start [2025-02-04 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399847', 'tblTempUsageDetail_20' ) end [2025-02-04 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399847', 'tblTempVendorCDR_20' ) start [2025-02-04 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399847', 'tblTempVendorCDR_20' ) end [2025-02-04 10:47:20] Production.INFO: ProcessCDR(1,14399847,1,1,2) [2025-02-04 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399847', 'tblTempUsageDetail_20' ) start [2025-02-04 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399847', 'tblTempUsageDetail_20' ) end [2025-02-04 10:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:47:25] Production.INFO: ==12002== Releasing lock... [2025-02-04 10:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:47:25] Production.INFO: 50.5 MB #Memory Used# [2025-02-04 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:48:05 [end_date_ymd] => 2025-02-04 10:48:05 [RateCDR] => 1 ) [2025-02-04 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:48:05' and `end` < '2025-02-04 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:48:30] Production.INFO: count ==2989 [2025-02-04 10:48:31] Production.ERROR: pbx CDR StartTime 2025-02-04 07:48:05 - End Time 2025-02-04 10:48:05 [2025-02-04 10:48:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399852', 'tblTempUsageDetail_20' ) start [2025-02-04 10:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399852', 'tblTempUsageDetail_20' ) end [2025-02-04 10:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399852', 'tblTempVendorCDR_20' ) start [2025-02-04 10:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399852', 'tblTempVendorCDR_20' ) end [2025-02-04 10:48:32] Production.INFO: ProcessCDR(1,14399852,1,1,2) [2025-02-04 10:48:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:48:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:48:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:48:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:48:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399852', 'tblTempUsageDetail_20' ) start [2025-02-04 10:48:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399852', 'tblTempUsageDetail_20' ) end [2025-02-04 10:48:36] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:48:36] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:48:36] Production.INFO: ==12080== Releasing lock... [2025-02-04 10:48:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:48:36] Production.INFO: 50.5 MB #Memory Used# [2025-02-04 10:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:49:06 [end_date_ymd] => 2025-02-04 10:49:06 [RateCDR] => 1 ) [2025-02-04 10:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:49:06' and `end` < '2025-02-04 10:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:49:24] Production.INFO: count ==3002 [2025-02-04 10:49:25] Production.ERROR: pbx CDR StartTime 2025-02-04 07:49:06 - End Time 2025-02-04 10:49:06 [2025-02-04 10:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399857', 'tblTempUsageDetail_20' ) start [2025-02-04 10:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399857', 'tblTempUsageDetail_20' ) end [2025-02-04 10:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399857', 'tblTempVendorCDR_20' ) start [2025-02-04 10:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399857', 'tblTempVendorCDR_20' ) end [2025-02-04 10:49:25] Production.INFO: ProcessCDR(1,14399857,1,1,2) [2025-02-04 10:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399857', 'tblTempUsageDetail_20' ) start [2025-02-04 10:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399857', 'tblTempUsageDetail_20' ) end [2025-02-04 10:49:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:49:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:49:30] Production.INFO: ==12156== Releasing lock... [2025-02-04 10:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:49:30] Production.INFO: 50.5 MB #Memory Used# [2025-02-04 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:50:05 [end_date_ymd] => 2025-02-04 10:50:05 [RateCDR] => 1 ) [2025-02-04 10:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:50:05' and `end` < '2025-02-04 10:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:50:24] Production.INFO: count ==3015 [2025-02-04 10:50:25] Production.ERROR: pbx CDR StartTime 2025-02-04 07:50:05 - End Time 2025-02-04 10:50:05 [2025-02-04 10:50:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399863', 'tblTempUsageDetail_20' ) start [2025-02-04 10:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399863', 'tblTempUsageDetail_20' ) end [2025-02-04 10:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399863', 'tblTempVendorCDR_20' ) start [2025-02-04 10:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399863', 'tblTempVendorCDR_20' ) end [2025-02-04 10:50:25] Production.INFO: ProcessCDR(1,14399863,1,1,2) [2025-02-04 10:50:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399863', 'tblTempUsageDetail_20' ) start [2025-02-04 10:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399863', 'tblTempUsageDetail_20' ) end [2025-02-04 10:50:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:50:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:50:29] Production.INFO: ==12272== Releasing lock... [2025-02-04 10:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:50:29] Production.INFO: 51.75 MB #Memory Used# [2025-02-04 10:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:51:06 [end_date_ymd] => 2025-02-04 10:51:06 [RateCDR] => 1 ) [2025-02-04 10:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:51:06' and `end` < '2025-02-04 10:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:51:21] Production.INFO: count ==3105 [2025-02-04 10:51:22] Production.ERROR: pbx CDR StartTime 2025-02-04 07:51:06 - End Time 2025-02-04 10:51:06 [2025-02-04 10:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399868', 'tblTempUsageDetail_20' ) start [2025-02-04 10:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399868', 'tblTempUsageDetail_20' ) end [2025-02-04 10:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399868', 'tblTempVendorCDR_20' ) start [2025-02-04 10:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399868', 'tblTempVendorCDR_20' ) end [2025-02-04 10:51:22] Production.INFO: ProcessCDR(1,14399868,1,1,2) [2025-02-04 10:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399868', 'tblTempUsageDetail_20' ) start [2025-02-04 10:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399868', 'tblTempUsageDetail_20' ) end [2025-02-04 10:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:51:26] Production.INFO: ==12346== Releasing lock... [2025-02-04 10:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:51:26] Production.INFO: 52.25 MB #Memory Used# [2025-02-04 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:52:05 [end_date_ymd] => 2025-02-04 10:52:05 [RateCDR] => 1 ) [2025-02-04 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:52:05' and `end` < '2025-02-04 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:52:23] Production.INFO: count ==3126 [2025-02-04 10:52:24] Production.ERROR: pbx CDR StartTime 2025-02-04 07:52:05 - End Time 2025-02-04 10:52:05 [2025-02-04 10:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399870', 'tblTempUsageDetail_20' ) start [2025-02-04 10:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399870', 'tblTempUsageDetail_20' ) end [2025-02-04 10:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399870', 'tblTempVendorCDR_20' ) start [2025-02-04 10:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399870', 'tblTempVendorCDR_20' ) end [2025-02-04 10:52:25] Production.INFO: ProcessCDR(1,14399870,1,1,2) [2025-02-04 10:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399870', 'tblTempUsageDetail_20' ) start [2025-02-04 10:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399870', 'tblTempUsageDetail_20' ) end [2025-02-04 10:52:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:52:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:52:29] Production.INFO: ==12419== Releasing lock... [2025-02-04 10:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:52:29] Production.INFO: 51.5 MB #Memory Used# [2025-02-04 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:53:05 [end_date_ymd] => 2025-02-04 10:53:05 [RateCDR] => 1 ) [2025-02-04 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:53:05' and `end` < '2025-02-04 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:53:26] Production.INFO: count ==3144 [2025-02-04 10:53:27] Production.ERROR: pbx CDR StartTime 2025-02-04 07:53:05 - End Time 2025-02-04 10:53:05 [2025-02-04 10:53:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399878', 'tblTempUsageDetail_20' ) start [2025-02-04 10:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399878', 'tblTempUsageDetail_20' ) end [2025-02-04 10:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399878', 'tblTempVendorCDR_20' ) start [2025-02-04 10:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399878', 'tblTempVendorCDR_20' ) end [2025-02-04 10:53:27] Production.INFO: ProcessCDR(1,14399878,1,1,2) [2025-02-04 10:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:53:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:53:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:53:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399878', 'tblTempUsageDetail_20' ) start [2025-02-04 10:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399878', 'tblTempUsageDetail_20' ) end [2025-02-04 10:53:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:53:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:53:31] Production.INFO: ==12490== Releasing lock... [2025-02-04 10:53:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:53:31] Production.INFO: 51.75 MB #Memory Used# [2025-02-04 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:54:05 [end_date_ymd] => 2025-02-04 10:54:05 [RateCDR] => 1 ) [2025-02-04 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:54:05' and `end` < '2025-02-04 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:54:25] Production.INFO: count ==3155 [2025-02-04 10:54:26] Production.ERROR: pbx CDR StartTime 2025-02-04 07:54:05 - End Time 2025-02-04 10:54:05 [2025-02-04 10:54:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399883', 'tblTempUsageDetail_20' ) start [2025-02-04 10:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399883', 'tblTempUsageDetail_20' ) end [2025-02-04 10:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399883', 'tblTempVendorCDR_20' ) start [2025-02-04 10:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399883', 'tblTempVendorCDR_20' ) end [2025-02-04 10:54:26] Production.INFO: ProcessCDR(1,14399883,1,1,2) [2025-02-04 10:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:54:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399883', 'tblTempUsageDetail_20' ) start [2025-02-04 10:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399883', 'tblTempUsageDetail_20' ) end [2025-02-04 10:54:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:54:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:54:31] Production.INFO: ==12564== Releasing lock... [2025-02-04 10:54:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:54:31] Production.INFO: 52 MB #Memory Used# [2025-02-04 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:55:05 [end_date_ymd] => 2025-02-04 10:55:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 07:55:05' and `end` < '2025-02-04 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-02-04 10:55:27] Production.INFO: count ==3177 [2025-02-04 10:55:29] Production.ERROR: pbx CDR StartTime 2025-02-04 07:55:05 - End Time 2025-02-04 10:55:05 [2025-02-04 10:55:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399888', 'tblTempUsageDetail_20' ) start [2025-02-04 10:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399888', 'tblTempUsageDetail_20' ) end [2025-02-04 10:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399888', 'tblTempVendorCDR_20' ) start [2025-02-04 10:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399888', 'tblTempVendorCDR_20' ) end [2025-02-04 10:55:29] Production.INFO: ProcessCDR(1,14399888,1,1,2) [2025-02-04 10:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:55:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399888', 'tblTempUsageDetail_20' ) start [2025-02-04 10:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399888', 'tblTempUsageDetail_20' ) end [2025-02-04 10:55:34] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:55:34] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:55:34] Production.INFO: ==12648== Releasing lock... [2025-02-04 10:55:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:55:34] Production.INFO: 51.75 MB #Memory Used# [2025-02-04 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:56:05 [end_date_ymd] => 2025-02-04 10:56:05 [RateCDR] => 1 ) [2025-02-04 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:56:05' and `end` < '2025-02-04 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:56:21] Production.INFO: count ==3177 [2025-02-04 10:56:23] Production.ERROR: pbx CDR StartTime 2025-02-04 07:56:05 - End Time 2025-02-04 10:56:05 [2025-02-04 10:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399893', 'tblTempUsageDetail_20' ) start [2025-02-04 10:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399893', 'tblTempUsageDetail_20' ) end [2025-02-04 10:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399893', 'tblTempVendorCDR_20' ) start [2025-02-04 10:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399893', 'tblTempVendorCDR_20' ) end [2025-02-04 10:56:23] Production.INFO: ProcessCDR(1,14399893,1,1,2) [2025-02-04 10:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399893', 'tblTempUsageDetail_20' ) start [2025-02-04 10:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399893', 'tblTempUsageDetail_20' ) end [2025-02-04 10:56:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:56:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:56:28] Production.INFO: ==12724== Releasing lock... [2025-02-04 10:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:56:28] Production.INFO: 52.25 MB #Memory Used# [2025-02-04 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:57:05 [end_date_ymd] => 2025-02-04 10:57:05 [RateCDR] => 1 ) [2025-02-04 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:57:05' and `end` < '2025-02-04 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:57:26] Production.INFO: count ==3213 [2025-02-04 10:57:27] Production.ERROR: pbx CDR StartTime 2025-02-04 07:57:05 - End Time 2025-02-04 10:57:05 [2025-02-04 10:57:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399898', 'tblTempUsageDetail_20' ) start [2025-02-04 10:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399898', 'tblTempUsageDetail_20' ) end [2025-02-04 10:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399898', 'tblTempVendorCDR_20' ) start [2025-02-04 10:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399898', 'tblTempVendorCDR_20' ) end [2025-02-04 10:57:27] Production.INFO: ProcessCDR(1,14399898,1,1,2) [2025-02-04 10:57:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:57:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:57:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:57:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399898', 'tblTempUsageDetail_20' ) start [2025-02-04 10:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399898', 'tblTempUsageDetail_20' ) end [2025-02-04 10:57:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:57:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:57:32] Production.INFO: ==12796== Releasing lock... [2025-02-04 10:57:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:57:32] Production.INFO: 52 MB #Memory Used# [2025-02-04 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:58:05 [end_date_ymd] => 2025-02-04 10:58:05 [RateCDR] => 1 ) [2025-02-04 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:58:05' and `end` < '2025-02-04 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:58:21] Production.INFO: count ==3224 [2025-02-04 10:58:23] Production.ERROR: pbx CDR StartTime 2025-02-04 07:58:05 - End Time 2025-02-04 10:58:05 [2025-02-04 10:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399903', 'tblTempUsageDetail_20' ) start [2025-02-04 10:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399903', 'tblTempUsageDetail_20' ) end [2025-02-04 10:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399903', 'tblTempVendorCDR_20' ) start [2025-02-04 10:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399903', 'tblTempVendorCDR_20' ) end [2025-02-04 10:58:23] Production.INFO: ProcessCDR(1,14399903,1,1,2) [2025-02-04 10:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399903', 'tblTempUsageDetail_20' ) start [2025-02-04 10:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399903', 'tblTempUsageDetail_20' ) end [2025-02-04 10:58:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:58:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:58:27] Production.INFO: ==12873== Releasing lock... [2025-02-04 10:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:58:27] Production.INFO: 52 MB #Memory Used# [2025-02-04 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 07:59:05 [end_date_ymd] => 2025-02-04 10:59:05 [RateCDR] => 1 ) [2025-02-04 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 07:59:05' and `end` < '2025-02-04 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 10:59:20] Production.INFO: count ==3229 [2025-02-04 10:59:22] Production.ERROR: pbx CDR StartTime 2025-02-04 07:59:05 - End Time 2025-02-04 10:59:05 [2025-02-04 10:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 10:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399908', 'tblTempUsageDetail_20' ) start [2025-02-04 10:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399908', 'tblTempUsageDetail_20' ) end [2025-02-04 10:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399908', 'tblTempVendorCDR_20' ) start [2025-02-04 10:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399908', 'tblTempVendorCDR_20' ) end [2025-02-04 10:59:22] Production.INFO: ProcessCDR(1,14399908,1,1,2) [2025-02-04 10:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 10:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 10:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399908', 'tblTempUsageDetail_20' ) start [2025-02-04 10:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399908', 'tblTempUsageDetail_20' ) end [2025-02-04 10:59:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 10:59:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 10:59:27] Production.INFO: ==12946== Releasing lock... [2025-02-04 10:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 10:59:27] Production.INFO: 52 MB #Memory Used# [2025-02-04 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:00:05 [end_date_ymd] => 2025-02-04 11:00:05 [RateCDR] => 1 ) [2025-02-04 11:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:00:05' and `end` < '2025-02-04 11:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:00:26] Production.INFO: count ==3262 [2025-02-04 11:00:28] Production.ERROR: pbx CDR StartTime 2025-02-04 08:00:05 - End Time 2025-02-04 11:00:05 [2025-02-04 11:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399913', 'tblTempUsageDetail_20' ) start [2025-02-04 11:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399913', 'tblTempUsageDetail_20' ) end [2025-02-04 11:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399913', 'tblTempVendorCDR_20' ) start [2025-02-04 11:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399913', 'tblTempVendorCDR_20' ) end [2025-02-04 11:00:28] Production.INFO: ProcessCDR(1,14399913,1,1,2) [2025-02-04 11:00:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399913', 'tblTempUsageDetail_20' ) start [2025-02-04 11:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399913', 'tblTempUsageDetail_20' ) end [2025-02-04 11:00:33] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:00:33] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:00:33] Production.INFO: ==13022== Releasing lock... [2025-02-04 11:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:00:33] Production.INFO: 53.75 MB #Memory Used# [2025-02-04 11:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:01:06 [end_date_ymd] => 2025-02-04 11:01:06 [RateCDR] => 1 ) [2025-02-04 11:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:01:06' and `end` < '2025-02-04 11:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:01:29] Production.INFO: count ==3385 [2025-02-04 11:01:31] Production.ERROR: pbx CDR StartTime 2025-02-04 08:01:06 - End Time 2025-02-04 11:01:06 [2025-02-04 11:01:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399919', 'tblTempUsageDetail_20' ) start [2025-02-04 11:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399919', 'tblTempUsageDetail_20' ) end [2025-02-04 11:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399919', 'tblTempVendorCDR_20' ) start [2025-02-04 11:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399919', 'tblTempVendorCDR_20' ) end [2025-02-04 11:01:31] Production.INFO: ProcessCDR(1,14399919,1,1,2) [2025-02-04 11:01:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:01:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:01:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:01:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:01:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399919', 'tblTempUsageDetail_20' ) start [2025-02-04 11:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399919', 'tblTempUsageDetail_20' ) end [2025-02-04 11:01:36] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:01:36] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:01:36] Production.INFO: ==13185== Releasing lock... [2025-02-04 11:01:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:01:36] Production.INFO: 53.5 MB #Memory Used# [2025-02-04 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:02:05 [end_date_ymd] => 2025-02-04 11:02:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 08:02:05' and `end` < '2025-02-04 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-02-04 11:02:22] Production.INFO: count ==3403 [2025-02-04 11:02:24] Production.ERROR: pbx CDR StartTime 2025-02-04 08:02:05 - End Time 2025-02-04 11:02:05 [2025-02-04 11:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399924', 'tblTempUsageDetail_20' ) start [2025-02-04 11:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399924', 'tblTempUsageDetail_20' ) end [2025-02-04 11:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399924', 'tblTempVendorCDR_20' ) start [2025-02-04 11:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399924', 'tblTempVendorCDR_20' ) end [2025-02-04 11:02:24] Production.INFO: ProcessCDR(1,14399924,1,1,2) [2025-02-04 11:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399924', 'tblTempUsageDetail_20' ) start [2025-02-04 11:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399924', 'tblTempUsageDetail_20' ) end [2025-02-04 11:02:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:02:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:02:28] Production.INFO: ==13259== Releasing lock... [2025-02-04 11:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:02:28] Production.INFO: 53.75 MB #Memory Used# [2025-02-04 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:03:05 [end_date_ymd] => 2025-02-04 11:03:05 [RateCDR] => 1 ) [2025-02-04 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:03:05' and `end` < '2025-02-04 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:03:23] Production.INFO: count ==3408 [2025-02-04 11:03:25] Production.ERROR: pbx CDR StartTime 2025-02-04 08:03:05 - End Time 2025-02-04 11:03:05 [2025-02-04 11:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399929', 'tblTempUsageDetail_20' ) start [2025-02-04 11:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399929', 'tblTempUsageDetail_20' ) end [2025-02-04 11:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399929', 'tblTempVendorCDR_20' ) start [2025-02-04 11:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399929', 'tblTempVendorCDR_20' ) end [2025-02-04 11:03:25] Production.INFO: ProcessCDR(1,14399929,1,1,2) [2025-02-04 11:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399929', 'tblTempUsageDetail_20' ) start [2025-02-04 11:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399929', 'tblTempUsageDetail_20' ) end [2025-02-04 11:03:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:03:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:03:30] Production.INFO: ==13332== Releasing lock... [2025-02-04 11:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:03:30] Production.INFO: 53.75 MB #Memory Used# [2025-02-04 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:04:05 [end_date_ymd] => 2025-02-04 11:04:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 08:04:05' and `end` < '2025-02-04 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-02-04 11:04:19] Production.INFO: count ==3421 [2025-02-04 11:04:21] Production.ERROR: pbx CDR StartTime 2025-02-04 08:04:05 - End Time 2025-02-04 11:04:05 [2025-02-04 11:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399934', 'tblTempUsageDetail_20' ) start [2025-02-04 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399934', 'tblTempUsageDetail_20' ) end [2025-02-04 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399934', 'tblTempVendorCDR_20' ) start [2025-02-04 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399934', 'tblTempVendorCDR_20' ) end [2025-02-04 11:04:21] Production.INFO: ProcessCDR(1,14399934,1,1,2) [2025-02-04 11:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399934', 'tblTempUsageDetail_20' ) start [2025-02-04 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399934', 'tblTempUsageDetail_20' ) end [2025-02-04 11:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:04:25] Production.INFO: ==13404== Releasing lock... [2025-02-04 11:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:04:25] Production.INFO: 54.25 MB #Memory Used# [2025-02-04 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:05:05 [end_date_ymd] => 2025-02-04 11:05:05 [RateCDR] => 1 ) [2025-02-04 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:05:05' and `end` < '2025-02-04 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:05:23] Production.INFO: count ==3418 [2025-02-04 11:05:25] Production.ERROR: pbx CDR StartTime 2025-02-04 08:05:05 - End Time 2025-02-04 11:05:05 [2025-02-04 11:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399939', 'tblTempUsageDetail_20' ) start [2025-02-04 11:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399939', 'tblTempUsageDetail_20' ) end [2025-02-04 11:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399939', 'tblTempVendorCDR_20' ) start [2025-02-04 11:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399939', 'tblTempVendorCDR_20' ) end [2025-02-04 11:05:25] Production.INFO: ProcessCDR(1,14399939,1,1,2) [2025-02-04 11:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399939', 'tblTempUsageDetail_20' ) start [2025-02-04 11:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399939', 'tblTempUsageDetail_20' ) end [2025-02-04 11:05:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:05:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:05:30] Production.INFO: ==13555== Releasing lock... [2025-02-04 11:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:05:30] Production.INFO: 54.25 MB #Memory Used# [2025-02-04 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:06:06 [end_date_ymd] => 2025-02-04 11:06:06 [RateCDR] => 1 ) [2025-02-04 11:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:06:06' and `end` < '2025-02-04 11:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:06:31] Production.INFO: count ==3434 [2025-02-04 11:06:32] Production.ERROR: pbx CDR StartTime 2025-02-04 08:06:06 - End Time 2025-02-04 11:06:06 [2025-02-04 11:06:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399944', 'tblTempUsageDetail_20' ) start [2025-02-04 11:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399944', 'tblTempUsageDetail_20' ) end [2025-02-04 11:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399944', 'tblTempVendorCDR_20' ) start [2025-02-04 11:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399944', 'tblTempVendorCDR_20' ) end [2025-02-04 11:06:32] Production.INFO: ProcessCDR(1,14399944,1,1,2) [2025-02-04 11:06:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:06:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:06:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:06:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:06:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399944', 'tblTempUsageDetail_20' ) start [2025-02-04 11:06:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399944', 'tblTempUsageDetail_20' ) end [2025-02-04 11:06:37] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:06:38] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:06:38] Production.INFO: ==13667== Releasing lock... [2025-02-04 11:06:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:06:38] Production.INFO: 54.5 MB #Memory Used# [2025-02-04 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:07:05 [end_date_ymd] => 2025-02-04 11:07:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 08:07:05' and `end` < '2025-02-04 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-02-04 11:07:27] Production.INFO: count ==3463 [2025-02-04 11:07:29] Production.ERROR: pbx CDR StartTime 2025-02-04 08:07:05 - End Time 2025-02-04 11:07:05 [2025-02-04 11:07:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399949', 'tblTempUsageDetail_20' ) start [2025-02-04 11:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399949', 'tblTempUsageDetail_20' ) end [2025-02-04 11:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399949', 'tblTempVendorCDR_20' ) start [2025-02-04 11:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399949', 'tblTempVendorCDR_20' ) end [2025-02-04 11:07:29] Production.INFO: ProcessCDR(1,14399949,1,1,2) [2025-02-04 11:07:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:07:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:07:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:07:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399949', 'tblTempUsageDetail_20' ) start [2025-02-04 11:07:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399949', 'tblTempUsageDetail_20' ) end [2025-02-04 11:07:35] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:07:35] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:07:35] Production.INFO: ==13739== Releasing lock... [2025-02-04 11:07:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:07:35] Production.INFO: 54.5 MB #Memory Used# [2025-02-04 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:08:06 [end_date_ymd] => 2025-02-04 11:08:06 [RateCDR] => 1 ) [2025-02-04 11:08:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:08:06' and `end` < '2025-02-04 11:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:08:25] Production.INFO: count ==3481 [2025-02-04 11:08:27] Production.ERROR: pbx CDR StartTime 2025-02-04 08:08:06 - End Time 2025-02-04 11:08:06 [2025-02-04 11:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399954', 'tblTempUsageDetail_20' ) start [2025-02-04 11:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399954', 'tblTempUsageDetail_20' ) end [2025-02-04 11:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399954', 'tblTempVendorCDR_20' ) start [2025-02-04 11:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399954', 'tblTempVendorCDR_20' ) end [2025-02-04 11:08:27] Production.INFO: ProcessCDR(1,14399954,1,1,2) [2025-02-04 11:08:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:08:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:08:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399954', 'tblTempUsageDetail_20' ) start [2025-02-04 11:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399954', 'tblTempUsageDetail_20' ) end [2025-02-04 11:08:33] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:08:33] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:08:33] Production.INFO: ==13892== Releasing lock... [2025-02-04 11:08:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:08:33] Production.INFO: 54.25 MB #Memory Used# [2025-02-04 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:09:05 [end_date_ymd] => 2025-02-04 11:09:05 [RateCDR] => 1 ) [2025-02-04 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:09:05' and `end` < '2025-02-04 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:09:28] Production.INFO: count ==3510 [2025-02-04 11:09:29] Production.ERROR: pbx CDR StartTime 2025-02-04 08:09:05 - End Time 2025-02-04 11:09:05 [2025-02-04 11:09:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399959', 'tblTempUsageDetail_20' ) start [2025-02-04 11:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399959', 'tblTempUsageDetail_20' ) end [2025-02-04 11:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399959', 'tblTempVendorCDR_20' ) start [2025-02-04 11:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399959', 'tblTempVendorCDR_20' ) end [2025-02-04 11:09:29] Production.INFO: ProcessCDR(1,14399959,1,1,2) [2025-02-04 11:09:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:09:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:09:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:09:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:09:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399959', 'tblTempUsageDetail_20' ) start [2025-02-04 11:09:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399959', 'tblTempUsageDetail_20' ) end [2025-02-04 11:09:34] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:09:34] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:09:34] Production.INFO: ==13966== Releasing lock... [2025-02-04 11:09:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:09:34] Production.INFO: 54.25 MB #Memory Used# [2025-02-04 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:10:06 [end_date_ymd] => 2025-02-04 11:10:06 [RateCDR] => 1 ) [2025-02-04 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-02-04 08:10:06' and `end` < '2025-02-04 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-02-04 11:10:26] Production.INFO: count ==3537 [2025-02-04 11:10:27] Production.ERROR: pbx CDR StartTime 2025-02-04 08:10:06 - End Time 2025-02-04 11:10:06 [2025-02-04 11:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399965', 'tblTempUsageDetail_20' ) start [2025-02-04 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399965', 'tblTempUsageDetail_20' ) end [2025-02-04 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399965', 'tblTempVendorCDR_20' ) start [2025-02-04 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399965', 'tblTempVendorCDR_20' ) end [2025-02-04 11:10:27] Production.INFO: ProcessCDR(1,14399965,1,1,2) [2025-02-04 11:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:10:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399965', 'tblTempUsageDetail_20' ) start [2025-02-04 11:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399965', 'tblTempUsageDetail_20' ) end [2025-02-04 11:10:33] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:10:33] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:10:33] Production.INFO: ==14041== Releasing lock... [2025-02-04 11:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:10:33] Production.INFO: 55.5 MB #Memory Used# [2025-02-04 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:11:05 [end_date_ymd] => 2025-02-04 11:11:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 08:11:05' and `end` < '2025-02-04 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-02-04 11:11:26] Production.INFO: count ==3596 [2025-02-04 11:11:28] Production.ERROR: pbx CDR StartTime 2025-02-04 08:11:05 - End Time 2025-02-04 11:11:05 [2025-02-04 11:11:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399970', 'tblTempUsageDetail_20' ) start [2025-02-04 11:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399970', 'tblTempUsageDetail_20' ) end [2025-02-04 11:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399970', 'tblTempVendorCDR_20' ) start [2025-02-04 11:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399970', 'tblTempVendorCDR_20' ) end [2025-02-04 11:11:28] Production.INFO: ProcessCDR(1,14399970,1,1,2) [2025-02-04 11:11:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:11:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:11:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:11:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399970', 'tblTempUsageDetail_20' ) start [2025-02-04 11:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399970', 'tblTempUsageDetail_20' ) end [2025-02-04 11:11:33] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:11:33] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:11:33] Production.INFO: ==14119== Releasing lock... [2025-02-04 11:11:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:11:33] Production.INFO: 54.75 MB #Memory Used# [2025-02-04 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:12:06 [end_date_ymd] => 2025-02-04 11:12:06 [RateCDR] => 1 ) [2025-02-04 11:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:12:06' and `end` < '2025-02-04 11:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:12:27] Production.INFO: count ==3590 [2025-02-04 11:12:28] Production.ERROR: pbx CDR StartTime 2025-02-04 08:12:06 - End Time 2025-02-04 11:12:06 [2025-02-04 11:12:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399975', 'tblTempUsageDetail_20' ) start [2025-02-04 11:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399975', 'tblTempUsageDetail_20' ) end [2025-02-04 11:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399975', 'tblTempVendorCDR_20' ) start [2025-02-04 11:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399975', 'tblTempVendorCDR_20' ) end [2025-02-04 11:12:28] Production.INFO: ProcessCDR(1,14399975,1,1,2) [2025-02-04 11:12:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:12:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:12:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:12:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399975', 'tblTempUsageDetail_20' ) start [2025-02-04 11:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399975', 'tblTempUsageDetail_20' ) end [2025-02-04 11:12:33] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:12:33] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:12:33] Production.INFO: ==14270== Releasing lock... [2025-02-04 11:12:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:12:33] Production.INFO: 55.25 MB #Memory Used# [2025-02-04 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:13:05 [end_date_ymd] => 2025-02-04 11:13:05 [RateCDR] => 1 ) [2025-02-04 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:13:05' and `end` < '2025-02-04 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:13:27] Production.INFO: count ==3609 [2025-02-04 11:13:29] Production.ERROR: pbx CDR StartTime 2025-02-04 08:13:05 - End Time 2025-02-04 11:13:05 [2025-02-04 11:13:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399980', 'tblTempUsageDetail_20' ) start [2025-02-04 11:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399980', 'tblTempUsageDetail_20' ) end [2025-02-04 11:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399980', 'tblTempVendorCDR_20' ) start [2025-02-04 11:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399980', 'tblTempVendorCDR_20' ) end [2025-02-04 11:13:29] Production.INFO: ProcessCDR(1,14399980,1,1,2) [2025-02-04 11:13:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:13:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:13:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:13:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399980', 'tblTempUsageDetail_20' ) start [2025-02-04 11:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399980', 'tblTempUsageDetail_20' ) end [2025-02-04 11:13:34] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:13:34] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:13:34] Production.INFO: ==14339== Releasing lock... [2025-02-04 11:13:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:13:34] Production.INFO: 55.75 MB #Memory Used# [2025-02-04 11:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:14:06 [end_date_ymd] => 2025-02-04 11:14:06 [RateCDR] => 1 ) [2025-02-04 11:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:14:06' and `end` < '2025-02-04 11:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:14:25] Production.INFO: count ==3619 [2025-02-04 11:14:26] Production.ERROR: pbx CDR StartTime 2025-02-04 08:14:06 - End Time 2025-02-04 11:14:06 [2025-02-04 11:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399985', 'tblTempUsageDetail_20' ) start [2025-02-04 11:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399985', 'tblTempUsageDetail_20' ) end [2025-02-04 11:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399985', 'tblTempVendorCDR_20' ) start [2025-02-04 11:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399985', 'tblTempVendorCDR_20' ) end [2025-02-04 11:14:26] Production.INFO: ProcessCDR(1,14399985,1,1,2) [2025-02-04 11:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:14:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:14:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:14:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399985', 'tblTempUsageDetail_20' ) start [2025-02-04 11:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399985', 'tblTempUsageDetail_20' ) end [2025-02-04 11:14:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:14:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:14:31] Production.INFO: ==14417== Releasing lock... [2025-02-04 11:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:14:31] Production.INFO: 56 MB #Memory Used# [2025-02-04 11:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:15:06 [end_date_ymd] => 2025-02-04 11:15:06 [RateCDR] => 1 ) [2025-02-04 11:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:15:06' and `end` < '2025-02-04 11:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:15:27] Production.INFO: count ==3654 [2025-02-04 11:15:29] Production.ERROR: pbx CDR StartTime 2025-02-04 08:15:06 - End Time 2025-02-04 11:15:06 [2025-02-04 11:15:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399990', 'tblTempUsageDetail_20' ) start [2025-02-04 11:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399990', 'tblTempUsageDetail_20' ) end [2025-02-04 11:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399990', 'tblTempVendorCDR_20' ) start [2025-02-04 11:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399990', 'tblTempVendorCDR_20' ) end [2025-02-04 11:15:29] Production.INFO: ProcessCDR(1,14399990,1,1,2) [2025-02-04 11:15:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:15:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:15:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:15:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399990', 'tblTempUsageDetail_20' ) start [2025-02-04 11:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399990', 'tblTempUsageDetail_20' ) end [2025-02-04 11:15:34] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:15:34] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:15:34] Production.INFO: ==14567== Releasing lock... [2025-02-04 11:15:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:15:34] Production.INFO: 56.25 MB #Memory Used# [2025-02-04 11:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:16:06 [end_date_ymd] => 2025-02-04 11:16:06 [RateCDR] => 1 ) [2025-02-04 11:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:16:06' and `end` < '2025-02-04 11:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:16:23] Production.INFO: count ==3661 [2025-02-04 11:16:24] Production.ERROR: pbx CDR StartTime 2025-02-04 08:16:06 - End Time 2025-02-04 11:16:06 [2025-02-04 11:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399995', 'tblTempUsageDetail_20' ) start [2025-02-04 11:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14399995', 'tblTempUsageDetail_20' ) end [2025-02-04 11:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399995', 'tblTempVendorCDR_20' ) start [2025-02-04 11:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14399995', 'tblTempVendorCDR_20' ) end [2025-02-04 11:16:25] Production.INFO: ProcessCDR(1,14399995,1,1,2) [2025-02-04 11:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14399995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14399995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14399995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14399995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399995', 'tblTempUsageDetail_20' ) start [2025-02-04 11:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14399995', 'tblTempUsageDetail_20' ) end [2025-02-04 11:16:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:16:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:16:29] Production.INFO: ==14637== Releasing lock... [2025-02-04 11:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:16:29] Production.INFO: 55.75 MB #Memory Used# [2025-02-04 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:17:05 [end_date_ymd] => 2025-02-04 11:17:05 [RateCDR] => 1 ) [2025-02-04 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:17:05' and `end` < '2025-02-04 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:17:19] Production.INFO: count ==3681 [2025-02-04 11:17:21] Production.ERROR: pbx CDR StartTime 2025-02-04 08:17:05 - End Time 2025-02-04 11:17:05 [2025-02-04 11:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400000', 'tblTempUsageDetail_20' ) start [2025-02-04 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400000', 'tblTempUsageDetail_20' ) end [2025-02-04 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400000', 'tblTempVendorCDR_20' ) start [2025-02-04 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400000', 'tblTempVendorCDR_20' ) end [2025-02-04 11:17:21] Production.INFO: ProcessCDR(1,14400000,1,1,2) [2025-02-04 11:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400000', 'tblTempUsageDetail_20' ) start [2025-02-04 11:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400000', 'tblTempUsageDetail_20' ) end [2025-02-04 11:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:17:27] Production.INFO: ==14706== Releasing lock... [2025-02-04 11:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:17:27] Production.INFO: 56 MB #Memory Used# [2025-02-04 11:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:18:06 [end_date_ymd] => 2025-02-04 11:18:06 [RateCDR] => 1 ) [2025-02-04 11:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:18:06' and `end` < '2025-02-04 11:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:18:28] Production.INFO: count ==3695 [2025-02-04 11:18:29] Production.ERROR: pbx CDR StartTime 2025-02-04 08:18:06 - End Time 2025-02-04 11:18:06 [2025-02-04 11:18:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400005', 'tblTempUsageDetail_20' ) start [2025-02-04 11:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400005', 'tblTempUsageDetail_20' ) end [2025-02-04 11:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400005', 'tblTempVendorCDR_20' ) start [2025-02-04 11:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400005', 'tblTempVendorCDR_20' ) end [2025-02-04 11:18:30] Production.INFO: ProcessCDR(1,14400005,1,1,2) [2025-02-04 11:18:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:18:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:18:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:18:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400005', 'tblTempUsageDetail_20' ) start [2025-02-04 11:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400005', 'tblTempUsageDetail_20' ) end [2025-02-04 11:18:34] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:18:34] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:18:34] Production.INFO: ==14778== Releasing lock... [2025-02-04 11:18:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:18:34] Production.INFO: 56.5 MB #Memory Used# [2025-02-04 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:19:05 [end_date_ymd] => 2025-02-04 11:19:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 08:19:05' and `end` < '2025-02-04 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-02-04 11:19:20] Production.INFO: count ==3707 [2025-02-04 11:19:22] Production.ERROR: pbx CDR StartTime 2025-02-04 08:19:05 - End Time 2025-02-04 11:19:05 [2025-02-04 11:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400010', 'tblTempUsageDetail_20' ) start [2025-02-04 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400010', 'tblTempUsageDetail_20' ) end [2025-02-04 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400010', 'tblTempVendorCDR_20' ) start [2025-02-04 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400010', 'tblTempVendorCDR_20' ) end [2025-02-04 11:19:22] Production.INFO: ProcessCDR(1,14400010,1,1,2) [2025-02-04 11:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400010', 'tblTempUsageDetail_20' ) start [2025-02-04 11:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400010', 'tblTempUsageDetail_20' ) end [2025-02-04 11:19:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:19:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:19:27] Production.INFO: ==14848== Releasing lock... [2025-02-04 11:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:19:27] Production.INFO: 55.75 MB #Memory Used# [2025-02-04 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:20:06 [end_date_ymd] => 2025-02-04 11:20:06 [RateCDR] => 1 ) [2025-02-04 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:20:06' and `end` < '2025-02-04 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:20:20] Production.INFO: count ==3729 [2025-02-04 11:20:21] Production.ERROR: pbx CDR StartTime 2025-02-04 08:20:06 - End Time 2025-02-04 11:20:06 [2025-02-04 11:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400016', 'tblTempUsageDetail_20' ) start [2025-02-04 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400016', 'tblTempUsageDetail_20' ) end [2025-02-04 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400016', 'tblTempVendorCDR_20' ) start [2025-02-04 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400016', 'tblTempVendorCDR_20' ) end [2025-02-04 11:20:22] Production.INFO: ProcessCDR(1,14400016,1,1,2) [2025-02-04 11:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400016', 'tblTempUsageDetail_20' ) start [2025-02-04 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400016', 'tblTempUsageDetail_20' ) end [2025-02-04 11:20:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:20:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:20:26] Production.INFO: ==14921== Releasing lock... [2025-02-04 11:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:20:26] Production.INFO: 55.75 MB #Memory Used# [2025-02-04 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:21:05 [end_date_ymd] => 2025-02-04 11:21:05 [RateCDR] => 1 ) [2025-02-04 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:21:05' and `end` < '2025-02-04 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:21:23] Production.INFO: count ==3845 [2025-02-04 11:21:25] Production.ERROR: pbx CDR StartTime 2025-02-04 08:21:05 - End Time 2025-02-04 11:21:05 [2025-02-04 11:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400021', 'tblTempUsageDetail_20' ) start [2025-02-04 11:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400021', 'tblTempUsageDetail_20' ) end [2025-02-04 11:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400021', 'tblTempVendorCDR_20' ) start [2025-02-04 11:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400021', 'tblTempVendorCDR_20' ) end [2025-02-04 11:21:25] Production.INFO: ProcessCDR(1,14400021,1,1,2) [2025-02-04 11:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400021', 'tblTempUsageDetail_20' ) start [2025-02-04 11:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400021', 'tblTempUsageDetail_20' ) end [2025-02-04 11:21:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:21:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:21:29] Production.INFO: ==15033== Releasing lock... [2025-02-04 11:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:21:29] Production.INFO: 56.75 MB #Memory Used# [2025-02-04 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:22:05 [end_date_ymd] => 2025-02-04 11:22:05 [RateCDR] => 1 ) [2025-02-04 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:22:05' and `end` < '2025-02-04 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:22:23] Production.INFO: count ==3819 [2025-02-04 11:22:25] Production.ERROR: pbx CDR StartTime 2025-02-04 08:22:05 - End Time 2025-02-04 11:22:05 [2025-02-04 11:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400026', 'tblTempUsageDetail_20' ) start [2025-02-04 11:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400026', 'tblTempUsageDetail_20' ) end [2025-02-04 11:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400026', 'tblTempVendorCDR_20' ) start [2025-02-04 11:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400026', 'tblTempVendorCDR_20' ) end [2025-02-04 11:22:25] Production.INFO: ProcessCDR(1,14400026,1,1,2) [2025-02-04 11:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400026', 'tblTempUsageDetail_20' ) start [2025-02-04 11:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400026', 'tblTempUsageDetail_20' ) end [2025-02-04 11:22:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:22:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:22:30] Production.INFO: ==15108== Releasing lock... [2025-02-04 11:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:22:30] Production.INFO: 56.5 MB #Memory Used# [2025-02-04 11:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:23:05 [end_date_ymd] => 2025-02-04 11:23:05 [RateCDR] => 1 ) [2025-02-04 11:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:23:05' and `end` < '2025-02-04 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-02-04 11:23:21] Production.INFO: count ==3810 [2025-02-04 11:23:23] Production.ERROR: pbx CDR StartTime 2025-02-04 08:23:05 - End Time 2025-02-04 11:23:05 [2025-02-04 11:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400031', 'tblTempUsageDetail_20' ) start [2025-02-04 11:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400031', 'tblTempUsageDetail_20' ) end [2025-02-04 11:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400031', 'tblTempVendorCDR_20' ) start [2025-02-04 11:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400031', 'tblTempVendorCDR_20' ) end [2025-02-04 11:23:23] Production.INFO: ProcessCDR(1,14400031,1,1,2) [2025-02-04 11:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400031', 'tblTempUsageDetail_20' ) start [2025-02-04 11:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400031', 'tblTempUsageDetail_20' ) end [2025-02-04 11:23:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:23:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:23:28] Production.INFO: ==15183== Releasing lock... [2025-02-04 11:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:23:28] Production.INFO: 57 MB #Memory Used# [2025-02-04 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:24:05 [end_date_ymd] => 2025-02-04 11:24:05 [RateCDR] => 1 ) [2025-02-04 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:24:05' and `end` < '2025-02-04 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:24:20] Production.INFO: count ==3828 [2025-02-04 11:24:22] Production.ERROR: pbx CDR StartTime 2025-02-04 08:24:05 - End Time 2025-02-04 11:24:05 [2025-02-04 11:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400036', 'tblTempUsageDetail_20' ) start [2025-02-04 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400036', 'tblTempUsageDetail_20' ) end [2025-02-04 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400036', 'tblTempVendorCDR_20' ) start [2025-02-04 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400036', 'tblTempVendorCDR_20' ) end [2025-02-04 11:24:22] Production.INFO: ProcessCDR(1,14400036,1,1,2) [2025-02-04 11:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400036', 'tblTempUsageDetail_20' ) start [2025-02-04 11:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400036', 'tblTempUsageDetail_20' ) end [2025-02-04 11:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:24:27] Production.INFO: ==15255== Releasing lock... [2025-02-04 11:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:24:27] Production.INFO: 56.5 MB #Memory Used# [2025-02-04 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:25:05 [end_date_ymd] => 2025-02-04 11:25:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 08:25:05' and `end` < '2025-02-04 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-02-04 11:25:27] Production.INFO: count ==3837 [2025-02-04 11:25:28] Production.ERROR: pbx CDR StartTime 2025-02-04 08:25:05 - End Time 2025-02-04 11:25:05 [2025-02-04 11:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400041', 'tblTempUsageDetail_20' ) start [2025-02-04 11:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400041', 'tblTempUsageDetail_20' ) end [2025-02-04 11:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400041', 'tblTempVendorCDR_20' ) start [2025-02-04 11:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400041', 'tblTempVendorCDR_20' ) end [2025-02-04 11:25:28] Production.INFO: ProcessCDR(1,14400041,1,1,2) [2025-02-04 11:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400041', 'tblTempUsageDetail_20' ) start [2025-02-04 11:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400041', 'tblTempUsageDetail_20' ) end [2025-02-04 11:25:33] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:25:33] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:25:33] Production.INFO: ==15325== Releasing lock... [2025-02-04 11:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:25:33] Production.INFO: 56.75 MB #Memory Used# [2025-02-04 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:26:05 [end_date_ymd] => 2025-02-04 11:26:05 [RateCDR] => 1 ) [2025-02-04 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:26:05' and `end` < '2025-02-04 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:26:21] Production.INFO: count ==3833 [2025-02-04 11:26:23] Production.ERROR: pbx CDR StartTime 2025-02-04 08:26:05 - End Time 2025-02-04 11:26:05 [2025-02-04 11:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400046', 'tblTempUsageDetail_20' ) start [2025-02-04 11:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400046', 'tblTempUsageDetail_20' ) end [2025-02-04 11:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400046', 'tblTempVendorCDR_20' ) start [2025-02-04 11:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400046', 'tblTempVendorCDR_20' ) end [2025-02-04 11:26:23] Production.INFO: ProcessCDR(1,14400046,1,1,2) [2025-02-04 11:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400046', 'tblTempUsageDetail_20' ) start [2025-02-04 11:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400046', 'tblTempUsageDetail_20' ) end [2025-02-04 11:26:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:26:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:26:28] Production.INFO: ==15402== Releasing lock... [2025-02-04 11:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:26:28] Production.INFO: 57.25 MB #Memory Used# [2025-02-04 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:27:05 [end_date_ymd] => 2025-02-04 11:27:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 08:27:05' and `end` < '2025-02-04 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-02-04 11:27:21] Production.INFO: count ==3840 [2025-02-04 11:27:23] Production.ERROR: pbx CDR StartTime 2025-02-04 08:27:05 - End Time 2025-02-04 11:27:05 [2025-02-04 11:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400051', 'tblTempUsageDetail_20' ) start [2025-02-04 11:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400051', 'tblTempUsageDetail_20' ) end [2025-02-04 11:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400051', 'tblTempVendorCDR_20' ) start [2025-02-04 11:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400051', 'tblTempVendorCDR_20' ) end [2025-02-04 11:27:23] Production.INFO: ProcessCDR(1,14400051,1,1,2) [2025-02-04 11:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400051', 'tblTempUsageDetail_20' ) start [2025-02-04 11:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400051', 'tblTempUsageDetail_20' ) end [2025-02-04 11:27:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:27:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:27:28] Production.INFO: ==15474== Releasing lock... [2025-02-04 11:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:27:28] Production.INFO: 57.25 MB #Memory Used# [2025-02-04 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:28:05 [end_date_ymd] => 2025-02-04 11:28:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 08:28:05' and `end` < '2025-02-04 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-02-04 11:28:23] Production.INFO: count ==3848 [2025-02-04 11:28:24] Production.ERROR: pbx CDR StartTime 2025-02-04 08:28:05 - End Time 2025-02-04 11:28:05 [2025-02-04 11:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400056', 'tblTempUsageDetail_20' ) start [2025-02-04 11:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400056', 'tblTempUsageDetail_20' ) end [2025-02-04 11:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400056', 'tblTempVendorCDR_20' ) start [2025-02-04 11:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400056', 'tblTempVendorCDR_20' ) end [2025-02-04 11:28:24] Production.INFO: ProcessCDR(1,14400056,1,1,2) [2025-02-04 11:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400056', 'tblTempUsageDetail_20' ) start [2025-02-04 11:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400056', 'tblTempUsageDetail_20' ) end [2025-02-04 11:28:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:28:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:28:29] Production.INFO: ==15544== Releasing lock... [2025-02-04 11:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:28:29] Production.INFO: 57.25 MB #Memory Used# [2025-02-04 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:29:05 [end_date_ymd] => 2025-02-04 11:29:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 08:29:05' and `end` < '2025-02-04 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-02-04 11:29:24] Production.INFO: count ==3832 [2025-02-04 11:29:25] Production.ERROR: pbx CDR StartTime 2025-02-04 08:29:05 - End Time 2025-02-04 11:29:05 [2025-02-04 11:29:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400061', 'tblTempUsageDetail_20' ) start [2025-02-04 11:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400061', 'tblTempUsageDetail_20' ) end [2025-02-04 11:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400061', 'tblTempVendorCDR_20' ) start [2025-02-04 11:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400061', 'tblTempVendorCDR_20' ) end [2025-02-04 11:29:26] Production.INFO: ProcessCDR(1,14400061,1,1,2) [2025-02-04 11:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:29:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400061', 'tblTempUsageDetail_20' ) start [2025-02-04 11:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400061', 'tblTempUsageDetail_20' ) end [2025-02-04 11:29:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:29:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:29:31] Production.INFO: ==15617== Releasing lock... [2025-02-04 11:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:29:31] Production.INFO: 56.75 MB #Memory Used# [2025-02-04 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:30:06 [end_date_ymd] => 2025-02-04 11:30:06 [RateCDR] => 1 ) [2025-02-04 11:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:30:06' and `end` < '2025-02-04 11:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:30:26] Production.INFO: count ==3846 [2025-02-04 11:30:28] Production.ERROR: pbx CDR StartTime 2025-02-04 08:30:06 - End Time 2025-02-04 11:30:06 [2025-02-04 11:30:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400067', 'tblTempUsageDetail_20' ) start [2025-02-04 11:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400067', 'tblTempUsageDetail_20' ) end [2025-02-04 11:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400067', 'tblTempVendorCDR_20' ) start [2025-02-04 11:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400067', 'tblTempVendorCDR_20' ) end [2025-02-04 11:30:28] Production.INFO: ProcessCDR(1,14400067,1,1,2) [2025-02-04 11:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400067', 'tblTempUsageDetail_20' ) start [2025-02-04 11:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400067', 'tblTempUsageDetail_20' ) end [2025-02-04 11:30:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:30:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:30:33] Production.INFO: ==15694== Releasing lock... [2025-02-04 11:30:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:30:33] Production.INFO: 57 MB #Memory Used# [2025-02-04 11:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:31:06 [end_date_ymd] => 2025-02-04 11:31:06 [RateCDR] => 1 ) [2025-02-04 11:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:31:06' and `end` < '2025-02-04 11:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:31:24] Production.INFO: count ==3922 [2025-02-04 11:31:26] Production.ERROR: pbx CDR StartTime 2025-02-04 08:31:06 - End Time 2025-02-04 11:31:06 [2025-02-04 11:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400072', 'tblTempUsageDetail_20' ) start [2025-02-04 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400072', 'tblTempUsageDetail_20' ) end [2025-02-04 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400072', 'tblTempVendorCDR_20' ) start [2025-02-04 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400072', 'tblTempVendorCDR_20' ) end [2025-02-04 11:31:26] Production.INFO: ProcessCDR(1,14400072,1,1,2) [2025-02-04 11:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:31:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400072', 'tblTempUsageDetail_20' ) start [2025-02-04 11:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400072', 'tblTempUsageDetail_20' ) end [2025-02-04 11:31:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:31:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:31:31] Production.INFO: ==15769== Releasing lock... [2025-02-04 11:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:31:31] Production.INFO: 57.25 MB #Memory Used# [2025-02-04 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:32:05 [end_date_ymd] => 2025-02-04 11:32:05 [RateCDR] => 1 ) [2025-02-04 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:32:05' and `end` < '2025-02-04 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:32:23] Production.INFO: count ==3923 [2025-02-04 11:32:24] Production.ERROR: pbx CDR StartTime 2025-02-04 08:32:05 - End Time 2025-02-04 11:32:05 [2025-02-04 11:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400077', 'tblTempUsageDetail_20' ) start [2025-02-04 11:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400077', 'tblTempUsageDetail_20' ) end [2025-02-04 11:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400077', 'tblTempVendorCDR_20' ) start [2025-02-04 11:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400077', 'tblTempVendorCDR_20' ) end [2025-02-04 11:32:24] Production.INFO: ProcessCDR(1,14400077,1,1,2) [2025-02-04 11:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:32:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:32:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400077', 'tblTempUsageDetail_20' ) start [2025-02-04 11:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400077', 'tblTempUsageDetail_20' ) end [2025-02-04 11:32:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:32:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:32:29] Production.INFO: ==15840== Releasing lock... [2025-02-04 11:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:32:29] Production.INFO: 57.25 MB #Memory Used# [2025-02-04 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:33:05 [end_date_ymd] => 2025-02-04 11:33:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 08:33:05' and `end` < '2025-02-04 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-02-04 11:33:19] Production.INFO: count ==3946 [2025-02-04 11:33:21] Production.ERROR: pbx CDR StartTime 2025-02-04 08:33:05 - End Time 2025-02-04 11:33:05 [2025-02-04 11:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400082', 'tblTempUsageDetail_20' ) start [2025-02-04 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400082', 'tblTempUsageDetail_20' ) end [2025-02-04 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400082', 'tblTempVendorCDR_20' ) start [2025-02-04 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400082', 'tblTempVendorCDR_20' ) end [2025-02-04 11:33:21] Production.INFO: ProcessCDR(1,14400082,1,1,2) [2025-02-04 11:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400082', 'tblTempUsageDetail_20' ) start [2025-02-04 11:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400082', 'tblTempUsageDetail_20' ) end [2025-02-04 11:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:33:24] Production.INFO: ==15918== Releasing lock... [2025-02-04 11:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:33:24] Production.INFO: 57.75 MB #Memory Used# [2025-02-04 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:34:05 [end_date_ymd] => 2025-02-04 11:34:05 [RateCDR] => 1 ) [2025-02-04 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:34:05' and `end` < '2025-02-04 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:34:21] Production.INFO: count ==3938 [2025-02-04 11:34:23] Production.ERROR: pbx CDR StartTime 2025-02-04 08:34:05 - End Time 2025-02-04 11:34:05 [2025-02-04 11:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400087', 'tblTempUsageDetail_20' ) start [2025-02-04 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400087', 'tblTempUsageDetail_20' ) end [2025-02-04 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400087', 'tblTempVendorCDR_20' ) start [2025-02-04 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400087', 'tblTempVendorCDR_20' ) end [2025-02-04 11:34:23] Production.INFO: ProcessCDR(1,14400087,1,1,2) [2025-02-04 11:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400087', 'tblTempUsageDetail_20' ) start [2025-02-04 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400087', 'tblTempUsageDetail_20' ) end [2025-02-04 11:34:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:34:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:34:28] Production.INFO: ==15999== Releasing lock... [2025-02-04 11:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:34:28] Production.INFO: 57.5 MB #Memory Used# [2025-02-04 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:35:05 [end_date_ymd] => 2025-02-04 11:35:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 08:35:05' and `end` < '2025-02-04 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-02-04 11:35:19] Production.INFO: count ==3937 [2025-02-04 11:35:20] Production.ERROR: pbx CDR StartTime 2025-02-04 08:35:05 - End Time 2025-02-04 11:35:05 [2025-02-04 11:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400092', 'tblTempUsageDetail_20' ) start [2025-02-04 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400092', 'tblTempUsageDetail_20' ) end [2025-02-04 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400092', 'tblTempVendorCDR_20' ) start [2025-02-04 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400092', 'tblTempVendorCDR_20' ) end [2025-02-04 11:35:20] Production.INFO: ProcessCDR(1,14400092,1,1,2) [2025-02-04 11:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400092', 'tblTempUsageDetail_20' ) start [2025-02-04 11:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400092', 'tblTempUsageDetail_20' ) end [2025-02-04 11:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:35:25] Production.INFO: ==16071== Releasing lock... [2025-02-04 11:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:35:25] Production.INFO: 57.5 MB #Memory Used# [2025-02-04 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:36:05 [end_date_ymd] => 2025-02-04 11:36:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 08:36:05' and `end` < '2025-02-04 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-02-04 11:36:19] Production.INFO: count ==3942 [2025-02-04 11:36:21] Production.ERROR: pbx CDR StartTime 2025-02-04 08:36:05 - End Time 2025-02-04 11:36:05 [2025-02-04 11:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400097', 'tblTempUsageDetail_20' ) start [2025-02-04 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400097', 'tblTempUsageDetail_20' ) end [2025-02-04 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400097', 'tblTempVendorCDR_20' ) start [2025-02-04 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400097', 'tblTempVendorCDR_20' ) end [2025-02-04 11:36:21] Production.INFO: ProcessCDR(1,14400097,1,1,2) [2025-02-04 11:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400097', 'tblTempUsageDetail_20' ) start [2025-02-04 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400097', 'tblTempUsageDetail_20' ) end [2025-02-04 11:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:36:26] Production.INFO: ==16148== Releasing lock... [2025-02-04 11:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:36:26] Production.INFO: 57.5 MB #Memory Used# [2025-02-04 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:37:05 [end_date_ymd] => 2025-02-04 11:37:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 08:37:05' and `end` < '2025-02-04 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-02-04 11:37:20] Production.INFO: count ==3963 [2025-02-04 11:37:21] Production.ERROR: pbx CDR StartTime 2025-02-04 08:37:05 - End Time 2025-02-04 11:37:05 [2025-02-04 11:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400102', 'tblTempUsageDetail_20' ) start [2025-02-04 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400102', 'tblTempUsageDetail_20' ) end [2025-02-04 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400102', 'tblTempVendorCDR_20' ) start [2025-02-04 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400102', 'tblTempVendorCDR_20' ) end [2025-02-04 11:37:21] Production.INFO: ProcessCDR(1,14400102,1,1,2) [2025-02-04 11:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400102', 'tblTempUsageDetail_20' ) start [2025-02-04 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400102', 'tblTempUsageDetail_20' ) end [2025-02-04 11:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:37:26] Production.INFO: ==16261== Releasing lock... [2025-02-04 11:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:37:26] Production.INFO: 57.75 MB #Memory Used# [2025-02-04 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:38:05 [end_date_ymd] => 2025-02-04 11:38:05 [RateCDR] => 1 ) [2025-02-04 11:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:38:05' and `end` < '2025-02-04 11:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:38:31] Production.INFO: count ==3981 [2025-02-04 11:38:33] Production.ERROR: pbx CDR StartTime 2025-02-04 08:38:05 - End Time 2025-02-04 11:38:05 [2025-02-04 11:38:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:38:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400107', 'tblTempUsageDetail_20' ) start [2025-02-04 11:38:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400107', 'tblTempUsageDetail_20' ) end [2025-02-04 11:38:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400107', 'tblTempVendorCDR_20' ) start [2025-02-04 11:38:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400107', 'tblTempVendorCDR_20' ) end [2025-02-04 11:38:33] Production.INFO: ProcessCDR(1,14400107,1,1,2) [2025-02-04 11:38:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:38:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:38:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:38:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:38:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400107', 'tblTempUsageDetail_20' ) start [2025-02-04 11:38:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400107', 'tblTempUsageDetail_20' ) end [2025-02-04 11:38:38] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:38:38] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:38:38] Production.INFO: ==16340== Releasing lock... [2025-02-04 11:38:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:38:38] Production.INFO: 57.75 MB #Memory Used# [2025-02-04 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:39:05 [end_date_ymd] => 2025-02-04 11:39:05 [RateCDR] => 1 ) [2025-02-04 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:39:05' and `end` < '2025-02-04 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:39:25] Production.INFO: count ==3978 [2025-02-04 11:39:26] Production.ERROR: pbx CDR StartTime 2025-02-04 08:39:05 - End Time 2025-02-04 11:39:05 [2025-02-04 11:39:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400112', 'tblTempUsageDetail_20' ) start [2025-02-04 11:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400112', 'tblTempUsageDetail_20' ) end [2025-02-04 11:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400112', 'tblTempVendorCDR_20' ) start [2025-02-04 11:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400112', 'tblTempVendorCDR_20' ) end [2025-02-04 11:39:26] Production.INFO: ProcessCDR(1,14400112,1,1,2) [2025-02-04 11:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:39:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:39:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:39:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400112', 'tblTempUsageDetail_20' ) start [2025-02-04 11:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400112', 'tblTempUsageDetail_20' ) end [2025-02-04 11:39:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:39:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:39:31] Production.INFO: ==16410== Releasing lock... [2025-02-04 11:39:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:39:31] Production.INFO: 57.75 MB #Memory Used# [2025-02-04 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:40:06 [end_date_ymd] => 2025-02-04 11:40:06 [RateCDR] => 1 ) [2025-02-04 11:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:40:06' and `end` < '2025-02-04 11:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:40:26] Production.INFO: count ==3969 [2025-02-04 11:40:27] Production.ERROR: pbx CDR StartTime 2025-02-04 08:40:06 - End Time 2025-02-04 11:40:06 [2025-02-04 11:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400117', 'tblTempUsageDetail_20' ) start [2025-02-04 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400117', 'tblTempUsageDetail_20' ) end [2025-02-04 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400117', 'tblTempVendorCDR_20' ) start [2025-02-04 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400117', 'tblTempVendorCDR_20' ) end [2025-02-04 11:40:27] Production.INFO: ProcessCDR(1,14400117,1,1,2) [2025-02-04 11:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400117', 'tblTempUsageDetail_20' ) start [2025-02-04 11:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400117', 'tblTempUsageDetail_20' ) end [2025-02-04 11:40:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:40:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:40:32] Production.INFO: ==16488== Releasing lock... [2025-02-04 11:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:40:32] Production.INFO: 57.75 MB #Memory Used# [2025-02-04 11:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:41:06 [end_date_ymd] => 2025-02-04 11:41:06 [RateCDR] => 1 ) [2025-02-04 11:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:41:06' and `end` < '2025-02-04 11:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:41:25] Production.INFO: count ==4075 [2025-02-04 11:41:26] Production.ERROR: pbx CDR StartTime 2025-02-04 08:41:06 - End Time 2025-02-04 11:41:06 [2025-02-04 11:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400123', 'tblTempUsageDetail_20' ) start [2025-02-04 11:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400123', 'tblTempUsageDetail_20' ) end [2025-02-04 11:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400123', 'tblTempVendorCDR_20' ) start [2025-02-04 11:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400123', 'tblTempVendorCDR_20' ) end [2025-02-04 11:41:27] Production.INFO: ProcessCDR(1,14400123,1,1,2) [2025-02-04 11:41:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400123', 'tblTempUsageDetail_20' ) start [2025-02-04 11:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400123', 'tblTempUsageDetail_20' ) end [2025-02-04 11:41:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:41:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:41:31] Production.INFO: ==16565== Releasing lock... [2025-02-04 11:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:41:31] Production.INFO: 58.5 MB #Memory Used# [2025-02-04 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:42:05 [end_date_ymd] => 2025-02-04 11:42:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 08:42:05' and `end` < '2025-02-04 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-02-04 11:42:23] Production.INFO: count ==4107 [2025-02-04 11:42:25] Production.ERROR: pbx CDR StartTime 2025-02-04 08:42:05 - End Time 2025-02-04 11:42:05 [2025-02-04 11:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400128', 'tblTempUsageDetail_20' ) start [2025-02-04 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400128', 'tblTempUsageDetail_20' ) end [2025-02-04 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400128', 'tblTempVendorCDR_20' ) start [2025-02-04 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400128', 'tblTempVendorCDR_20' ) end [2025-02-04 11:42:25] Production.INFO: ProcessCDR(1,14400128,1,1,2) [2025-02-04 11:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400128', 'tblTempUsageDetail_20' ) start [2025-02-04 11:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400128', 'tblTempUsageDetail_20' ) end [2025-02-04 11:42:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:42:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:42:30] Production.INFO: ==16636== Releasing lock... [2025-02-04 11:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:42:30] Production.INFO: 58.75 MB #Memory Used# [2025-02-04 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:43:05 [end_date_ymd] => 2025-02-04 11:43:05 [RateCDR] => 1 ) [2025-02-04 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:43:05' and `end` < '2025-02-04 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:43:22] Production.INFO: count ==4132 [2025-02-04 11:43:24] Production.ERROR: pbx CDR StartTime 2025-02-04 08:43:05 - End Time 2025-02-04 11:43:05 [2025-02-04 11:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400133', 'tblTempUsageDetail_20' ) start [2025-02-04 11:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400133', 'tblTempUsageDetail_20' ) end [2025-02-04 11:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400133', 'tblTempVendorCDR_20' ) start [2025-02-04 11:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400133', 'tblTempVendorCDR_20' ) end [2025-02-04 11:43:24] Production.INFO: ProcessCDR(1,14400133,1,1,2) [2025-02-04 11:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400133', 'tblTempUsageDetail_20' ) start [2025-02-04 11:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400133', 'tblTempUsageDetail_20' ) end [2025-02-04 11:43:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:43:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:43:29] Production.INFO: ==16714== Releasing lock... [2025-02-04 11:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:43:29] Production.INFO: 59.25 MB #Memory Used# [2025-02-04 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:44:05 [end_date_ymd] => 2025-02-04 11:44:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 08:44:05' and `end` < '2025-02-04 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-02-04 11:44:31] Production.INFO: count ==4106 [2025-02-04 11:44:33] Production.ERROR: pbx CDR StartTime 2025-02-04 08:44:05 - End Time 2025-02-04 11:44:05 [2025-02-04 11:44:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:44:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400138', 'tblTempUsageDetail_20' ) start [2025-02-04 11:44:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400138', 'tblTempUsageDetail_20' ) end [2025-02-04 11:44:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400138', 'tblTempVendorCDR_20' ) start [2025-02-04 11:44:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400138', 'tblTempVendorCDR_20' ) end [2025-02-04 11:44:33] Production.INFO: ProcessCDR(1,14400138,1,1,2) [2025-02-04 11:44:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:44:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:44:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:44:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:44:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400138', 'tblTempUsageDetail_20' ) start [2025-02-04 11:44:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400138', 'tblTempUsageDetail_20' ) end [2025-02-04 11:44:37] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:44:37] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:44:37] Production.INFO: ==16790== Releasing lock... [2025-02-04 11:44:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:44:37] Production.INFO: 58.75 MB #Memory Used# [2025-02-04 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:45:05 [end_date_ymd] => 2025-02-04 11:45:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 08:45:05' and `end` < '2025-02-04 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-02-04 11:45:31] Production.INFO: count ==4113 [2025-02-04 11:45:33] Production.ERROR: pbx CDR StartTime 2025-02-04 08:45:05 - End Time 2025-02-04 11:45:05 [2025-02-04 11:45:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400143', 'tblTempUsageDetail_20' ) start [2025-02-04 11:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400143', 'tblTempUsageDetail_20' ) end [2025-02-04 11:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400143', 'tblTempVendorCDR_20' ) start [2025-02-04 11:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400143', 'tblTempVendorCDR_20' ) end [2025-02-04 11:45:33] Production.INFO: ProcessCDR(1,14400143,1,1,2) [2025-02-04 11:45:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:45:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:45:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:45:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:45:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400143', 'tblTempUsageDetail_20' ) start [2025-02-04 11:45:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400143', 'tblTempUsageDetail_20' ) end [2025-02-04 11:45:38] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:45:38] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:45:38] Production.INFO: ==16874== Releasing lock... [2025-02-04 11:45:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:45:38] Production.INFO: 58.75 MB #Memory Used# [2025-02-04 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:46:05 [end_date_ymd] => 2025-02-04 11:46:05 [RateCDR] => 1 ) [2025-02-04 11:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:46:05' and `end` < '2025-02-04 11:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:46:26] Production.INFO: count ==4118 [2025-02-04 11:46:28] Production.ERROR: pbx CDR StartTime 2025-02-04 08:46:05 - End Time 2025-02-04 11:46:05 [2025-02-04 11:46:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400148', 'tblTempUsageDetail_20' ) start [2025-02-04 11:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400148', 'tblTempUsageDetail_20' ) end [2025-02-04 11:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400148', 'tblTempVendorCDR_20' ) start [2025-02-04 11:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400148', 'tblTempVendorCDR_20' ) end [2025-02-04 11:46:28] Production.INFO: ProcessCDR(1,14400148,1,1,2) [2025-02-04 11:46:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:46:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:46:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:46:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400148', 'tblTempUsageDetail_20' ) start [2025-02-04 11:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400148', 'tblTempUsageDetail_20' ) end [2025-02-04 11:46:33] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:46:33] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:46:33] Production.INFO: ==16957== Releasing lock... [2025-02-04 11:46:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:46:33] Production.INFO: 58.75 MB #Memory Used# [2025-02-04 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:47:05 [end_date_ymd] => 2025-02-04 11:47:05 [RateCDR] => 1 ) [2025-02-04 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:47:05' and `end` < '2025-02-04 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:47:24] Production.INFO: count ==4120 [2025-02-04 11:47:26] Production.ERROR: pbx CDR StartTime 2025-02-04 08:47:05 - End Time 2025-02-04 11:47:05 [2025-02-04 11:47:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400153', 'tblTempUsageDetail_20' ) start [2025-02-04 11:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400153', 'tblTempUsageDetail_20' ) end [2025-02-04 11:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400153', 'tblTempVendorCDR_20' ) start [2025-02-04 11:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400153', 'tblTempVendorCDR_20' ) end [2025-02-04 11:47:26] Production.INFO: ProcessCDR(1,14400153,1,1,2) [2025-02-04 11:47:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:47:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:47:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400153', 'tblTempUsageDetail_20' ) start [2025-02-04 11:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400153', 'tblTempUsageDetail_20' ) end [2025-02-04 11:47:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:47:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:47:31] Production.INFO: ==17039== Releasing lock... [2025-02-04 11:47:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:47:31] Production.INFO: 58.75 MB #Memory Used# [2025-02-04 11:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:48:06 [end_date_ymd] => 2025-02-04 11:48:06 [RateCDR] => 1 ) [2025-02-04 11:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:48:06' and `end` < '2025-02-04 11:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:48:25] Production.INFO: count ==4152 [2025-02-04 11:48:27] Production.ERROR: pbx CDR StartTime 2025-02-04 08:48:06 - End Time 2025-02-04 11:48:06 [2025-02-04 11:48:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400158', 'tblTempUsageDetail_20' ) start [2025-02-04 11:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400158', 'tblTempUsageDetail_20' ) end [2025-02-04 11:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400158', 'tblTempVendorCDR_20' ) start [2025-02-04 11:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400158', 'tblTempVendorCDR_20' ) end [2025-02-04 11:48:27] Production.INFO: ProcessCDR(1,14400158,1,1,2) [2025-02-04 11:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:48:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:48:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:48:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400158', 'tblTempUsageDetail_20' ) start [2025-02-04 11:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400158', 'tblTempUsageDetail_20' ) end [2025-02-04 11:48:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:48:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:48:32] Production.INFO: ==17123== Releasing lock... [2025-02-04 11:48:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:48:32] Production.INFO: 59 MB #Memory Used# [2025-02-04 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:49:05 [end_date_ymd] => 2025-02-04 11:49:05 [RateCDR] => 1 ) [2025-02-04 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:49:05' and `end` < '2025-02-04 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:49:27] Production.INFO: count ==4162 [2025-02-04 11:49:29] Production.ERROR: pbx CDR StartTime 2025-02-04 08:49:05 - End Time 2025-02-04 11:49:05 [2025-02-04 11:49:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400163', 'tblTempUsageDetail_20' ) start [2025-02-04 11:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400163', 'tblTempUsageDetail_20' ) end [2025-02-04 11:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400163', 'tblTempVendorCDR_20' ) start [2025-02-04 11:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400163', 'tblTempVendorCDR_20' ) end [2025-02-04 11:49:29] Production.INFO: ProcessCDR(1,14400163,1,1,2) [2025-02-04 11:49:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:49:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:49:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:49:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:49:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400163', 'tblTempUsageDetail_20' ) start [2025-02-04 11:49:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400163', 'tblTempUsageDetail_20' ) end [2025-02-04 11:49:34] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:49:34] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:49:34] Production.INFO: ==17207== Releasing lock... [2025-02-04 11:49:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:49:34] Production.INFO: 59.25 MB #Memory Used# [2025-02-04 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:50:06 [end_date_ymd] => 2025-02-04 11:50:06 [RateCDR] => 1 ) [2025-02-04 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-02-04 08:50:06' and `end` < '2025-02-04 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-02-04 11:50:32] Production.INFO: count ==4182 [2025-02-04 11:50:34] Production.ERROR: pbx CDR StartTime 2025-02-04 08:50:06 - End Time 2025-02-04 11:50:06 [2025-02-04 11:50:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:50:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400169', 'tblTempUsageDetail_20' ) start [2025-02-04 11:50:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400169', 'tblTempUsageDetail_20' ) end [2025-02-04 11:50:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400169', 'tblTempVendorCDR_20' ) start [2025-02-04 11:50:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400169', 'tblTempVendorCDR_20' ) end [2025-02-04 11:50:34] Production.INFO: ProcessCDR(1,14400169,1,1,2) [2025-02-04 11:50:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:50:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:50:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:50:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:50:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400169', 'tblTempUsageDetail_20' ) start [2025-02-04 11:50:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400169', 'tblTempUsageDetail_20' ) end [2025-02-04 11:50:39] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:50:39] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:50:39] Production.INFO: ==17297== Releasing lock... [2025-02-04 11:50:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:50:39] Production.INFO: 59.25 MB #Memory Used# [2025-02-04 11:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:51:04 [end_date_ymd] => 2025-02-04 11:51:04 [RateCDR] => 1 ) [2025-02-04 11:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:51:04' and `end` < '2025-02-04 11:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:51:21] Production.INFO: count ==4237 [2025-02-04 11:51:23] Production.ERROR: pbx CDR StartTime 2025-02-04 08:51:04 - End Time 2025-02-04 11:51:04 [2025-02-04 11:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400174', 'tblTempUsageDetail_20' ) start [2025-02-04 11:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400174', 'tblTempUsageDetail_20' ) end [2025-02-04 11:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400174', 'tblTempVendorCDR_20' ) start [2025-02-04 11:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400174', 'tblTempVendorCDR_20' ) end [2025-02-04 11:51:23] Production.INFO: ProcessCDR(1,14400174,1,1,2) [2025-02-04 11:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400174', 'tblTempUsageDetail_20' ) start [2025-02-04 11:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400174', 'tblTempUsageDetail_20' ) end [2025-02-04 11:51:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:51:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:51:28] Production.INFO: ==17379== Releasing lock... [2025-02-04 11:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:51:28] Production.INFO: 59.75 MB #Memory Used# [2025-02-04 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:52:05 [end_date_ymd] => 2025-02-04 11:52:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 08:52:05' and `end` < '2025-02-04 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-02-04 11:52:22] Production.INFO: count ==4219 [2025-02-04 11:52:24] Production.ERROR: pbx CDR StartTime 2025-02-04 08:52:05 - End Time 2025-02-04 11:52:05 [2025-02-04 11:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400179', 'tblTempUsageDetail_20' ) start [2025-02-04 11:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400179', 'tblTempUsageDetail_20' ) end [2025-02-04 11:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400179', 'tblTempVendorCDR_20' ) start [2025-02-04 11:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400179', 'tblTempVendorCDR_20' ) end [2025-02-04 11:52:24] Production.INFO: ProcessCDR(1,14400179,1,1,2) [2025-02-04 11:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400179', 'tblTempUsageDetail_20' ) start [2025-02-04 11:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400179', 'tblTempUsageDetail_20' ) end [2025-02-04 11:52:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:52:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:52:28] Production.INFO: ==17503== Releasing lock... [2025-02-04 11:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:52:28] Production.INFO: 59.5 MB #Memory Used# [2025-02-04 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:53:05 [end_date_ymd] => 2025-02-04 11:53:05 [RateCDR] => 1 ) [2025-02-04 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:53:05' and `end` < '2025-02-04 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:53:24] Production.INFO: count ==4206 [2025-02-04 11:53:26] Production.ERROR: pbx CDR StartTime 2025-02-04 08:53:05 - End Time 2025-02-04 11:53:05 [2025-02-04 11:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400184', 'tblTempUsageDetail_20' ) start [2025-02-04 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400184', 'tblTempUsageDetail_20' ) end [2025-02-04 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400184', 'tblTempVendorCDR_20' ) start [2025-02-04 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400184', 'tblTempVendorCDR_20' ) end [2025-02-04 11:53:26] Production.INFO: ProcessCDR(1,14400184,1,1,2) [2025-02-04 11:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:53:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:53:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:53:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400184', 'tblTempUsageDetail_20' ) start [2025-02-04 11:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400184', 'tblTempUsageDetail_20' ) end [2025-02-04 11:53:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:53:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:53:31] Production.INFO: ==17590== Releasing lock... [2025-02-04 11:53:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:53:31] Production.INFO: 59.5 MB #Memory Used# [2025-02-04 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:54:05 [end_date_ymd] => 2025-02-04 11:54:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 08:54:05' and `end` < '2025-02-04 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-02-04 11:54:21] Production.INFO: count ==4198 [2025-02-04 11:54:23] Production.ERROR: pbx CDR StartTime 2025-02-04 08:54:05 - End Time 2025-02-04 11:54:05 [2025-02-04 11:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400189', 'tblTempUsageDetail_20' ) start [2025-02-04 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400189', 'tblTempUsageDetail_20' ) end [2025-02-04 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400189', 'tblTempVendorCDR_20' ) start [2025-02-04 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400189', 'tblTempVendorCDR_20' ) end [2025-02-04 11:54:23] Production.INFO: ProcessCDR(1,14400189,1,1,2) [2025-02-04 11:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400189', 'tblTempUsageDetail_20' ) start [2025-02-04 11:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400189', 'tblTempUsageDetail_20' ) end [2025-02-04 11:54:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:54:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:54:27] Production.INFO: ==17674== Releasing lock... [2025-02-04 11:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:54:27] Production.INFO: 59.5 MB #Memory Used# [2025-02-04 11:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:55:06 [end_date_ymd] => 2025-02-04 11:55:06 [RateCDR] => 1 ) [2025-02-04 11:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:55:06' and `end` < '2025-02-04 11:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:55:20] Production.INFO: count ==4183 [2025-02-04 11:55:21] Production.ERROR: pbx CDR StartTime 2025-02-04 08:55:06 - End Time 2025-02-04 11:55:06 [2025-02-04 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400194', 'tblTempUsageDetail_20' ) start [2025-02-04 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400194', 'tblTempUsageDetail_20' ) end [2025-02-04 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400194', 'tblTempVendorCDR_20' ) start [2025-02-04 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400194', 'tblTempVendorCDR_20' ) end [2025-02-04 11:55:21] Production.INFO: ProcessCDR(1,14400194,1,1,2) [2025-02-04 11:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400194', 'tblTempUsageDetail_20' ) start [2025-02-04 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400194', 'tblTempUsageDetail_20' ) end [2025-02-04 11:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:55:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:55:26] Production.INFO: ==17754== Releasing lock... [2025-02-04 11:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:55:26] Production.INFO: 59.25 MB #Memory Used# [2025-02-04 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:56:05 [end_date_ymd] => 2025-02-04 11:56:05 [RateCDR] => 1 ) [2025-02-04 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:56:05' and `end` < '2025-02-04 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:56:21] Production.INFO: count ==4199 [2025-02-04 11:56:23] Production.ERROR: pbx CDR StartTime 2025-02-04 08:56:05 - End Time 2025-02-04 11:56:05 [2025-02-04 11:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400199', 'tblTempUsageDetail_20' ) start [2025-02-04 11:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400199', 'tblTempUsageDetail_20' ) end [2025-02-04 11:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400199', 'tblTempVendorCDR_20' ) start [2025-02-04 11:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400199', 'tblTempVendorCDR_20' ) end [2025-02-04 11:56:23] Production.INFO: ProcessCDR(1,14400199,1,1,2) [2025-02-04 11:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400199', 'tblTempUsageDetail_20' ) start [2025-02-04 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400199', 'tblTempUsageDetail_20' ) end [2025-02-04 11:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:56:26] Production.INFO: ==17846== Releasing lock... [2025-02-04 11:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:56:26] Production.INFO: 59.5 MB #Memory Used# [2025-02-04 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:57:05 [end_date_ymd] => 2025-02-04 11:57:05 [RateCDR] => 1 ) [2025-02-04 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:57:05' and `end` < '2025-02-04 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:57:20] Production.INFO: count ==4210 [2025-02-04 11:57:21] Production.ERROR: pbx CDR StartTime 2025-02-04 08:57:05 - End Time 2025-02-04 11:57:05 [2025-02-04 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400204', 'tblTempUsageDetail_20' ) start [2025-02-04 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400204', 'tblTempUsageDetail_20' ) end [2025-02-04 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400204', 'tblTempVendorCDR_20' ) start [2025-02-04 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400204', 'tblTempVendorCDR_20' ) end [2025-02-04 11:57:22] Production.INFO: ProcessCDR(1,14400204,1,1,2) [2025-02-04 11:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400204', 'tblTempUsageDetail_20' ) start [2025-02-04 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400204', 'tblTempUsageDetail_20' ) end [2025-02-04 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:57:26] Production.INFO: ==17930== Releasing lock... [2025-02-04 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:57:26] Production.INFO: 59.5 MB #Memory Used# [2025-02-04 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:58:05 [end_date_ymd] => 2025-02-04 11:58:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 08:58:05' and `end` < '2025-02-04 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-02-04 11:58:22] Production.INFO: count ==4204 [2025-02-04 11:58:24] Production.ERROR: pbx CDR StartTime 2025-02-04 08:58:05 - End Time 2025-02-04 11:58:05 [2025-02-04 11:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400209', 'tblTempUsageDetail_20' ) start [2025-02-04 11:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400209', 'tblTempUsageDetail_20' ) end [2025-02-04 11:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400209', 'tblTempVendorCDR_20' ) start [2025-02-04 11:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400209', 'tblTempVendorCDR_20' ) end [2025-02-04 11:58:24] Production.INFO: ProcessCDR(1,14400209,1,1,2) [2025-02-04 11:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400209', 'tblTempUsageDetail_20' ) start [2025-02-04 11:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400209', 'tblTempUsageDetail_20' ) end [2025-02-04 11:58:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:58:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:58:29] Production.INFO: ==18011== Releasing lock... [2025-02-04 11:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:58:29] Production.INFO: 59.5 MB #Memory Used# [2025-02-04 11:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 08:59:06 [end_date_ymd] => 2025-02-04 11:59:06 [RateCDR] => 1 ) [2025-02-04 11:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 08:59:06' and `end` < '2025-02-04 11:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 11:59:26] Production.INFO: count ==4175 [2025-02-04 11:59:28] Production.ERROR: pbx CDR StartTime 2025-02-04 08:59:06 - End Time 2025-02-04 11:59:06 [2025-02-04 11:59:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 11:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400214', 'tblTempUsageDetail_20' ) start [2025-02-04 11:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400214', 'tblTempUsageDetail_20' ) end [2025-02-04 11:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400214', 'tblTempVendorCDR_20' ) start [2025-02-04 11:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400214', 'tblTempVendorCDR_20' ) end [2025-02-04 11:59:28] Production.INFO: ProcessCDR(1,14400214,1,1,2) [2025-02-04 11:59:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:59:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 11:59:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:59:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 11:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400214', 'tblTempUsageDetail_20' ) start [2025-02-04 11:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400214', 'tblTempUsageDetail_20' ) end [2025-02-04 11:59:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 11:59:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 11:59:32] Production.INFO: ==18094== Releasing lock... [2025-02-04 11:59:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 11:59:32] Production.INFO: 59.5 MB #Memory Used# [2025-02-04 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:00:06 [end_date_ymd] => 2025-02-04 12:00:06 [RateCDR] => 1 ) [2025-02-04 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-02-04 09:00:06' and `end` < '2025-02-04 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-02-04 12:00:31] Production.INFO: count ==4208 [2025-02-04 12:00:32] Production.ERROR: pbx CDR StartTime 2025-02-04 09:00:06 - End Time 2025-02-04 12:00:06 [2025-02-04 12:00:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400220', 'tblTempUsageDetail_20' ) start [2025-02-04 12:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400220', 'tblTempUsageDetail_20' ) end [2025-02-04 12:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400220', 'tblTempVendorCDR_20' ) start [2025-02-04 12:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400220', 'tblTempVendorCDR_20' ) end [2025-02-04 12:00:33] Production.INFO: ProcessCDR(1,14400220,1,1,2) [2025-02-04 12:00:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:00:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:00:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400220', 'tblTempUsageDetail_20' ) start [2025-02-04 12:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400220', 'tblTempUsageDetail_20' ) end [2025-02-04 12:00:37] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:00:37] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:00:37] Production.INFO: ==18177== Releasing lock... [2025-02-04 12:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:00:37] Production.INFO: 59.75 MB #Memory Used# [2025-02-04 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:01:05 [end_date_ymd] => 2025-02-04 12:01:05 [RateCDR] => 1 ) [2025-02-04 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:01:05' and `end` < '2025-02-04 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:01:23] Production.INFO: count ==4279 [2025-02-04 12:01:25] Production.ERROR: pbx CDR StartTime 2025-02-04 09:01:05 - End Time 2025-02-04 12:01:05 [2025-02-04 12:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400225', 'tblTempUsageDetail_20' ) start [2025-02-04 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400225', 'tblTempUsageDetail_20' ) end [2025-02-04 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400225', 'tblTempVendorCDR_20' ) start [2025-02-04 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400225', 'tblTempVendorCDR_20' ) end [2025-02-04 12:01:25] Production.INFO: ProcessCDR(1,14400225,1,1,2) [2025-02-04 12:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400225', 'tblTempUsageDetail_20' ) start [2025-02-04 12:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400225', 'tblTempUsageDetail_20' ) end [2025-02-04 12:01:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:01:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:01:30] Production.INFO: ==18274== Releasing lock... [2025-02-04 12:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:01:30] Production.INFO: 60 MB #Memory Used# [2025-02-04 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:02:05 [end_date_ymd] => 2025-02-04 12:02:05 [RateCDR] => 1 ) [2025-02-04 12:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:02:05' and `end` < '2025-02-04 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-02-04 12:02:24] Production.INFO: count ==4291 [2025-02-04 12:02:26] Production.ERROR: pbx CDR StartTime 2025-02-04 09:02:05 - End Time 2025-02-04 12:02:05 [2025-02-04 12:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400230', 'tblTempUsageDetail_20' ) start [2025-02-04 12:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400230', 'tblTempUsageDetail_20' ) end [2025-02-04 12:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400230', 'tblTempVendorCDR_20' ) start [2025-02-04 12:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400230', 'tblTempVendorCDR_20' ) end [2025-02-04 12:02:26] Production.INFO: ProcessCDR(1,14400230,1,1,2) [2025-02-04 12:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400230', 'tblTempUsageDetail_20' ) start [2025-02-04 12:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400230', 'tblTempUsageDetail_20' ) end [2025-02-04 12:02:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:02:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:02:31] Production.INFO: ==18355== Releasing lock... [2025-02-04 12:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:02:31] Production.INFO: 60.25 MB #Memory Used# [2025-02-04 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:03:05 [end_date_ymd] => 2025-02-04 12:03:05 [RateCDR] => 1 ) [2025-02-04 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:03:05' and `end` < '2025-02-04 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:03:22] Production.INFO: count ==4300 [2025-02-04 12:03:23] Production.ERROR: pbx CDR StartTime 2025-02-04 09:03:05 - End Time 2025-02-04 12:03:05 [2025-02-04 12:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400235', 'tblTempUsageDetail_20' ) start [2025-02-04 12:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400235', 'tblTempUsageDetail_20' ) end [2025-02-04 12:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400235', 'tblTempVendorCDR_20' ) start [2025-02-04 12:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400235', 'tblTempVendorCDR_20' ) end [2025-02-04 12:03:23] Production.INFO: ProcessCDR(1,14400235,1,1,2) [2025-02-04 12:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400235', 'tblTempUsageDetail_20' ) start [2025-02-04 12:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400235', 'tblTempUsageDetail_20' ) end [2025-02-04 12:03:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:03:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:03:28] Production.INFO: ==18438== Releasing lock... [2025-02-04 12:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:03:28] Production.INFO: 60.25 MB #Memory Used# [2025-02-04 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:04:05 [end_date_ymd] => 2025-02-04 12:04:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 09:04:05' and `end` < '2025-02-04 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-02-04 12:04:19] Production.INFO: count ==4297 [2025-02-04 12:04:21] Production.ERROR: pbx CDR StartTime 2025-02-04 09:04:05 - End Time 2025-02-04 12:04:05 [2025-02-04 12:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400240', 'tblTempUsageDetail_20' ) start [2025-02-04 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400240', 'tblTempUsageDetail_20' ) end [2025-02-04 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400240', 'tblTempVendorCDR_20' ) start [2025-02-04 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400240', 'tblTempVendorCDR_20' ) end [2025-02-04 12:04:21] Production.INFO: ProcessCDR(1,14400240,1,1,2) [2025-02-04 12:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400240', 'tblTempUsageDetail_20' ) start [2025-02-04 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400240', 'tblTempUsageDetail_20' ) end [2025-02-04 12:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:04:26] Production.INFO: ==18519== Releasing lock... [2025-02-04 12:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:04:26] Production.INFO: 60.25 MB #Memory Used# [2025-02-04 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:05:05 [end_date_ymd] => 2025-02-04 12:05:05 [RateCDR] => 1 ) [2025-02-04 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:05:05' and `end` < '2025-02-04 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:05:27] Production.INFO: count ==4307 [2025-02-04 12:05:29] Production.ERROR: pbx CDR StartTime 2025-02-04 09:05:05 - End Time 2025-02-04 12:05:05 [2025-02-04 12:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400245', 'tblTempUsageDetail_20' ) start [2025-02-04 12:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400245', 'tblTempUsageDetail_20' ) end [2025-02-04 12:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400245', 'tblTempVendorCDR_20' ) start [2025-02-04 12:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400245', 'tblTempVendorCDR_20' ) end [2025-02-04 12:05:29] Production.INFO: ProcessCDR(1,14400245,1,1,2) [2025-02-04 12:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:05:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:05:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400245', 'tblTempUsageDetail_20' ) start [2025-02-04 12:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400245', 'tblTempUsageDetail_20' ) end [2025-02-04 12:05:34] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:05:34] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:05:34] Production.INFO: ==18600== Releasing lock... [2025-02-04 12:05:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:05:34] Production.INFO: 60.25 MB #Memory Used# [2025-02-04 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:06:05 [end_date_ymd] => 2025-02-04 12:06:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 09:06:05' and `end` < '2025-02-04 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-02-04 12:06:23] Production.INFO: count ==4310 [2025-02-04 12:06:24] Production.ERROR: pbx CDR StartTime 2025-02-04 09:06:05 - End Time 2025-02-04 12:06:05 [2025-02-04 12:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400250', 'tblTempUsageDetail_20' ) start [2025-02-04 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400250', 'tblTempUsageDetail_20' ) end [2025-02-04 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400250', 'tblTempVendorCDR_20' ) start [2025-02-04 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400250', 'tblTempVendorCDR_20' ) end [2025-02-04 12:06:24] Production.INFO: ProcessCDR(1,14400250,1,1,2) [2025-02-04 12:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400250', 'tblTempUsageDetail_20' ) start [2025-02-04 12:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400250', 'tblTempUsageDetail_20' ) end [2025-02-04 12:06:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:06:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:06:29] Production.INFO: ==18685== Releasing lock... [2025-02-04 12:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:06:29] Production.INFO: 60.25 MB #Memory Used# [2025-02-04 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:07:05 [end_date_ymd] => 2025-02-04 12:07:05 [RateCDR] => 1 ) [2025-02-04 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:07:05' and `end` < '2025-02-04 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:07:23] Production.INFO: count ==4311 [2025-02-04 12:07:25] Production.ERROR: pbx CDR StartTime 2025-02-04 09:07:05 - End Time 2025-02-04 12:07:05 [2025-02-04 12:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400255', 'tblTempUsageDetail_20' ) start [2025-02-04 12:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400255', 'tblTempUsageDetail_20' ) end [2025-02-04 12:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400255', 'tblTempVendorCDR_20' ) start [2025-02-04 12:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400255', 'tblTempVendorCDR_20' ) end [2025-02-04 12:07:25] Production.INFO: ProcessCDR(1,14400255,1,1,2) [2025-02-04 12:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400255', 'tblTempUsageDetail_20' ) start [2025-02-04 12:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400255', 'tblTempUsageDetail_20' ) end [2025-02-04 12:07:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:07:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:07:29] Production.INFO: ==18767== Releasing lock... [2025-02-04 12:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:07:29] Production.INFO: 60.25 MB #Memory Used# [2025-02-04 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:08:05 [end_date_ymd] => 2025-02-04 12:08:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 09:08:05' and `end` < '2025-02-04 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-02-04 12:08:19] Production.INFO: count ==4309 [2025-02-04 12:08:20] Production.ERROR: pbx CDR StartTime 2025-02-04 09:08:05 - End Time 2025-02-04 12:08:05 [2025-02-04 12:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400260', 'tblTempUsageDetail_20' ) start [2025-02-04 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400260', 'tblTempUsageDetail_20' ) end [2025-02-04 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400260', 'tblTempVendorCDR_20' ) start [2025-02-04 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400260', 'tblTempVendorCDR_20' ) end [2025-02-04 12:08:21] Production.INFO: ProcessCDR(1,14400260,1,1,2) [2025-02-04 12:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400260', 'tblTempUsageDetail_20' ) start [2025-02-04 12:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400260', 'tblTempUsageDetail_20' ) end [2025-02-04 12:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:08:25] Production.INFO: ==18890== Releasing lock... [2025-02-04 12:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:08:25] Production.INFO: 60.25 MB #Memory Used# [2025-02-04 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:09:05 [end_date_ymd] => 2025-02-04 12:09:05 [RateCDR] => 1 ) [2025-02-04 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:09:05' and `end` < '2025-02-04 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:09:18] Production.INFO: count ==4329 [2025-02-04 12:09:20] Production.ERROR: pbx CDR StartTime 2025-02-04 09:09:05 - End Time 2025-02-04 12:09:05 [2025-02-04 12:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400265', 'tblTempUsageDetail_20' ) start [2025-02-04 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400265', 'tblTempUsageDetail_20' ) end [2025-02-04 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400265', 'tblTempVendorCDR_20' ) start [2025-02-04 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400265', 'tblTempVendorCDR_20' ) end [2025-02-04 12:09:20] Production.INFO: ProcessCDR(1,14400265,1,1,2) [2025-02-04 12:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400265', 'tblTempUsageDetail_20' ) start [2025-02-04 12:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400265', 'tblTempUsageDetail_20' ) end [2025-02-04 12:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:09:25] Production.INFO: ==18972== Releasing lock... [2025-02-04 12:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:09:25] Production.INFO: 60.5 MB #Memory Used# [2025-02-04 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:10:05 [end_date_ymd] => 2025-02-04 12:10:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 09:10:05' and `end` < '2025-02-04 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-02-04 12:10:23] Production.INFO: count ==4334 [2025-02-04 12:10:25] Production.ERROR: pbx CDR StartTime 2025-02-04 09:10:05 - End Time 2025-02-04 12:10:05 [2025-02-04 12:10:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400271', 'tblTempUsageDetail_20' ) start [2025-02-04 12:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400271', 'tblTempUsageDetail_20' ) end [2025-02-04 12:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400271', 'tblTempVendorCDR_20' ) start [2025-02-04 12:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400271', 'tblTempVendorCDR_20' ) end [2025-02-04 12:10:25] Production.INFO: ProcessCDR(1,14400271,1,1,2) [2025-02-04 12:10:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400271', 'tblTempUsageDetail_20' ) start [2025-02-04 12:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400271', 'tblTempUsageDetail_20' ) end [2025-02-04 12:10:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:10:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:10:30] Production.INFO: ==19052== Releasing lock... [2025-02-04 12:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:10:30] Production.INFO: 60.5 MB #Memory Used# [2025-02-04 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:11:05 [end_date_ymd] => 2025-02-04 12:11:05 [RateCDR] => 1 ) [2025-02-04 12:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:11:05' and `end` < '2025-02-04 12:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:11:21] Production.INFO: count ==4382 [2025-02-04 12:11:23] Production.ERROR: pbx CDR StartTime 2025-02-04 09:11:05 - End Time 2025-02-04 12:11:05 [2025-02-04 12:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400276', 'tblTempUsageDetail_20' ) start [2025-02-04 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400276', 'tblTempUsageDetail_20' ) end [2025-02-04 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400276', 'tblTempVendorCDR_20' ) start [2025-02-04 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400276', 'tblTempVendorCDR_20' ) end [2025-02-04 12:11:23] Production.INFO: ProcessCDR(1,14400276,1,1,2) [2025-02-04 12:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400276', 'tblTempUsageDetail_20' ) start [2025-02-04 12:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400276', 'tblTempUsageDetail_20' ) end [2025-02-04 12:11:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:11:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:11:28] Production.INFO: ==19145== Releasing lock... [2025-02-04 12:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:11:28] Production.INFO: 60.75 MB #Memory Used# [2025-02-04 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:12:05 [end_date_ymd] => 2025-02-04 12:12:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 09:12:05' and `end` < '2025-02-04 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-02-04 12:12:19] Production.INFO: count ==4374 [2025-02-04 12:12:21] Production.ERROR: pbx CDR StartTime 2025-02-04 09:12:05 - End Time 2025-02-04 12:12:05 [2025-02-04 12:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400281', 'tblTempUsageDetail_20' ) start [2025-02-04 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400281', 'tblTempUsageDetail_20' ) end [2025-02-04 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400281', 'tblTempVendorCDR_20' ) start [2025-02-04 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400281', 'tblTempVendorCDR_20' ) end [2025-02-04 12:12:21] Production.INFO: ProcessCDR(1,14400281,1,1,2) [2025-02-04 12:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400281', 'tblTempUsageDetail_20' ) start [2025-02-04 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400281', 'tblTempUsageDetail_20' ) end [2025-02-04 12:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:12:26] Production.INFO: ==19230== Releasing lock... [2025-02-04 12:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:12:26] Production.INFO: 61 MB #Memory Used# [2025-02-04 12:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:13:06 [end_date_ymd] => 2025-02-04 12:13:06 [RateCDR] => 1 ) [2025-02-04 12:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:13:06' and `end` < '2025-02-04 12:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:13:24] Production.INFO: count ==4359 [2025-02-04 12:13:25] Production.ERROR: pbx CDR StartTime 2025-02-04 09:13:06 - End Time 2025-02-04 12:13:06 [2025-02-04 12:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400286', 'tblTempUsageDetail_20' ) start [2025-02-04 12:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400286', 'tblTempUsageDetail_20' ) end [2025-02-04 12:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400286', 'tblTempVendorCDR_20' ) start [2025-02-04 12:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400286', 'tblTempVendorCDR_20' ) end [2025-02-04 12:13:26] Production.INFO: ProcessCDR(1,14400286,1,1,2) [2025-02-04 12:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400286', 'tblTempUsageDetail_20' ) start [2025-02-04 12:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400286', 'tblTempUsageDetail_20' ) end [2025-02-04 12:13:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:13:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:13:30] Production.INFO: ==19313== Releasing lock... [2025-02-04 12:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:13:30] Production.INFO: 60.75 MB #Memory Used# [2025-02-04 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:14:05 [end_date_ymd] => 2025-02-04 12:14:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 09:14:05' and `end` < '2025-02-04 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-02-04 12:14:20] Production.INFO: count ==4348 [2025-02-04 12:14:22] Production.ERROR: pbx CDR StartTime 2025-02-04 09:14:05 - End Time 2025-02-04 12:14:05 [2025-02-04 12:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400291', 'tblTempUsageDetail_20' ) start [2025-02-04 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400291', 'tblTempUsageDetail_20' ) end [2025-02-04 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400291', 'tblTempVendorCDR_20' ) start [2025-02-04 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400291', 'tblTempVendorCDR_20' ) end [2025-02-04 12:14:22] Production.INFO: ProcessCDR(1,14400291,1,1,2) [2025-02-04 12:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400291', 'tblTempUsageDetail_20' ) start [2025-02-04 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400291', 'tblTempUsageDetail_20' ) end [2025-02-04 12:14:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:14:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:14:27] Production.INFO: ==19392== Releasing lock... [2025-02-04 12:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:14:27] Production.INFO: 60.5 MB #Memory Used# [2025-02-04 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:15:05 [end_date_ymd] => 2025-02-04 12:15:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 09:15:05' and `end` < '2025-02-04 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-02-04 12:15:19] Production.INFO: count ==4330 [2025-02-04 12:15:20] Production.ERROR: pbx CDR StartTime 2025-02-04 09:15:05 - End Time 2025-02-04 12:15:05 [2025-02-04 12:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400296', 'tblTempUsageDetail_20' ) start [2025-02-04 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400296', 'tblTempUsageDetail_20' ) end [2025-02-04 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400296', 'tblTempVendorCDR_20' ) start [2025-02-04 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400296', 'tblTempVendorCDR_20' ) end [2025-02-04 12:15:21] Production.INFO: ProcessCDR(1,14400296,1,1,2) [2025-02-04 12:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400296', 'tblTempUsageDetail_20' ) start [2025-02-04 12:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400296', 'tblTempUsageDetail_20' ) end [2025-02-04 12:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:15:25] Production.INFO: ==19473== Releasing lock... [2025-02-04 12:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:15:25] Production.INFO: 60.5 MB #Memory Used# [2025-02-04 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:16:05 [end_date_ymd] => 2025-02-04 12:16:05 [RateCDR] => 1 ) [2025-02-04 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:16:05' and `end` < '2025-02-04 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:16:19] Production.INFO: count ==4331 [2025-02-04 12:16:21] Production.ERROR: pbx CDR StartTime 2025-02-04 09:16:05 - End Time 2025-02-04 12:16:05 [2025-02-04 12:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400301', 'tblTempUsageDetail_20' ) start [2025-02-04 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400301', 'tblTempUsageDetail_20' ) end [2025-02-04 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400301', 'tblTempVendorCDR_20' ) start [2025-02-04 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400301', 'tblTempVendorCDR_20' ) end [2025-02-04 12:16:21] Production.INFO: ProcessCDR(1,14400301,1,1,2) [2025-02-04 12:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400301', 'tblTempUsageDetail_20' ) start [2025-02-04 12:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400301', 'tblTempUsageDetail_20' ) end [2025-02-04 12:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:16:25] Production.INFO: ==19553== Releasing lock... [2025-02-04 12:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:16:25] Production.INFO: 60.5 MB #Memory Used# [2025-02-04 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:17:05 [end_date_ymd] => 2025-02-04 12:17:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 09:17:05' and `end` < '2025-02-04 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-02-04 12:17:21] Production.INFO: count ==4329 [2025-02-04 12:17:22] Production.ERROR: pbx CDR StartTime 2025-02-04 09:17:05 - End Time 2025-02-04 12:17:05 [2025-02-04 12:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400306', 'tblTempUsageDetail_20' ) start [2025-02-04 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400306', 'tblTempUsageDetail_20' ) end [2025-02-04 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400306', 'tblTempVendorCDR_20' ) start [2025-02-04 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400306', 'tblTempVendorCDR_20' ) end [2025-02-04 12:17:22] Production.INFO: ProcessCDR(1,14400306,1,1,2) [2025-02-04 12:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400306', 'tblTempUsageDetail_20' ) start [2025-02-04 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400306', 'tblTempUsageDetail_20' ) end [2025-02-04 12:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:17:27] Production.INFO: ==19631== Releasing lock... [2025-02-04 12:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:17:27] Production.INFO: 60.5 MB #Memory Used# [2025-02-04 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:18:06 [end_date_ymd] => 2025-02-04 12:18:06 [RateCDR] => 1 ) [2025-02-04 12:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:18:06' and `end` < '2025-02-04 12:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:18:23] Production.INFO: count ==4374 [2025-02-04 12:18:25] Production.ERROR: pbx CDR StartTime 2025-02-04 09:18:06 - End Time 2025-02-04 12:18:06 [2025-02-04 12:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400311', 'tblTempUsageDetail_20' ) start [2025-02-04 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400311', 'tblTempUsageDetail_20' ) end [2025-02-04 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400311', 'tblTempVendorCDR_20' ) start [2025-02-04 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400311', 'tblTempVendorCDR_20' ) end [2025-02-04 12:18:25] Production.INFO: ProcessCDR(1,14400311,1,1,2) [2025-02-04 12:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400311', 'tblTempUsageDetail_20' ) start [2025-02-04 12:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400311', 'tblTempUsageDetail_20' ) end [2025-02-04 12:18:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:18:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:18:30] Production.INFO: ==19725== Releasing lock... [2025-02-04 12:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:18:30] Production.INFO: 60.75 MB #Memory Used# [2025-02-04 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:19:05 [end_date_ymd] => 2025-02-04 12:19:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 09:19:05' and `end` < '2025-02-04 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-02-04 12:19:23] Production.INFO: count ==4401 [2025-02-04 12:19:25] Production.ERROR: pbx CDR StartTime 2025-02-04 09:19:05 - End Time 2025-02-04 12:19:05 [2025-02-04 12:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400316', 'tblTempUsageDetail_20' ) start [2025-02-04 12:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400316', 'tblTempUsageDetail_20' ) end [2025-02-04 12:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400316', 'tblTempVendorCDR_20' ) start [2025-02-04 12:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400316', 'tblTempVendorCDR_20' ) end [2025-02-04 12:19:25] Production.INFO: ProcessCDR(1,14400316,1,1,2) [2025-02-04 12:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:19:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:19:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400316', 'tblTempUsageDetail_20' ) start [2025-02-04 12:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400316', 'tblTempUsageDetail_20' ) end [2025-02-04 12:19:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:19:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:19:30] Production.INFO: ==19801== Releasing lock... [2025-02-04 12:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:19:30] Production.INFO: 61 MB #Memory Used# [2025-02-04 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:20:06 [end_date_ymd] => 2025-02-04 12:20:06 [RateCDR] => 1 ) [2025-02-04 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:20:06' and `end` < '2025-02-04 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:20:26] Production.INFO: count ==4402 [2025-02-04 12:20:28] Production.ERROR: pbx CDR StartTime 2025-02-04 09:20:06 - End Time 2025-02-04 12:20:06 [2025-02-04 12:20:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400321', 'tblTempUsageDetail_20' ) start [2025-02-04 12:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400321', 'tblTempUsageDetail_20' ) end [2025-02-04 12:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400321', 'tblTempVendorCDR_20' ) start [2025-02-04 12:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400321', 'tblTempVendorCDR_20' ) end [2025-02-04 12:20:28] Production.INFO: ProcessCDR(1,14400321,1,1,2) [2025-02-04 12:20:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:20:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:20:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400321', 'tblTempUsageDetail_20' ) start [2025-02-04 12:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400321', 'tblTempUsageDetail_20' ) end [2025-02-04 12:20:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:20:33] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:20:33] Production.INFO: ==19885== Releasing lock... [2025-02-04 12:20:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:20:33] Production.INFO: 61 MB #Memory Used# [2025-02-04 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:21:05 [end_date_ymd] => 2025-02-04 12:21:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 09:21:05' and `end` < '2025-02-04 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-02-04 12:21:26] Production.INFO: count ==4457 [2025-02-04 12:21:27] Production.ERROR: pbx CDR StartTime 2025-02-04 09:21:05 - End Time 2025-02-04 12:21:05 [2025-02-04 12:21:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400327', 'tblTempUsageDetail_20' ) start [2025-02-04 12:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400327', 'tblTempUsageDetail_20' ) end [2025-02-04 12:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400327', 'tblTempVendorCDR_20' ) start [2025-02-04 12:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400327', 'tblTempVendorCDR_20' ) end [2025-02-04 12:21:28] Production.INFO: ProcessCDR(1,14400327,1,1,2) [2025-02-04 12:21:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:21:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:21:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:21:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400327', 'tblTempUsageDetail_20' ) start [2025-02-04 12:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400327', 'tblTempUsageDetail_20' ) end [2025-02-04 12:21:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:21:33] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:21:33] Production.INFO: ==19965== Releasing lock... [2025-02-04 12:21:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:21:33] Production.INFO: 61.5 MB #Memory Used# [2025-02-04 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:22:05 [end_date_ymd] => 2025-02-04 12:22:05 [RateCDR] => 1 ) [2025-02-04 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:22:05' and `end` < '2025-02-04 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:22:23] Production.INFO: count ==4493 [2025-02-04 12:22:25] Production.ERROR: pbx CDR StartTime 2025-02-04 09:22:05 - End Time 2025-02-04 12:22:05 [2025-02-04 12:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400332', 'tblTempUsageDetail_20' ) start [2025-02-04 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400332', 'tblTempUsageDetail_20' ) end [2025-02-04 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400332', 'tblTempVendorCDR_20' ) start [2025-02-04 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400332', 'tblTempVendorCDR_20' ) end [2025-02-04 12:22:25] Production.INFO: ProcessCDR(1,14400332,1,1,2) [2025-02-04 12:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400332', 'tblTempUsageDetail_20' ) start [2025-02-04 12:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400332', 'tblTempUsageDetail_20' ) end [2025-02-04 12:22:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:22:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:22:29] Production.INFO: ==20044== Releasing lock... [2025-02-04 12:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:22:29] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 12:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:23:04 [end_date_ymd] => 2025-02-04 12:23:04 [RateCDR] => 1 ) [2025-02-04 12:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:23:04' and `end` < '2025-02-04 12:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:23:20] Production.INFO: count ==4507 [2025-02-04 12:23:22] Production.ERROR: pbx CDR StartTime 2025-02-04 09:23:04 - End Time 2025-02-04 12:23:04 [2025-02-04 12:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400337', 'tblTempUsageDetail_20' ) start [2025-02-04 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400337', 'tblTempUsageDetail_20' ) end [2025-02-04 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400337', 'tblTempVendorCDR_20' ) start [2025-02-04 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400337', 'tblTempVendorCDR_20' ) end [2025-02-04 12:23:22] Production.INFO: ProcessCDR(1,14400337,1,1,2) [2025-02-04 12:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400337', 'tblTempUsageDetail_20' ) start [2025-02-04 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400337', 'tblTempUsageDetail_20' ) end [2025-02-04 12:23:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:23:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:23:27] Production.INFO: ==20167== Releasing lock... [2025-02-04 12:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:23:27] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:24:05 [end_date_ymd] => 2025-02-04 12:24:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 09:24:05' and `end` < '2025-02-04 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-02-04 12:24:23] Production.INFO: count ==4512 [2025-02-04 12:24:24] Production.ERROR: pbx CDR StartTime 2025-02-04 09:24:05 - End Time 2025-02-04 12:24:05 [2025-02-04 12:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400342', 'tblTempUsageDetail_20' ) start [2025-02-04 12:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400342', 'tblTempUsageDetail_20' ) end [2025-02-04 12:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400342', 'tblTempVendorCDR_20' ) start [2025-02-04 12:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400342', 'tblTempVendorCDR_20' ) end [2025-02-04 12:24:24] Production.INFO: ProcessCDR(1,14400342,1,1,2) [2025-02-04 12:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400342', 'tblTempUsageDetail_20' ) start [2025-02-04 12:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400342', 'tblTempUsageDetail_20' ) end [2025-02-04 12:24:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:24:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:24:29] Production.INFO: ==20249== Releasing lock... [2025-02-04 12:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:24:29] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:25:06 [end_date_ymd] => 2025-02-04 12:25:06 [RateCDR] => 1 ) [2025-02-04 12:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:25:06' and `end` < '2025-02-04 12:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:25:19] Production.INFO: count ==4501 [2025-02-04 12:25:21] Production.ERROR: pbx CDR StartTime 2025-02-04 09:25:06 - End Time 2025-02-04 12:25:06 [2025-02-04 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400347', 'tblTempUsageDetail_20' ) start [2025-02-04 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400347', 'tblTempUsageDetail_20' ) end [2025-02-04 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400347', 'tblTempVendorCDR_20' ) start [2025-02-04 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400347', 'tblTempVendorCDR_20' ) end [2025-02-04 12:25:21] Production.INFO: ProcessCDR(1,14400347,1,1,2) [2025-02-04 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400347', 'tblTempUsageDetail_20' ) start [2025-02-04 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400347', 'tblTempUsageDetail_20' ) end [2025-02-04 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:25:26] Production.INFO: ==20326== Releasing lock... [2025-02-04 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:25:26] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 12:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:26:06 [end_date_ymd] => 2025-02-04 12:26:06 [RateCDR] => 1 ) [2025-02-04 12:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:26:06' and `end` < '2025-02-04 12:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:26:24] Production.INFO: count ==4500 [2025-02-04 12:26:26] Production.ERROR: pbx CDR StartTime 2025-02-04 09:26:06 - End Time 2025-02-04 12:26:06 [2025-02-04 12:26:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400352', 'tblTempUsageDetail_20' ) start [2025-02-04 12:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400352', 'tblTempUsageDetail_20' ) end [2025-02-04 12:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400352', 'tblTempVendorCDR_20' ) start [2025-02-04 12:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400352', 'tblTempVendorCDR_20' ) end [2025-02-04 12:26:26] Production.INFO: ProcessCDR(1,14400352,1,1,2) [2025-02-04 12:26:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:26:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:26:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:26:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400352', 'tblTempUsageDetail_20' ) start [2025-02-04 12:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400352', 'tblTempUsageDetail_20' ) end [2025-02-04 12:26:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:26:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:26:30] Production.INFO: ==20407== Releasing lock... [2025-02-04 12:26:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:26:30] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 12:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:27:06 [end_date_ymd] => 2025-02-04 12:27:06 [RateCDR] => 1 ) [2025-02-04 12:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:27:06' and `end` < '2025-02-04 12:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:27:25] Production.INFO: count ==4509 [2025-02-04 12:27:27] Production.ERROR: pbx CDR StartTime 2025-02-04 09:27:06 - End Time 2025-02-04 12:27:06 [2025-02-04 12:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400357', 'tblTempUsageDetail_20' ) start [2025-02-04 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400357', 'tblTempUsageDetail_20' ) end [2025-02-04 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400357', 'tblTempVendorCDR_20' ) start [2025-02-04 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400357', 'tblTempVendorCDR_20' ) end [2025-02-04 12:27:27] Production.INFO: ProcessCDR(1,14400357,1,1,2) [2025-02-04 12:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:27:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:27:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:27:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400357', 'tblTempUsageDetail_20' ) start [2025-02-04 12:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400357', 'tblTempUsageDetail_20' ) end [2025-02-04 12:27:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:27:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:27:32] Production.INFO: ==20482== Releasing lock... [2025-02-04 12:27:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:27:32] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 12:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:28:04 [end_date_ymd] => 2025-02-04 12:28:04 [RateCDR] => 1 ) [2025-02-04 12: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-02-04 09:28:04' and `end` < '2025-02-04 12: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-02-04 12:28:19] Production.INFO: count ==4547 [2025-02-04 12:28:21] Production.ERROR: pbx CDR StartTime 2025-02-04 09:28:04 - End Time 2025-02-04 12:28:04 [2025-02-04 12:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400362', 'tblTempUsageDetail_20' ) start [2025-02-04 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400362', 'tblTempUsageDetail_20' ) end [2025-02-04 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400362', 'tblTempVendorCDR_20' ) start [2025-02-04 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400362', 'tblTempVendorCDR_20' ) end [2025-02-04 12:28:21] Production.INFO: ProcessCDR(1,14400362,1,1,2) [2025-02-04 12:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400362', 'tblTempUsageDetail_20' ) start [2025-02-04 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400362', 'tblTempUsageDetail_20' ) end [2025-02-04 12:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:28:26] Production.INFO: ==20560== Releasing lock... [2025-02-04 12:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:28:26] Production.INFO: 62 MB #Memory Used# [2025-02-04 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:29:05 [end_date_ymd] => 2025-02-04 12:29:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 09:29:05' and `end` < '2025-02-04 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-02-04 12:29:19] Production.INFO: count ==4568 [2025-02-04 12:29:20] Production.ERROR: pbx CDR StartTime 2025-02-04 09:29:05 - End Time 2025-02-04 12:29:05 [2025-02-04 12:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400367', 'tblTempUsageDetail_20' ) start [2025-02-04 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400367', 'tblTempUsageDetail_20' ) end [2025-02-04 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400367', 'tblTempVendorCDR_20' ) start [2025-02-04 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400367', 'tblTempVendorCDR_20' ) end [2025-02-04 12:29:21] Production.INFO: ProcessCDR(1,14400367,1,1,2) [2025-02-04 12:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400367', 'tblTempUsageDetail_20' ) start [2025-02-04 12:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400367', 'tblTempUsageDetail_20' ) end [2025-02-04 12:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:29:25] Production.INFO: ==20638== Releasing lock... [2025-02-04 12:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:29:25] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:30:06 [end_date_ymd] => 2025-02-04 12:30:06 [RateCDR] => 1 ) [2025-02-04 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:30:06' and `end` < '2025-02-04 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:30:29] Production.INFO: count ==4576 [2025-02-04 12:30:31] Production.ERROR: pbx CDR StartTime 2025-02-04 09:30:06 - End Time 2025-02-04 12:30:06 [2025-02-04 12:30:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400373', 'tblTempUsageDetail_20' ) start [2025-02-04 12:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400373', 'tblTempUsageDetail_20' ) end [2025-02-04 12:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400373', 'tblTempVendorCDR_20' ) start [2025-02-04 12:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400373', 'tblTempVendorCDR_20' ) end [2025-02-04 12:30:31] Production.INFO: ProcessCDR(1,14400373,1,1,2) [2025-02-04 12:30:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:30:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:30:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:30:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400373', 'tblTempUsageDetail_20' ) start [2025-02-04 12:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400373', 'tblTempUsageDetail_20' ) end [2025-02-04 12:30:36] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:30:36] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:30:36] Production.INFO: ==20717== Releasing lock... [2025-02-04 12:30:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:30:36] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:31:05 [end_date_ymd] => 2025-02-04 12:31:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 09:31:05' and `end` < '2025-02-04 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-02-04 12:31:22] Production.INFO: count ==4563 [2025-02-04 12:31:24] Production.ERROR: pbx CDR StartTime 2025-02-04 09:31:05 - End Time 2025-02-04 12:31:05 [2025-02-04 12:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400378', 'tblTempUsageDetail_20' ) start [2025-02-04 12:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400378', 'tblTempUsageDetail_20' ) end [2025-02-04 12:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400378', 'tblTempVendorCDR_20' ) start [2025-02-04 12:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400378', 'tblTempVendorCDR_20' ) end [2025-02-04 12:31:24] Production.INFO: ProcessCDR(1,14400378,1,1,2) [2025-02-04 12:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400378', 'tblTempUsageDetail_20' ) start [2025-02-04 12:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400378', 'tblTempUsageDetail_20' ) end [2025-02-04 12:31:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:31:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:31:29] Production.INFO: ==20797== Releasing lock... [2025-02-04 12:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:31:29] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:32:06 [end_date_ymd] => 2025-02-04 12:32:06 [RateCDR] => 1 ) [2025-02-04 12:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:32:06' and `end` < '2025-02-04 12:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:32:20] Production.INFO: count ==4567 [2025-02-04 12:32:22] Production.ERROR: pbx CDR StartTime 2025-02-04 09:32:06 - End Time 2025-02-04 12:32:06 [2025-02-04 12:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400383', 'tblTempUsageDetail_20' ) start [2025-02-04 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400383', 'tblTempUsageDetail_20' ) end [2025-02-04 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400383', 'tblTempVendorCDR_20' ) start [2025-02-04 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400383', 'tblTempVendorCDR_20' ) end [2025-02-04 12:32:22] Production.INFO: ProcessCDR(1,14400383,1,1,2) [2025-02-04 12:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400383', 'tblTempUsageDetail_20' ) start [2025-02-04 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400383', 'tblTempUsageDetail_20' ) end [2025-02-04 12:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:32:26] Production.INFO: ==20880== Releasing lock... [2025-02-04 12:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:32:26] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:33:05 [end_date_ymd] => 2025-02-04 12:33:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 09:33:05' and `end` < '2025-02-04 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-02-04 12:33:20] Production.INFO: count ==4577 [2025-02-04 12:33:22] Production.ERROR: pbx CDR StartTime 2025-02-04 09:33:05 - End Time 2025-02-04 12:33:05 [2025-02-04 12:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400388', 'tblTempUsageDetail_20' ) start [2025-02-04 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400388', 'tblTempUsageDetail_20' ) end [2025-02-04 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400388', 'tblTempVendorCDR_20' ) start [2025-02-04 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400388', 'tblTempVendorCDR_20' ) end [2025-02-04 12:33:22] Production.INFO: ProcessCDR(1,14400388,1,1,2) [2025-02-04 12:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400388', 'tblTempUsageDetail_20' ) start [2025-02-04 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400388', 'tblTempUsageDetail_20' ) end [2025-02-04 12:33:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:33:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:33:27] Production.INFO: ==20960== Releasing lock... [2025-02-04 12:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:33:27] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:34:06 [end_date_ymd] => 2025-02-04 12:34:06 [RateCDR] => 1 ) [2025-02-04 12:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:34:06' and `end` < '2025-02-04 12:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:34:23] Production.INFO: count ==4575 [2025-02-04 12:34:24] Production.ERROR: pbx CDR StartTime 2025-02-04 09:34:06 - End Time 2025-02-04 12:34:06 [2025-02-04 12:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400393', 'tblTempUsageDetail_20' ) start [2025-02-04 12:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400393', 'tblTempUsageDetail_20' ) end [2025-02-04 12:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400393', 'tblTempVendorCDR_20' ) start [2025-02-04 12:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400393', 'tblTempVendorCDR_20' ) end [2025-02-04 12:34:25] Production.INFO: ProcessCDR(1,14400393,1,1,2) [2025-02-04 12:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400393', 'tblTempUsageDetail_20' ) start [2025-02-04 12:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400393', 'tblTempUsageDetail_20' ) end [2025-02-04 12:34:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:34:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:34:29] Production.INFO: ==21040== Releasing lock... [2025-02-04 12:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:34:29] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:35:05 [end_date_ymd] => 2025-02-04 12:35:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 09:35:05' and `end` < '2025-02-04 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-02-04 12:35:28] Production.INFO: count ==4575 [2025-02-04 12:35:30] Production.ERROR: pbx CDR StartTime 2025-02-04 09:35:05 - End Time 2025-02-04 12:35:05 [2025-02-04 12:35:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400398', 'tblTempUsageDetail_20' ) start [2025-02-04 12:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400398', 'tblTempUsageDetail_20' ) end [2025-02-04 12:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400398', 'tblTempVendorCDR_20' ) start [2025-02-04 12:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400398', 'tblTempVendorCDR_20' ) end [2025-02-04 12:35:30] Production.INFO: ProcessCDR(1,14400398,1,1,2) [2025-02-04 12:35:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:35:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:35:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:35:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400398', 'tblTempUsageDetail_20' ) start [2025-02-04 12:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400398', 'tblTempUsageDetail_20' ) end [2025-02-04 12:35:34] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:35:34] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:35:35] Production.INFO: ==21119== Releasing lock... [2025-02-04 12:35:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:35:35] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:36:05 [end_date_ymd] => 2025-02-04 12:36:05 [RateCDR] => 1 ) [2025-02-04 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:36:05' and `end` < '2025-02-04 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:36:25] Production.INFO: count ==4586 [2025-02-04 12:36:27] Production.ERROR: pbx CDR StartTime 2025-02-04 09:36:05 - End Time 2025-02-04 12:36:05 [2025-02-04 12:36:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400403', 'tblTempUsageDetail_20' ) start [2025-02-04 12:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400403', 'tblTempUsageDetail_20' ) end [2025-02-04 12:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400403', 'tblTempVendorCDR_20' ) start [2025-02-04 12:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400403', 'tblTempVendorCDR_20' ) end [2025-02-04 12:36:27] Production.INFO: ProcessCDR(1,14400403,1,1,2) [2025-02-04 12:36:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:36:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:36:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:36:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400403', 'tblTempUsageDetail_20' ) start [2025-02-04 12:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400403', 'tblTempUsageDetail_20' ) end [2025-02-04 12:36:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:36:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:36:32] Production.INFO: ==21198== Releasing lock... [2025-02-04 12:36:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:36:32] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:37:05 [end_date_ymd] => 2025-02-04 12:37:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 09:37:05' and `end` < '2025-02-04 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-02-04 12:37:22] Production.INFO: count ==4601 [2025-02-04 12:37:24] Production.ERROR: pbx CDR StartTime 2025-02-04 09:37:05 - End Time 2025-02-04 12:37:05 [2025-02-04 12:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400408', 'tblTempUsageDetail_20' ) start [2025-02-04 12:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400408', 'tblTempUsageDetail_20' ) end [2025-02-04 12:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400408', 'tblTempVendorCDR_20' ) start [2025-02-04 12:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400408', 'tblTempVendorCDR_20' ) end [2025-02-04 12:37:25] Production.INFO: ProcessCDR(1,14400408,1,1,2) [2025-02-04 12:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400408', 'tblTempUsageDetail_20' ) start [2025-02-04 12:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400408', 'tblTempUsageDetail_20' ) end [2025-02-04 12:37:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:37:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:37:29] Production.INFO: ==21276== Releasing lock... [2025-02-04 12:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:37:29] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:38:05 [end_date_ymd] => 2025-02-04 12:38:05 [RateCDR] => 1 ) [2025-02-04 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:38:05' and `end` < '2025-02-04 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:38:24] Production.INFO: count ==4603 [2025-02-04 12:38:26] Production.ERROR: pbx CDR StartTime 2025-02-04 09:38:05 - End Time 2025-02-04 12:38:05 [2025-02-04 12:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400413', 'tblTempUsageDetail_20' ) start [2025-02-04 12:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400413', 'tblTempUsageDetail_20' ) end [2025-02-04 12:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400413', 'tblTempVendorCDR_20' ) start [2025-02-04 12:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400413', 'tblTempVendorCDR_20' ) end [2025-02-04 12:38:26] Production.INFO: ProcessCDR(1,14400413,1,1,2) [2025-02-04 12:38:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400413', 'tblTempUsageDetail_20' ) start [2025-02-04 12:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400413', 'tblTempUsageDetail_20' ) end [2025-02-04 12:38:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:38:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:38:31] Production.INFO: ==21358== Releasing lock... [2025-02-04 12:38:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:38:31] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 12:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:39:04 [end_date_ymd] => 2025-02-04 12:39:04 [RateCDR] => 1 ) [2025-02-04 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-02-04 09:39:04' and `end` < '2025-02-04 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-02-04 12:39:20] Production.INFO: count ==4613 [2025-02-04 12:39:22] Production.ERROR: pbx CDR StartTime 2025-02-04 09:39:04 - End Time 2025-02-04 12:39:04 [2025-02-04 12:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400418', 'tblTempUsageDetail_20' ) start [2025-02-04 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400418', 'tblTempUsageDetail_20' ) end [2025-02-04 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400418', 'tblTempVendorCDR_20' ) start [2025-02-04 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400418', 'tblTempVendorCDR_20' ) end [2025-02-04 12:39:22] Production.INFO: ProcessCDR(1,14400418,1,1,2) [2025-02-04 12:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400418', 'tblTempUsageDetail_20' ) start [2025-02-04 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400418', 'tblTempUsageDetail_20' ) end [2025-02-04 12:39:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:39:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:39:27] Production.INFO: ==21475== Releasing lock... [2025-02-04 12:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:39:27] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:40:06 [end_date_ymd] => 2025-02-04 12:40:06 [RateCDR] => 1 ) [2025-02-04 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:40:06' and `end` < '2025-02-04 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:40:19] Production.INFO: count ==4615 [2025-02-04 12:40:21] Production.ERROR: pbx CDR StartTime 2025-02-04 09:40:06 - End Time 2025-02-04 12:40:06 [2025-02-04 12:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400424', 'tblTempUsageDetail_20' ) start [2025-02-04 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400424', 'tblTempUsageDetail_20' ) end [2025-02-04 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400424', 'tblTempVendorCDR_20' ) start [2025-02-04 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400424', 'tblTempVendorCDR_20' ) end [2025-02-04 12:40:21] Production.INFO: ProcessCDR(1,14400424,1,1,2) [2025-02-04 12:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400424', 'tblTempUsageDetail_20' ) start [2025-02-04 12:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400424', 'tblTempUsageDetail_20' ) end [2025-02-04 12:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:40:26] Production.INFO: ==21556== Releasing lock... [2025-02-04 12:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:40:26] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 12:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:41:06 [end_date_ymd] => 2025-02-04 12:41:06 [RateCDR] => 1 ) [2025-02-04 12:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:41:06' and `end` < '2025-02-04 12:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:41:21] Production.INFO: count ==4622 [2025-02-04 12:41:23] Production.ERROR: pbx CDR StartTime 2025-02-04 09:41:06 - End Time 2025-02-04 12:41:06 [2025-02-04 12:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400429', 'tblTempUsageDetail_20' ) start [2025-02-04 12:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400429', 'tblTempUsageDetail_20' ) end [2025-02-04 12:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400429', 'tblTempVendorCDR_20' ) start [2025-02-04 12:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400429', 'tblTempVendorCDR_20' ) end [2025-02-04 12:41:24] Production.INFO: ProcessCDR(1,14400429,1,1,2) [2025-02-04 12:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400429', 'tblTempUsageDetail_20' ) start [2025-02-04 12:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400429', 'tblTempUsageDetail_20' ) end [2025-02-04 12:41:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:41:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:41:28] Production.INFO: ==21635== Releasing lock... [2025-02-04 12:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:41:28] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:42:05 [end_date_ymd] => 2025-02-04 12:42:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 09:42:05' and `end` < '2025-02-04 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-02-04 12:42:21] Production.INFO: count ==4623 [2025-02-04 12:42:23] Production.ERROR: pbx CDR StartTime 2025-02-04 09:42:05 - End Time 2025-02-04 12:42:05 [2025-02-04 12:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400434', 'tblTempUsageDetail_20' ) start [2025-02-04 12:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400434', 'tblTempUsageDetail_20' ) end [2025-02-04 12:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400434', 'tblTempVendorCDR_20' ) start [2025-02-04 12:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400434', 'tblTempVendorCDR_20' ) end [2025-02-04 12:42:23] Production.INFO: ProcessCDR(1,14400434,1,1,2) [2025-02-04 12:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400434', 'tblTempUsageDetail_20' ) start [2025-02-04 12:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400434', 'tblTempUsageDetail_20' ) end [2025-02-04 12:42:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:42:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:42:28] Production.INFO: ==21712== Releasing lock... [2025-02-04 12:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:42:28] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 12:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:43:06 [end_date_ymd] => 2025-02-04 12:43:06 [RateCDR] => 1 ) [2025-02-04 12:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:43:06' and `end` < '2025-02-04 12:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:43:22] Production.INFO: count ==4615 [2025-02-04 12:43:24] Production.ERROR: pbx CDR StartTime 2025-02-04 09:43:06 - End Time 2025-02-04 12:43:06 [2025-02-04 12:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400439', 'tblTempUsageDetail_20' ) start [2025-02-04 12:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400439', 'tblTempUsageDetail_20' ) end [2025-02-04 12:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400439', 'tblTempVendorCDR_20' ) start [2025-02-04 12:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400439', 'tblTempVendorCDR_20' ) end [2025-02-04 12:43:24] Production.INFO: ProcessCDR(1,14400439,1,1,2) [2025-02-04 12:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400439', 'tblTempUsageDetail_20' ) start [2025-02-04 12:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400439', 'tblTempUsageDetail_20' ) end [2025-02-04 12:43:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:43:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:43:29] Production.INFO: ==21792== Releasing lock... [2025-02-04 12:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:43:29] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:44:05 [end_date_ymd] => 2025-02-04 12:44:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 09:44:05' and `end` < '2025-02-04 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-02-04 12:44:19] Production.INFO: count ==4610 [2025-02-04 12:44:20] Production.ERROR: pbx CDR StartTime 2025-02-04 09:44:05 - End Time 2025-02-04 12:44:05 [2025-02-04 12:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400444', 'tblTempUsageDetail_20' ) start [2025-02-04 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400444', 'tblTempUsageDetail_20' ) end [2025-02-04 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400444', 'tblTempVendorCDR_20' ) start [2025-02-04 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400444', 'tblTempVendorCDR_20' ) end [2025-02-04 12:44:21] Production.INFO: ProcessCDR(1,14400444,1,1,2) [2025-02-04 12:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400444', 'tblTempUsageDetail_20' ) start [2025-02-04 12:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400444', 'tblTempUsageDetail_20' ) end [2025-02-04 12:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:44:25] Production.INFO: ==21873== Releasing lock... [2025-02-04 12:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:44:25] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:45:05 [end_date_ymd] => 2025-02-04 12:45:05 [RateCDR] => 1 ) [2025-02-04 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:45:05' and `end` < '2025-02-04 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:45:20] Production.INFO: count ==4605 [2025-02-04 12:45:22] Production.ERROR: pbx CDR StartTime 2025-02-04 09:45:05 - End Time 2025-02-04 12:45:05 [2025-02-04 12:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400449', 'tblTempUsageDetail_20' ) start [2025-02-04 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400449', 'tblTempUsageDetail_20' ) end [2025-02-04 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400449', 'tblTempVendorCDR_20' ) start [2025-02-04 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400449', 'tblTempVendorCDR_20' ) end [2025-02-04 12:45:22] Production.INFO: ProcessCDR(1,14400449,1,1,2) [2025-02-04 12:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400449', 'tblTempUsageDetail_20' ) start [2025-02-04 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400449', 'tblTempUsageDetail_20' ) end [2025-02-04 12:45:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:45:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:45:27] Production.INFO: ==21955== Releasing lock... [2025-02-04 12:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:45:27] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:46:05 [end_date_ymd] => 2025-02-04 12:46:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 09:46:05' and `end` < '2025-02-04 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-02-04 12:46:23] Production.INFO: count ==4622 [2025-02-04 12:46:25] Production.ERROR: pbx CDR StartTime 2025-02-04 09:46:05 - End Time 2025-02-04 12:46:05 [2025-02-04 12:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400454', 'tblTempUsageDetail_20' ) start [2025-02-04 12:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400454', 'tblTempUsageDetail_20' ) end [2025-02-04 12:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400454', 'tblTempVendorCDR_20' ) start [2025-02-04 12:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400454', 'tblTempVendorCDR_20' ) end [2025-02-04 12:46:25] Production.INFO: ProcessCDR(1,14400454,1,1,2) [2025-02-04 12:46:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400454', 'tblTempUsageDetail_20' ) start [2025-02-04 12:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400454', 'tblTempUsageDetail_20' ) end [2025-02-04 12:46:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:46:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:46:30] Production.INFO: ==22031== Releasing lock... [2025-02-04 12:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:46:30] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 12:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:47:04 [end_date_ymd] => 2025-02-04 12:47:04 [RateCDR] => 1 ) [2025-02-04 12:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:47:04' and `end` < '2025-02-04 12:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:47:23] Production.INFO: count ==4632 [2025-02-04 12:47:25] Production.ERROR: pbx CDR StartTime 2025-02-04 09:47:04 - End Time 2025-02-04 12:47:04 [2025-02-04 12:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400459', 'tblTempUsageDetail_20' ) start [2025-02-04 12:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400459', 'tblTempUsageDetail_20' ) end [2025-02-04 12:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400459', 'tblTempVendorCDR_20' ) start [2025-02-04 12:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400459', 'tblTempVendorCDR_20' ) end [2025-02-04 12:47:25] Production.INFO: ProcessCDR(1,14400459,1,1,2) [2025-02-04 12:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400459', 'tblTempUsageDetail_20' ) start [2025-02-04 12:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400459', 'tblTempUsageDetail_20' ) end [2025-02-04 12:47:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:47:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:47:30] Production.INFO: ==22109== Releasing lock... [2025-02-04 12:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:47:30] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:48:05 [end_date_ymd] => 2025-02-04 12:48:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 09:48:05' and `end` < '2025-02-04 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:48:22] Production.INFO: count ==4642 [2025-02-04 12:48:24] Production.ERROR: pbx CDR StartTime 2025-02-04 09:48:05 - End Time 2025-02-04 12:48:05 [2025-02-04 12:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400464', 'tblTempUsageDetail_20' ) start [2025-02-04 12:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400464', 'tblTempUsageDetail_20' ) end [2025-02-04 12:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400464', 'tblTempVendorCDR_20' ) start [2025-02-04 12:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400464', 'tblTempVendorCDR_20' ) end [2025-02-04 12:48:24] Production.INFO: ProcessCDR(1,14400464,1,1,2) [2025-02-04 12:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400464', 'tblTempUsageDetail_20' ) start [2025-02-04 12:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400464', 'tblTempUsageDetail_20' ) end [2025-02-04 12:48:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:48:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:48:29] Production.INFO: ==22189== Releasing lock... [2025-02-04 12:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:48:29] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:49:05 [end_date_ymd] => 2025-02-04 12:49:05 [RateCDR] => 1 ) [2025-02-04 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:49:05' and `end` < '2025-02-04 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:49:21] Production.INFO: count ==4658 [2025-02-04 12:49:23] Production.ERROR: pbx CDR StartTime 2025-02-04 09:49:05 - End Time 2025-02-04 12:49:05 [2025-02-04 12:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400469', 'tblTempUsageDetail_20' ) start [2025-02-04 12:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400469', 'tblTempUsageDetail_20' ) end [2025-02-04 12:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400469', 'tblTempVendorCDR_20' ) start [2025-02-04 12:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400469', 'tblTempVendorCDR_20' ) end [2025-02-04 12:49:23] Production.INFO: ProcessCDR(1,14400469,1,1,2) [2025-02-04 12:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400469', 'tblTempUsageDetail_20' ) start [2025-02-04 12:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400469', 'tblTempUsageDetail_20' ) end [2025-02-04 12:49:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:49:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:49:28] Production.INFO: ==22272== Releasing lock... [2025-02-04 12:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:49:28] Production.INFO: 63 MB #Memory Used# [2025-02-04 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:50:06 [end_date_ymd] => 2025-02-04 12:50:06 [RateCDR] => 1 ) [2025-02-04 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:50:06' and `end` < '2025-02-04 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:50:20] Production.INFO: count ==4677 [2025-02-04 12:50:22] Production.ERROR: pbx CDR StartTime 2025-02-04 09:50:06 - End Time 2025-02-04 12:50:06 [2025-02-04 12:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400475', 'tblTempUsageDetail_20' ) start [2025-02-04 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400475', 'tblTempUsageDetail_20' ) end [2025-02-04 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400475', 'tblTempVendorCDR_20' ) start [2025-02-04 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400475', 'tblTempVendorCDR_20' ) end [2025-02-04 12:50:22] Production.INFO: ProcessCDR(1,14400475,1,1,2) [2025-02-04 12:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400475', 'tblTempUsageDetail_20' ) start [2025-02-04 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400475', 'tblTempUsageDetail_20' ) end [2025-02-04 12:50:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:50:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:50:28] Production.INFO: ==22354== Releasing lock... [2025-02-04 12:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:50:28] Production.INFO: 63 MB #Memory Used# [2025-02-04 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:51:05 [end_date_ymd] => 2025-02-04 12:51:05 [RateCDR] => 1 ) [2025-02-04 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:51:05' and `end` < '2025-02-04 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:51:19] Production.INFO: count ==4695 [2025-02-04 12:51:21] Production.ERROR: pbx CDR StartTime 2025-02-04 09:51:05 - End Time 2025-02-04 12:51:05 [2025-02-04 12:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400480', 'tblTempUsageDetail_20' ) start [2025-02-04 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400480', 'tblTempUsageDetail_20' ) end [2025-02-04 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400480', 'tblTempVendorCDR_20' ) start [2025-02-04 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400480', 'tblTempVendorCDR_20' ) end [2025-02-04 12:51:22] Production.INFO: ProcessCDR(1,14400480,1,1,2) [2025-02-04 12:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400480', 'tblTempUsageDetail_20' ) start [2025-02-04 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400480', 'tblTempUsageDetail_20' ) end [2025-02-04 12:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:51:26] Production.INFO: ==22436== Releasing lock... [2025-02-04 12:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:51:26] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:52:05 [end_date_ymd] => 2025-02-04 12:52:05 [RateCDR] => 1 ) [2025-02-04 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:52:05' and `end` < '2025-02-04 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:52:19] Production.INFO: count ==4687 [2025-02-04 12:52:21] Production.ERROR: pbx CDR StartTime 2025-02-04 09:52:05 - End Time 2025-02-04 12:52:05 [2025-02-04 12:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400485', 'tblTempUsageDetail_20' ) start [2025-02-04 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400485', 'tblTempUsageDetail_20' ) end [2025-02-04 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400485', 'tblTempVendorCDR_20' ) start [2025-02-04 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400485', 'tblTempVendorCDR_20' ) end [2025-02-04 12:52:21] Production.INFO: ProcessCDR(1,14400485,1,1,2) [2025-02-04 12:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400485', 'tblTempUsageDetail_20' ) start [2025-02-04 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400485', 'tblTempUsageDetail_20' ) end [2025-02-04 12:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:52:26] Production.INFO: ==22522== Releasing lock... [2025-02-04 12:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:52:26] Production.INFO: 63 MB #Memory Used# [2025-02-04 12:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:53:04 [end_date_ymd] => 2025-02-04 12:53:04 [RateCDR] => 1 ) [2025-02-04 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-02-04 09:53:04' and `end` < '2025-02-04 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-02-04 12:53:22] Production.INFO: count ==4708 [2025-02-04 12:53:24] Production.ERROR: pbx CDR StartTime 2025-02-04 09:53:04 - End Time 2025-02-04 12:53:04 [2025-02-04 12:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400490', 'tblTempUsageDetail_20' ) start [2025-02-04 12:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400490', 'tblTempUsageDetail_20' ) end [2025-02-04 12:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400490', 'tblTempVendorCDR_20' ) start [2025-02-04 12:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400490', 'tblTempVendorCDR_20' ) end [2025-02-04 12:53:24] Production.INFO: ProcessCDR(1,14400490,1,1,2) [2025-02-04 12:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400490', 'tblTempUsageDetail_20' ) start [2025-02-04 12:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400490', 'tblTempUsageDetail_20' ) end [2025-02-04 12:53:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:53:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:53:29] Production.INFO: ==22598== Releasing lock... [2025-02-04 12:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:53:29] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:54:05 [end_date_ymd] => 2025-02-04 12:54:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 09:54:05' and `end` < '2025-02-04 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-02-04 12:54:22] Production.INFO: count ==4717 [2025-02-04 12:54:24] Production.ERROR: pbx CDR StartTime 2025-02-04 09:54:05 - End Time 2025-02-04 12:54:05 [2025-02-04 12:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400495', 'tblTempUsageDetail_20' ) start [2025-02-04 12:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400495', 'tblTempUsageDetail_20' ) end [2025-02-04 12:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400495', 'tblTempVendorCDR_20' ) start [2025-02-04 12:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400495', 'tblTempVendorCDR_20' ) end [2025-02-04 12:54:24] Production.INFO: ProcessCDR(1,14400495,1,1,2) [2025-02-04 12:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:54:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:54:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400495', 'tblTempUsageDetail_20' ) start [2025-02-04 12:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400495', 'tblTempUsageDetail_20' ) end [2025-02-04 12:54:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:54:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:54:29] Production.INFO: ==22739== Releasing lock... [2025-02-04 12:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:54:29] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:55:05 [end_date_ymd] => 2025-02-04 12:55:05 [RateCDR] => 1 ) [2025-02-04 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:55:05' and `end` < '2025-02-04 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:55:21] Production.INFO: count ==4727 [2025-02-04 12:55:22] Production.ERROR: pbx CDR StartTime 2025-02-04 09:55:05 - End Time 2025-02-04 12:55:05 [2025-02-04 12:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400500', 'tblTempUsageDetail_20' ) start [2025-02-04 12:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400500', 'tblTempUsageDetail_20' ) end [2025-02-04 12:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400500', 'tblTempVendorCDR_20' ) start [2025-02-04 12:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400500', 'tblTempVendorCDR_20' ) end [2025-02-04 12:55:23] Production.INFO: ProcessCDR(1,14400500,1,1,2) [2025-02-04 12:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400500', 'tblTempUsageDetail_20' ) start [2025-02-04 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400500', 'tblTempUsageDetail_20' ) end [2025-02-04 12:55:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:55:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:55:27] Production.INFO: ==22817== Releasing lock... [2025-02-04 12:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:55:27] Production.INFO: 63.5 MB #Memory Used# [2025-02-04 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:56:05 [end_date_ymd] => 2025-02-04 12:56:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 09:56:05' and `end` < '2025-02-04 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-02-04 12:56:26] Production.INFO: count ==4727 [2025-02-04 12:56:27] Production.ERROR: pbx CDR StartTime 2025-02-04 09:56:05 - End Time 2025-02-04 12:56:05 [2025-02-04 12:56:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400505', 'tblTempUsageDetail_20' ) start [2025-02-04 12:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400505', 'tblTempUsageDetail_20' ) end [2025-02-04 12:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400505', 'tblTempVendorCDR_20' ) start [2025-02-04 12:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400505', 'tblTempVendorCDR_20' ) end [2025-02-04 12:56:28] Production.INFO: ProcessCDR(1,14400505,1,1,2) [2025-02-04 12:56:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:56:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:56:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:56:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400505', 'tblTempUsageDetail_20' ) start [2025-02-04 12:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400505', 'tblTempUsageDetail_20' ) end [2025-02-04 12:56:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:56:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:56:32] Production.INFO: ==22901== Releasing lock... [2025-02-04 12:56:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:56:32] Production.INFO: 63.5 MB #Memory Used# [2025-02-04 12:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:57:05 [end_date_ymd] => 2025-02-04 12:57:05 [RateCDR] => 1 ) [2025-02-04 12:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:57:05' and `end` < '2025-02-04 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:57:24] Production.INFO: count ==4726 [2025-02-04 12:57:26] Production.ERROR: pbx CDR StartTime 2025-02-04 09:57:05 - End Time 2025-02-04 12:57:05 [2025-02-04 12:57:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400510', 'tblTempUsageDetail_20' ) start [2025-02-04 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400510', 'tblTempUsageDetail_20' ) end [2025-02-04 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400510', 'tblTempVendorCDR_20' ) start [2025-02-04 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400510', 'tblTempVendorCDR_20' ) end [2025-02-04 12:57:26] Production.INFO: ProcessCDR(1,14400510,1,1,2) [2025-02-04 12:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400510', 'tblTempUsageDetail_20' ) start [2025-02-04 12:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400510', 'tblTempUsageDetail_20' ) end [2025-02-04 12:57:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:57:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:57:31] Production.INFO: ==22977== Releasing lock... [2025-02-04 12:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:57:31] Production.INFO: 63.5 MB #Memory Used# [2025-02-04 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:58:05 [end_date_ymd] => 2025-02-04 12:58:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 09:58:05' and `end` < '2025-02-04 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-02-04 12:58:22] Production.INFO: count ==4708 [2025-02-04 12:58:24] Production.ERROR: pbx CDR StartTime 2025-02-04 09:58:05 - End Time 2025-02-04 12:58:05 [2025-02-04 12:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400515', 'tblTempUsageDetail_20' ) start [2025-02-04 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400515', 'tblTempUsageDetail_20' ) end [2025-02-04 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400515', 'tblTempVendorCDR_20' ) start [2025-02-04 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400515', 'tblTempVendorCDR_20' ) end [2025-02-04 12:58:24] Production.INFO: ProcessCDR(1,14400515,1,1,2) [2025-02-04 12:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400515', 'tblTempUsageDetail_20' ) start [2025-02-04 12:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400515', 'tblTempUsageDetail_20' ) end [2025-02-04 12:58:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:58:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:58:29] Production.INFO: ==23058== Releasing lock... [2025-02-04 12:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:58:29] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 12:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 09:59:06 [end_date_ymd] => 2025-02-04 12:59:06 [RateCDR] => 1 ) [2025-02-04 12:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 09:59:06' and `end` < '2025-02-04 12:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 12:59:23] Production.INFO: count ==4706 [2025-02-04 12:59:25] Production.ERROR: pbx CDR StartTime 2025-02-04 09:59:06 - End Time 2025-02-04 12:59:06 [2025-02-04 12:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 12:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400520', 'tblTempUsageDetail_20' ) start [2025-02-04 12:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400520', 'tblTempUsageDetail_20' ) end [2025-02-04 12:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400520', 'tblTempVendorCDR_20' ) start [2025-02-04 12:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400520', 'tblTempVendorCDR_20' ) end [2025-02-04 12:59:25] Production.INFO: ProcessCDR(1,14400520,1,1,2) [2025-02-04 12:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 12:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 12:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400520', 'tblTempUsageDetail_20' ) start [2025-02-04 12:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400520', 'tblTempUsageDetail_20' ) end [2025-02-04 12:59:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 12:59:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 12:59:30] Production.INFO: ==23142== Releasing lock... [2025-02-04 12:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 12:59:30] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:00:06 [end_date_ymd] => 2025-02-04 13:00:06 [RateCDR] => 1 ) [2025-02-04 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:00:06' and `end` < '2025-02-04 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:00:22] Production.INFO: count ==4700 [2025-02-04 13:00:24] Production.ERROR: pbx CDR StartTime 2025-02-04 10:00:06 - End Time 2025-02-04 13:00:06 [2025-02-04 13:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400526', 'tblTempUsageDetail_20' ) start [2025-02-04 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400526', 'tblTempUsageDetail_20' ) end [2025-02-04 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400526', 'tblTempVendorCDR_20' ) start [2025-02-04 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400526', 'tblTempVendorCDR_20' ) end [2025-02-04 13:00:24] Production.INFO: ProcessCDR(1,14400526,1,1,2) [2025-02-04 13:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400526', 'tblTempUsageDetail_20' ) start [2025-02-04 13:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400526', 'tblTempUsageDetail_20' ) end [2025-02-04 13:00:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:00:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:00:29] Production.INFO: ==23226== Releasing lock... [2025-02-04 13:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:00:29] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 13:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:01:04 [end_date_ymd] => 2025-02-04 13:01:04 [RateCDR] => 1 ) [2025-02-04 13:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:01:04' and `end` < '2025-02-04 13:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:01:20] Production.INFO: count ==4703 [2025-02-04 13:01:22] Production.ERROR: pbx CDR StartTime 2025-02-04 10:01:04 - End Time 2025-02-04 13:01:04 [2025-02-04 13:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400531', 'tblTempUsageDetail_20' ) start [2025-02-04 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400531', 'tblTempUsageDetail_20' ) end [2025-02-04 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400531', 'tblTempVendorCDR_20' ) start [2025-02-04 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400531', 'tblTempVendorCDR_20' ) end [2025-02-04 13:01:22] Production.INFO: ProcessCDR(1,14400531,1,1,2) [2025-02-04 13:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400531', 'tblTempUsageDetail_20' ) start [2025-02-04 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400531', 'tblTempUsageDetail_20' ) end [2025-02-04 13:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:01:26] Production.INFO: ==23320== Releasing lock... [2025-02-04 13:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:01:26] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:02:05 [end_date_ymd] => 2025-02-04 13:02:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 10:02:05' and `end` < '2025-02-04 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-02-04 13:02:22] Production.INFO: count ==4693 [2025-02-04 13:02:24] Production.ERROR: pbx CDR StartTime 2025-02-04 10:02:05 - End Time 2025-02-04 13:02:05 [2025-02-04 13:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400536', 'tblTempUsageDetail_20' ) start [2025-02-04 13:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400536', 'tblTempUsageDetail_20' ) end [2025-02-04 13:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400536', 'tblTempVendorCDR_20' ) start [2025-02-04 13:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400536', 'tblTempVendorCDR_20' ) end [2025-02-04 13:02:25] Production.INFO: ProcessCDR(1,14400536,1,1,2) [2025-02-04 13:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400536', 'tblTempUsageDetail_20' ) start [2025-02-04 13:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400536', 'tblTempUsageDetail_20' ) end [2025-02-04 13:02:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:02:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:02:29] Production.INFO: ==23403== Releasing lock... [2025-02-04 13:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:02:29] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:03:06 [end_date_ymd] => 2025-02-04 13:03:06 [RateCDR] => 1 ) [2025-02-04 13:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:03:06' and `end` < '2025-02-04 13:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:03:24] Production.INFO: count ==4685 [2025-02-04 13:03:26] Production.ERROR: pbx CDR StartTime 2025-02-04 10:03:06 - End Time 2025-02-04 13:03:06 [2025-02-04 13:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400541', 'tblTempUsageDetail_20' ) start [2025-02-04 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400541', 'tblTempUsageDetail_20' ) end [2025-02-04 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400541', 'tblTempVendorCDR_20' ) start [2025-02-04 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400541', 'tblTempVendorCDR_20' ) end [2025-02-04 13:03:26] Production.INFO: ProcessCDR(1,14400541,1,1,2) [2025-02-04 13:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:03:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400541', 'tblTempUsageDetail_20' ) start [2025-02-04 13:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400541', 'tblTempUsageDetail_20' ) end [2025-02-04 13:03:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:03:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:03:32] Production.INFO: ==23486== Releasing lock... [2025-02-04 13:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:03:32] Production.INFO: 63 MB #Memory Used# [2025-02-04 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:04:05 [end_date_ymd] => 2025-02-04 13:04:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 10:04:05' and `end` < '2025-02-04 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-02-04 13:04:21] Production.INFO: count ==4663 [2025-02-04 13:04:23] Production.ERROR: pbx CDR StartTime 2025-02-04 10:04:05 - End Time 2025-02-04 13:04:05 [2025-02-04 13:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400546', 'tblTempUsageDetail_20' ) start [2025-02-04 13:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400546', 'tblTempUsageDetail_20' ) end [2025-02-04 13:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400546', 'tblTempVendorCDR_20' ) start [2025-02-04 13:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400546', 'tblTempVendorCDR_20' ) end [2025-02-04 13:04:23] Production.INFO: ProcessCDR(1,14400546,1,1,2) [2025-02-04 13:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400546', 'tblTempUsageDetail_20' ) start [2025-02-04 13:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400546', 'tblTempUsageDetail_20' ) end [2025-02-04 13:04:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:04:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:04:28] Production.INFO: ==23570== Releasing lock... [2025-02-04 13:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:04:28] Production.INFO: 63 MB #Memory Used# [2025-02-04 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:05:06 [end_date_ymd] => 2025-02-04 13:05:06 [RateCDR] => 1 ) [2025-02-04 13:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:05:06' and `end` < '2025-02-04 13:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:05:21] Production.INFO: count ==4678 [2025-02-04 13:05:23] Production.ERROR: pbx CDR StartTime 2025-02-04 10:05:06 - End Time 2025-02-04 13:05:06 [2025-02-04 13:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400551', 'tblTempUsageDetail_20' ) start [2025-02-04 13:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400551', 'tblTempUsageDetail_20' ) end [2025-02-04 13:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400551', 'tblTempVendorCDR_20' ) start [2025-02-04 13:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400551', 'tblTempVendorCDR_20' ) end [2025-02-04 13:05:23] Production.INFO: ProcessCDR(1,14400551,1,1,2) [2025-02-04 13:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400551', 'tblTempUsageDetail_20' ) start [2025-02-04 13:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400551', 'tblTempUsageDetail_20' ) end [2025-02-04 13:05:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:05:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:05:28] Production.INFO: ==23654== Releasing lock... [2025-02-04 13:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:05:28] Production.INFO: 63 MB #Memory Used# [2025-02-04 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:06:05 [end_date_ymd] => 2025-02-04 13:06:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 10:06:05' and `end` < '2025-02-04 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-02-04 13:06:19] Production.INFO: count ==4690 [2025-02-04 13:06:21] Production.ERROR: pbx CDR StartTime 2025-02-04 10:06:05 - End Time 2025-02-04 13:06:05 [2025-02-04 13:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400556', 'tblTempUsageDetail_20' ) start [2025-02-04 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400556', 'tblTempUsageDetail_20' ) end [2025-02-04 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400556', 'tblTempVendorCDR_20' ) start [2025-02-04 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400556', 'tblTempVendorCDR_20' ) end [2025-02-04 13:06:21] Production.INFO: ProcessCDR(1,14400556,1,1,2) [2025-02-04 13:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400556', 'tblTempUsageDetail_20' ) start [2025-02-04 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400556', 'tblTempUsageDetail_20' ) end [2025-02-04 13:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:06:26] Production.INFO: ==23744== Releasing lock... [2025-02-04 13:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:06:26] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:07:06 [end_date_ymd] => 2025-02-04 13:07:06 [RateCDR] => 1 ) [2025-02-04 13:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:07:06' and `end` < '2025-02-04 13:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:07:21] Production.INFO: count ==4665 [2025-02-04 13:07:23] Production.ERROR: pbx CDR StartTime 2025-02-04 10:07:06 - End Time 2025-02-04 13:07:06 [2025-02-04 13:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400561', 'tblTempUsageDetail_20' ) start [2025-02-04 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400561', 'tblTempUsageDetail_20' ) end [2025-02-04 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400561', 'tblTempVendorCDR_20' ) start [2025-02-04 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400561', 'tblTempVendorCDR_20' ) end [2025-02-04 13:07:23] Production.INFO: ProcessCDR(1,14400561,1,1,2) [2025-02-04 13:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400561', 'tblTempUsageDetail_20' ) start [2025-02-04 13:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400561', 'tblTempUsageDetail_20' ) end [2025-02-04 13:07:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:07:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:07:28] Production.INFO: ==23825== Releasing lock... [2025-02-04 13:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:07:28] Production.INFO: 63 MB #Memory Used# [2025-02-04 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:08:05 [end_date_ymd] => 2025-02-04 13:08:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 10:08:05' and `end` < '2025-02-04 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-02-04 13:08:21] Production.INFO: count ==4654 [2025-02-04 13:08:23] Production.ERROR: pbx CDR StartTime 2025-02-04 10:08:05 - End Time 2025-02-04 13:08:05 [2025-02-04 13:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400566', 'tblTempUsageDetail_20' ) start [2025-02-04 13:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400566', 'tblTempUsageDetail_20' ) end [2025-02-04 13:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400566', 'tblTempVendorCDR_20' ) start [2025-02-04 13:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400566', 'tblTempVendorCDR_20' ) end [2025-02-04 13:08:24] Production.INFO: ProcessCDR(1,14400566,1,1,2) [2025-02-04 13:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400566', 'tblTempUsageDetail_20' ) start [2025-02-04 13:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400566', 'tblTempUsageDetail_20' ) end [2025-02-04 13:08:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:08:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:08:28] Production.INFO: ==23909== Releasing lock... [2025-02-04 13:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:08:28] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:09:06 [end_date_ymd] => 2025-02-04 13:09:06 [RateCDR] => 1 ) [2025-02-04 13:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:09:06' and `end` < '2025-02-04 13:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:09:24] Production.INFO: count ==4652 [2025-02-04 13:09:25] Production.ERROR: pbx CDR StartTime 2025-02-04 10:09:06 - End Time 2025-02-04 13:09:06 [2025-02-04 13:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400571', 'tblTempUsageDetail_20' ) start [2025-02-04 13:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400571', 'tblTempUsageDetail_20' ) end [2025-02-04 13:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400571', 'tblTempVendorCDR_20' ) start [2025-02-04 13:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400571', 'tblTempVendorCDR_20' ) end [2025-02-04 13:09:26] Production.INFO: ProcessCDR(1,14400571,1,1,2) [2025-02-04 13:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400571', 'tblTempUsageDetail_20' ) start [2025-02-04 13:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400571', 'tblTempUsageDetail_20' ) end [2025-02-04 13:09:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:09:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:09:30] Production.INFO: ==23999== Releasing lock... [2025-02-04 13:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:09:30] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:10:05 [end_date_ymd] => 2025-02-04 13:10:05 [RateCDR] => 1 ) [2025-02-04 13:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:10:05' and `end` < '2025-02-04 13:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:10:24] Production.INFO: count ==4641 [2025-02-04 13:10:26] Production.ERROR: pbx CDR StartTime 2025-02-04 10:10:05 - End Time 2025-02-04 13:10:05 [2025-02-04 13:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400577', 'tblTempUsageDetail_20' ) start [2025-02-04 13:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400577', 'tblTempUsageDetail_20' ) end [2025-02-04 13:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400577', 'tblTempVendorCDR_20' ) start [2025-02-04 13:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400577', 'tblTempVendorCDR_20' ) end [2025-02-04 13:10:26] Production.INFO: ProcessCDR(1,14400577,1,1,2) [2025-02-04 13:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:10:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:10:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400577', 'tblTempUsageDetail_20' ) start [2025-02-04 13:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400577', 'tblTempUsageDetail_20' ) end [2025-02-04 13:10:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:10:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:10:31] Production.INFO: ==24126== Releasing lock... [2025-02-04 13:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:10:31] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:11:05 [end_date_ymd] => 2025-02-04 13:11:05 [RateCDR] => 1 ) [2025-02-04 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:11:05' and `end` < '2025-02-04 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:11:19] Production.INFO: count ==4651 [2025-02-04 13:11:21] Production.ERROR: pbx CDR StartTime 2025-02-04 10:11:05 - End Time 2025-02-04 13:11:05 [2025-02-04 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400582', 'tblTempUsageDetail_20' ) start [2025-02-04 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400582', 'tblTempUsageDetail_20' ) end [2025-02-04 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400582', 'tblTempVendorCDR_20' ) start [2025-02-04 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400582', 'tblTempVendorCDR_20' ) end [2025-02-04 13:11:21] Production.INFO: ProcessCDR(1,14400582,1,1,2) [2025-02-04 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400582', 'tblTempUsageDetail_20' ) start [2025-02-04 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400582', 'tblTempUsageDetail_20' ) end [2025-02-04 13:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:11:26] Production.INFO: ==24223== Releasing lock... [2025-02-04 13:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:11:26] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:12:06 [end_date_ymd] => 2025-02-04 13:12:06 [RateCDR] => 1 ) [2025-02-04 13:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:12:06' and `end` < '2025-02-04 13:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:12:23] Production.INFO: count ==4653 [2025-02-04 13:12:25] Production.ERROR: pbx CDR StartTime 2025-02-04 10:12:06 - End Time 2025-02-04 13:12:06 [2025-02-04 13:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400587', 'tblTempUsageDetail_20' ) start [2025-02-04 13:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400587', 'tblTempUsageDetail_20' ) end [2025-02-04 13:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400587', 'tblTempVendorCDR_20' ) start [2025-02-04 13:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400587', 'tblTempVendorCDR_20' ) end [2025-02-04 13:12:25] Production.INFO: ProcessCDR(1,14400587,1,1,2) [2025-02-04 13:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:12:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:12:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:12:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400587', 'tblTempUsageDetail_20' ) start [2025-02-04 13:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400587', 'tblTempUsageDetail_20' ) end [2025-02-04 13:12:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:12:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:12:30] Production.INFO: ==24305== Releasing lock... [2025-02-04 13:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:12:30] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:13:05 [end_date_ymd] => 2025-02-04 13:13:05 [RateCDR] => 1 ) [2025-02-04 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:13:05' and `end` < '2025-02-04 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:13:19] Production.INFO: count ==4674 [2025-02-04 13:13:21] Production.ERROR: pbx CDR StartTime 2025-02-04 10:13:05 - End Time 2025-02-04 13:13:05 [2025-02-04 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400592', 'tblTempUsageDetail_20' ) start [2025-02-04 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400592', 'tblTempUsageDetail_20' ) end [2025-02-04 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400592', 'tblTempVendorCDR_20' ) start [2025-02-04 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400592', 'tblTempVendorCDR_20' ) end [2025-02-04 13:13:21] Production.INFO: ProcessCDR(1,14400592,1,1,2) [2025-02-04 13:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400592', 'tblTempUsageDetail_20' ) start [2025-02-04 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400592', 'tblTempUsageDetail_20' ) end [2025-02-04 13:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:13:26] Production.INFO: ==24391== Releasing lock... [2025-02-04 13:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:13:26] Production.INFO: 63 MB #Memory Used# [2025-02-04 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:14:05 [end_date_ymd] => 2025-02-04 13:14:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 10:14:05' and `end` < '2025-02-04 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-02-04 13:14:19] Production.INFO: count ==4663 [2025-02-04 13:14:21] Production.ERROR: pbx CDR StartTime 2025-02-04 10:14:05 - End Time 2025-02-04 13:14:05 [2025-02-04 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400597', 'tblTempUsageDetail_20' ) start [2025-02-04 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400597', 'tblTempUsageDetail_20' ) end [2025-02-04 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400597', 'tblTempVendorCDR_20' ) start [2025-02-04 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400597', 'tblTempVendorCDR_20' ) end [2025-02-04 13:14:21] Production.INFO: ProcessCDR(1,14400597,1,1,2) [2025-02-04 13:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400597', 'tblTempUsageDetail_20' ) start [2025-02-04 13:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400597', 'tblTempUsageDetail_20' ) end [2025-02-04 13:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:14:25] Production.INFO: ==24476== Releasing lock... [2025-02-04 13:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:14:25] Production.INFO: 63 MB #Memory Used# [2025-02-04 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:15:05 [end_date_ymd] => 2025-02-04 13:15:05 [RateCDR] => 1 ) [2025-02-04 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:15:05' and `end` < '2025-02-04 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:15:24] Production.INFO: count ==4662 [2025-02-04 13:15:26] Production.ERROR: pbx CDR StartTime 2025-02-04 10:15:05 - End Time 2025-02-04 13:15:05 [2025-02-04 13:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400602', 'tblTempUsageDetail_20' ) start [2025-02-04 13:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400602', 'tblTempUsageDetail_20' ) end [2025-02-04 13:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400602', 'tblTempVendorCDR_20' ) start [2025-02-04 13:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400602', 'tblTempVendorCDR_20' ) end [2025-02-04 13:15:26] Production.INFO: ProcessCDR(1,14400602,1,1,2) [2025-02-04 13:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:15:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:15:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:15:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400602', 'tblTempUsageDetail_20' ) start [2025-02-04 13:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400602', 'tblTempUsageDetail_20' ) end [2025-02-04 13:15:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:15:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:15:29] Production.INFO: ==24561== Releasing lock... [2025-02-04 13:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:15:29] Production.INFO: 63 MB #Memory Used# [2025-02-04 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:16:06 [end_date_ymd] => 2025-02-04 13:16:06 [RateCDR] => 1 ) [2025-02-04 13:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:16:06' and `end` < '2025-02-04 13:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:16:20] Production.INFO: count ==4660 [2025-02-04 13:16:22] Production.ERROR: pbx CDR StartTime 2025-02-04 10:16:06 - End Time 2025-02-04 13:16:06 [2025-02-04 13:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400607', 'tblTempUsageDetail_20' ) start [2025-02-04 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400607', 'tblTempUsageDetail_20' ) end [2025-02-04 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400607', 'tblTempVendorCDR_20' ) start [2025-02-04 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400607', 'tblTempVendorCDR_20' ) end [2025-02-04 13:16:22] Production.INFO: ProcessCDR(1,14400607,1,1,2) [2025-02-04 13:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400607', 'tblTempUsageDetail_20' ) start [2025-02-04 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400607', 'tblTempUsageDetail_20' ) end [2025-02-04 13:16:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:16:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:16:27] Production.INFO: ==24650== Releasing lock... [2025-02-04 13:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:16:27] Production.INFO: 63 MB #Memory Used# [2025-02-04 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:17:06 [end_date_ymd] => 2025-02-04 13:17:06 [RateCDR] => 1 ) [2025-02-04 13:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:17:06' and `end` < '2025-02-04 13:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:17:20] Production.INFO: count ==4663 [2025-02-04 13:17:21] Production.ERROR: pbx CDR StartTime 2025-02-04 10:17:06 - End Time 2025-02-04 13:17:06 [2025-02-04 13:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400612', 'tblTempUsageDetail_20' ) start [2025-02-04 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400612', 'tblTempUsageDetail_20' ) end [2025-02-04 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400612', 'tblTempVendorCDR_20' ) start [2025-02-04 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400612', 'tblTempVendorCDR_20' ) end [2025-02-04 13:17:22] Production.INFO: ProcessCDR(1,14400612,1,1,2) [2025-02-04 13:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400612', 'tblTempUsageDetail_20' ) start [2025-02-04 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400612', 'tblTempUsageDetail_20' ) end [2025-02-04 13:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:17:26] Production.INFO: ==24732== Releasing lock... [2025-02-04 13:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:17:26] Production.INFO: 63 MB #Memory Used# [2025-02-04 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:18:05 [end_date_ymd] => 2025-02-04 13:18:05 [RateCDR] => 1 ) [2025-02-04 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:18:05' and `end` < '2025-02-04 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:18:20] Production.INFO: count ==4676 [2025-02-04 13:18:22] Production.ERROR: pbx CDR StartTime 2025-02-04 10:18:05 - End Time 2025-02-04 13:18:05 [2025-02-04 13:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400617', 'tblTempUsageDetail_20' ) start [2025-02-04 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400617', 'tblTempUsageDetail_20' ) end [2025-02-04 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400617', 'tblTempVendorCDR_20' ) start [2025-02-04 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400617', 'tblTempVendorCDR_20' ) end [2025-02-04 13:18:22] Production.INFO: ProcessCDR(1,14400617,1,1,2) [2025-02-04 13:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400617', 'tblTempUsageDetail_20' ) start [2025-02-04 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400617', 'tblTempUsageDetail_20' ) end [2025-02-04 13:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:18:27] Production.INFO: ==24818== Releasing lock... [2025-02-04 13:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:18:27] Production.INFO: 63 MB #Memory Used# [2025-02-04 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:19:05 [end_date_ymd] => 2025-02-04 13:19:05 [RateCDR] => 1 ) [2025-02-04 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:19:05' and `end` < '2025-02-04 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:19:19] Production.INFO: count ==4659 [2025-02-04 13:19:21] Production.ERROR: pbx CDR StartTime 2025-02-04 10:19:05 - End Time 2025-02-04 13:19:05 [2025-02-04 13:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400622', 'tblTempUsageDetail_20' ) start [2025-02-04 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400622', 'tblTempUsageDetail_20' ) end [2025-02-04 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400622', 'tblTempVendorCDR_20' ) start [2025-02-04 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400622', 'tblTempVendorCDR_20' ) end [2025-02-04 13:19:21] Production.INFO: ProcessCDR(1,14400622,1,1,2) [2025-02-04 13:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400622', 'tblTempUsageDetail_20' ) start [2025-02-04 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400622', 'tblTempUsageDetail_20' ) end [2025-02-04 13:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:19:26] Production.INFO: ==24928== Releasing lock... [2025-02-04 13:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:19:26] Production.INFO: 63 MB #Memory Used# [2025-02-04 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:20:06 [end_date_ymd] => 2025-02-04 13:20:06 [RateCDR] => 1 ) [2025-02-04 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-02-04 10:20:06' and `end` < '2025-02-04 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-02-04 13:20:20] Production.INFO: count ==4650 [2025-02-04 13:20:22] Production.ERROR: pbx CDR StartTime 2025-02-04 10:20:06 - End Time 2025-02-04 13:20:06 [2025-02-04 13:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400628', 'tblTempUsageDetail_20' ) start [2025-02-04 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400628', 'tblTempUsageDetail_20' ) end [2025-02-04 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400628', 'tblTempVendorCDR_20' ) start [2025-02-04 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400628', 'tblTempVendorCDR_20' ) end [2025-02-04 13:20:22] Production.INFO: ProcessCDR(1,14400628,1,1,2) [2025-02-04 13:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400628', 'tblTempUsageDetail_20' ) start [2025-02-04 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400628', 'tblTempUsageDetail_20' ) end [2025-02-04 13:20:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:20:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:20:27] Production.INFO: ==25041== Releasing lock... [2025-02-04 13:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:20:27] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:21:05 [end_date_ymd] => 2025-02-04 13:21:05 [RateCDR] => 1 ) [2025-02-04 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:21:05' and `end` < '2025-02-04 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:21:19] Production.INFO: count ==4667 [2025-02-04 13:21:21] Production.ERROR: pbx CDR StartTime 2025-02-04 10:21:05 - End Time 2025-02-04 13:21:05 [2025-02-04 13:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400633', 'tblTempUsageDetail_20' ) start [2025-02-04 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400633', 'tblTempUsageDetail_20' ) end [2025-02-04 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400633', 'tblTempVendorCDR_20' ) start [2025-02-04 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400633', 'tblTempVendorCDR_20' ) end [2025-02-04 13:21:22] Production.INFO: ProcessCDR(1,14400633,1,1,2) [2025-02-04 13:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400633', 'tblTempUsageDetail_20' ) start [2025-02-04 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400633', 'tblTempUsageDetail_20' ) end [2025-02-04 13:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:21:26] Production.INFO: ==25158== Releasing lock... [2025-02-04 13:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:21:26] Production.INFO: 63 MB #Memory Used# [2025-02-04 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:22:05 [end_date_ymd] => 2025-02-04 13:22:05 [RateCDR] => 1 ) [2025-02-04 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:22:05' and `end` < '2025-02-04 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:22:29] Production.INFO: count ==4674 [2025-02-04 13:22:31] Production.ERROR: pbx CDR StartTime 2025-02-04 10:22:05 - End Time 2025-02-04 13:22:05 [2025-02-04 13:22:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400638', 'tblTempUsageDetail_20' ) start [2025-02-04 13:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400638', 'tblTempUsageDetail_20' ) end [2025-02-04 13:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400638', 'tblTempVendorCDR_20' ) start [2025-02-04 13:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400638', 'tblTempVendorCDR_20' ) end [2025-02-04 13:22:31] Production.INFO: ProcessCDR(1,14400638,1,1,2) [2025-02-04 13:22:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:22:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:22:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:22:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:22:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400638', 'tblTempUsageDetail_20' ) start [2025-02-04 13:22:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400638', 'tblTempUsageDetail_20' ) end [2025-02-04 13:22:36] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:22:36] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:22:36] Production.INFO: ==25247== Releasing lock... [2025-02-04 13:22:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:22:36] Production.INFO: 63 MB #Memory Used# [2025-02-04 13:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:23:06 [end_date_ymd] => 2025-02-04 13:23:06 [RateCDR] => 1 ) [2025-02-04 13:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:23:06' and `end` < '2025-02-04 13:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:23:22] Production.INFO: count ==4660 [2025-02-04 13:23:24] Production.ERROR: pbx CDR StartTime 2025-02-04 10:23:06 - End Time 2025-02-04 13:23:06 [2025-02-04 13:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400643', 'tblTempUsageDetail_20' ) start [2025-02-04 13:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400643', 'tblTempUsageDetail_20' ) end [2025-02-04 13:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400643', 'tblTempVendorCDR_20' ) start [2025-02-04 13:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400643', 'tblTempVendorCDR_20' ) end [2025-02-04 13:23:24] Production.INFO: ProcessCDR(1,14400643,1,1,2) [2025-02-04 13:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:23:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:23:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400643', 'tblTempUsageDetail_20' ) start [2025-02-04 13:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400643', 'tblTempUsageDetail_20' ) end [2025-02-04 13:23:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:23:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:23:29] Production.INFO: ==25336== Releasing lock... [2025-02-04 13:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:23:29] Production.INFO: 63 MB #Memory Used# [2025-02-04 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:24:05 [end_date_ymd] => 2025-02-04 13:24:05 [RateCDR] => 1 ) [2025-02-04 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:24:05' and `end` < '2025-02-04 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:24:19] Production.INFO: count ==4646 [2025-02-04 13:24:21] Production.ERROR: pbx CDR StartTime 2025-02-04 10:24:05 - End Time 2025-02-04 13:24:05 [2025-02-04 13:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400648', 'tblTempUsageDetail_20' ) start [2025-02-04 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400648', 'tblTempUsageDetail_20' ) end [2025-02-04 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400648', 'tblTempVendorCDR_20' ) start [2025-02-04 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400648', 'tblTempVendorCDR_20' ) end [2025-02-04 13:24:21] Production.INFO: ProcessCDR(1,14400648,1,1,2) [2025-02-04 13:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400648', 'tblTempUsageDetail_20' ) start [2025-02-04 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400648', 'tblTempUsageDetail_20' ) end [2025-02-04 13:24:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:24:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:24:26] Production.INFO: ==25421== Releasing lock... [2025-02-04 13:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:24:26] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:25:05 [end_date_ymd] => 2025-02-04 13:25:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 10:25:05' and `end` < '2025-02-04 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-02-04 13:25:26] Production.INFO: count ==4652 [2025-02-04 13:25:28] Production.ERROR: pbx CDR StartTime 2025-02-04 10:25:05 - End Time 2025-02-04 13:25:05 [2025-02-04 13:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400653', 'tblTempUsageDetail_20' ) start [2025-02-04 13:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400653', 'tblTempUsageDetail_20' ) end [2025-02-04 13:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400653', 'tblTempVendorCDR_20' ) start [2025-02-04 13:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400653', 'tblTempVendorCDR_20' ) end [2025-02-04 13:25:28] Production.INFO: ProcessCDR(1,14400653,1,1,2) [2025-02-04 13:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400653', 'tblTempUsageDetail_20' ) start [2025-02-04 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400653', 'tblTempUsageDetail_20' ) end [2025-02-04 13:25:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:25:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:25:33] Production.INFO: ==25542== Releasing lock... [2025-02-04 13:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:25:33] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:26:05 [end_date_ymd] => 2025-02-04 13:26:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 10:26:05' and `end` < '2025-02-04 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-02-04 13:26:20] Production.INFO: count ==4650 [2025-02-04 13:26:22] Production.ERROR: pbx CDR StartTime 2025-02-04 10:26:05 - End Time 2025-02-04 13:26:05 [2025-02-04 13:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400658', 'tblTempUsageDetail_20' ) start [2025-02-04 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400658', 'tblTempUsageDetail_20' ) end [2025-02-04 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400658', 'tblTempVendorCDR_20' ) start [2025-02-04 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400658', 'tblTempVendorCDR_20' ) end [2025-02-04 13:26:22] Production.INFO: ProcessCDR(1,14400658,1,1,2) [2025-02-04 13:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400658', 'tblTempUsageDetail_20' ) start [2025-02-04 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400658', 'tblTempUsageDetail_20' ) end [2025-02-04 13:26:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:26:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:26:27] Production.INFO: ==25627== Releasing lock... [2025-02-04 13:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:26:27] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:27:05 [end_date_ymd] => 2025-02-04 13:27:05 [RateCDR] => 1 ) [2025-02-04 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:27:05' and `end` < '2025-02-04 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:27:19] Production.INFO: count ==4622 [2025-02-04 13:27:21] Production.ERROR: pbx CDR StartTime 2025-02-04 10:27:05 - End Time 2025-02-04 13:27:05 [2025-02-04 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400663', 'tblTempUsageDetail_20' ) start [2025-02-04 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400663', 'tblTempUsageDetail_20' ) end [2025-02-04 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400663', 'tblTempVendorCDR_20' ) start [2025-02-04 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400663', 'tblTempVendorCDR_20' ) end [2025-02-04 13:27:21] Production.INFO: ProcessCDR(1,14400663,1,1,2) [2025-02-04 13:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400663', 'tblTempUsageDetail_20' ) start [2025-02-04 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400663', 'tblTempUsageDetail_20' ) end [2025-02-04 13:27:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:27:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:27:26] Production.INFO: ==25712== Releasing lock... [2025-02-04 13:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:27:26] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:28:05 [end_date_ymd] => 2025-02-04 13:28:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 10:28:05' and `end` < '2025-02-04 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-02-04 13:28:27] Production.INFO: count ==4622 [2025-02-04 13:28:29] Production.ERROR: pbx CDR StartTime 2025-02-04 10:28:05 - End Time 2025-02-04 13:28:05 [2025-02-04 13:28:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400668', 'tblTempUsageDetail_20' ) start [2025-02-04 13:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400668', 'tblTempUsageDetail_20' ) end [2025-02-04 13:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400668', 'tblTempVendorCDR_20' ) start [2025-02-04 13:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400668', 'tblTempVendorCDR_20' ) end [2025-02-04 13:28:29] Production.INFO: ProcessCDR(1,14400668,1,1,2) [2025-02-04 13:28:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:28:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:28:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:28:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400668', 'tblTempUsageDetail_20' ) start [2025-02-04 13:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400668', 'tblTempUsageDetail_20' ) end [2025-02-04 13:28:33] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:28:33] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:28:33] Production.INFO: ==25797== Releasing lock... [2025-02-04 13:28:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:28:33] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:29:05 [end_date_ymd] => 2025-02-04 13:29:05 [RateCDR] => 1 ) [2025-02-04 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:29:05' and `end` < '2025-02-04 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:29:22] Production.INFO: count ==4612 [2025-02-04 13:29:24] Production.ERROR: pbx CDR StartTime 2025-02-04 10:29:05 - End Time 2025-02-04 13:29:05 [2025-02-04 13:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400673', 'tblTempUsageDetail_20' ) start [2025-02-04 13:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400673', 'tblTempUsageDetail_20' ) end [2025-02-04 13:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400673', 'tblTempVendorCDR_20' ) start [2025-02-04 13:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400673', 'tblTempVendorCDR_20' ) end [2025-02-04 13:29:24] Production.INFO: ProcessCDR(1,14400673,1,1,2) [2025-02-04 13:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400673', 'tblTempUsageDetail_20' ) start [2025-02-04 13:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400673', 'tblTempUsageDetail_20' ) end [2025-02-04 13:29:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:29:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:29:29] Production.INFO: ==25883== Releasing lock... [2025-02-04 13:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:29:29] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:30:06 [end_date_ymd] => 2025-02-04 13:30:06 [RateCDR] => 1 ) [2025-02-04 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:30:06' and `end` < '2025-02-04 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:30:20] Production.INFO: count ==4616 [2025-02-04 13:30:22] Production.ERROR: pbx CDR StartTime 2025-02-04 10:30:06 - End Time 2025-02-04 13:30:06 [2025-02-04 13:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400679', 'tblTempUsageDetail_20' ) start [2025-02-04 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400679', 'tblTempUsageDetail_20' ) end [2025-02-04 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400679', 'tblTempVendorCDR_20' ) start [2025-02-04 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400679', 'tblTempVendorCDR_20' ) end [2025-02-04 13:30:23] Production.INFO: ProcessCDR(1,14400679,1,1,2) [2025-02-04 13:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400679', 'tblTempUsageDetail_20' ) start [2025-02-04 13:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400679', 'tblTempUsageDetail_20' ) end [2025-02-04 13:30:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:30:26] Production.INFO: ==25977== Releasing lock... [2025-02-04 13:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:30:26] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:31:05 [end_date_ymd] => 2025-02-04 13:31:05 [RateCDR] => 1 ) [2025-02-04 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:31:05' and `end` < '2025-02-04 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:31:19] Production.INFO: count ==4608 [2025-02-04 13:31:21] Production.ERROR: pbx CDR StartTime 2025-02-04 10:31:05 - End Time 2025-02-04 13:31:05 [2025-02-04 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400684', 'tblTempUsageDetail_20' ) start [2025-02-04 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400684', 'tblTempUsageDetail_20' ) end [2025-02-04 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400684', 'tblTempVendorCDR_20' ) start [2025-02-04 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400684', 'tblTempVendorCDR_20' ) end [2025-02-04 13:31:21] Production.INFO: ProcessCDR(1,14400684,1,1,2) [2025-02-04 13:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400684', 'tblTempUsageDetail_20' ) start [2025-02-04 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400684', 'tblTempUsageDetail_20' ) end [2025-02-04 13:31:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:31:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:31:26] Production.INFO: ==26061== Releasing lock... [2025-02-04 13:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:31:26] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:32:06 [end_date_ymd] => 2025-02-04 13:32:06 [RateCDR] => 1 ) [2025-02-04 13:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:32:06' and `end` < '2025-02-04 13:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:32:20] Production.INFO: count ==4604 [2025-02-04 13:32:21] Production.ERROR: pbx CDR StartTime 2025-02-04 10:32:06 - End Time 2025-02-04 13:32:06 [2025-02-04 13:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400689', 'tblTempUsageDetail_20' ) start [2025-02-04 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400689', 'tblTempUsageDetail_20' ) end [2025-02-04 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400689', 'tblTempVendorCDR_20' ) start [2025-02-04 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400689', 'tblTempVendorCDR_20' ) end [2025-02-04 13:32:22] Production.INFO: ProcessCDR(1,14400689,1,1,2) [2025-02-04 13:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400689', 'tblTempUsageDetail_20' ) start [2025-02-04 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400689', 'tblTempUsageDetail_20' ) end [2025-02-04 13:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:32:26] Production.INFO: ==26150== Releasing lock... [2025-02-04 13:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:32:26] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:33:05 [end_date_ymd] => 2025-02-04 13:33:05 [RateCDR] => 1 ) [2025-02-04 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:33:05' and `end` < '2025-02-04 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:33:20] Production.INFO: count ==4588 [2025-02-04 13:33:22] Production.ERROR: pbx CDR StartTime 2025-02-04 10:33:05 - End Time 2025-02-04 13:33:05 [2025-02-04 13:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400694', 'tblTempUsageDetail_20' ) start [2025-02-04 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400694', 'tblTempUsageDetail_20' ) end [2025-02-04 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400694', 'tblTempVendorCDR_20' ) start [2025-02-04 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400694', 'tblTempVendorCDR_20' ) end [2025-02-04 13:33:22] Production.INFO: ProcessCDR(1,14400694,1,1,2) [2025-02-04 13:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400694', 'tblTempUsageDetail_20' ) start [2025-02-04 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400694', 'tblTempUsageDetail_20' ) end [2025-02-04 13:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:33:25] Production.INFO: ==26236== Releasing lock... [2025-02-04 13:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:33:25] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:34:05 [end_date_ymd] => 2025-02-04 13:34:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 10:34:05' and `end` < '2025-02-04 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-02-04 13:34:22] Production.INFO: count ==4590 [2025-02-04 13:34:24] Production.ERROR: pbx CDR StartTime 2025-02-04 10:34:05 - End Time 2025-02-04 13:34:05 [2025-02-04 13:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400699', 'tblTempUsageDetail_20' ) start [2025-02-04 13:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400699', 'tblTempUsageDetail_20' ) end [2025-02-04 13:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400699', 'tblTempVendorCDR_20' ) start [2025-02-04 13:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400699', 'tblTempVendorCDR_20' ) end [2025-02-04 13:34:25] Production.INFO: ProcessCDR(1,14400699,1,1,2) [2025-02-04 13:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400699', 'tblTempUsageDetail_20' ) start [2025-02-04 13:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400699', 'tblTempUsageDetail_20' ) end [2025-02-04 13:34:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:34:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:34:29] Production.INFO: ==26326== Releasing lock... [2025-02-04 13:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:34:29] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:35:05 [end_date_ymd] => 2025-02-04 13:35:05 [RateCDR] => 1 ) [2025-02-04 13:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:35:05' and `end` < '2025-02-04 13:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:35:25] Production.INFO: count ==4591 [2025-02-04 13:35:27] Production.ERROR: pbx CDR StartTime 2025-02-04 10:35:05 - End Time 2025-02-04 13:35:05 [2025-02-04 13:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400704', 'tblTempUsageDetail_20' ) start [2025-02-04 13:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400704', 'tblTempUsageDetail_20' ) end [2025-02-04 13:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400704', 'tblTempVendorCDR_20' ) start [2025-02-04 13:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400704', 'tblTempVendorCDR_20' ) end [2025-02-04 13:35:27] Production.INFO: ProcessCDR(1,14400704,1,1,2) [2025-02-04 13:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400704', 'tblTempUsageDetail_20' ) start [2025-02-04 13:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400704', 'tblTempUsageDetail_20' ) end [2025-02-04 13:35:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:35:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:35:32] Production.INFO: ==26407== Releasing lock... [2025-02-04 13:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:35:32] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:36:06 [end_date_ymd] => 2025-02-04 13:36:06 [RateCDR] => 1 ) [2025-02-04 13:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:36:06' and `end` < '2025-02-04 13:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:36:24] Production.INFO: count ==4595 [2025-02-04 13:36:26] Production.ERROR: pbx CDR StartTime 2025-02-04 10:36:06 - End Time 2025-02-04 13:36:06 [2025-02-04 13:36:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400709', 'tblTempUsageDetail_20' ) start [2025-02-04 13:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400709', 'tblTempUsageDetail_20' ) end [2025-02-04 13:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400709', 'tblTempVendorCDR_20' ) start [2025-02-04 13:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400709', 'tblTempVendorCDR_20' ) end [2025-02-04 13:36:26] Production.INFO: ProcessCDR(1,14400709,1,1,2) [2025-02-04 13:36:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:36:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400709', 'tblTempUsageDetail_20' ) start [2025-02-04 13:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400709', 'tblTempUsageDetail_20' ) end [2025-02-04 13:36:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:36:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:36:30] Production.INFO: ==26495== Releasing lock... [2025-02-04 13:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:36:30] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:37:05 [end_date_ymd] => 2025-02-04 13:37:05 [RateCDR] => 1 ) [2025-02-04 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:37:05' and `end` < '2025-02-04 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:37:21] Production.INFO: count ==4588 [2025-02-04 13:37:23] Production.ERROR: pbx CDR StartTime 2025-02-04 10:37:05 - End Time 2025-02-04 13:37:05 [2025-02-04 13:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400714', 'tblTempUsageDetail_20' ) start [2025-02-04 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400714', 'tblTempUsageDetail_20' ) end [2025-02-04 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400714', 'tblTempVendorCDR_20' ) start [2025-02-04 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400714', 'tblTempVendorCDR_20' ) end [2025-02-04 13:37:23] Production.INFO: ProcessCDR(1,14400714,1,1,2) [2025-02-04 13:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400714', 'tblTempUsageDetail_20' ) start [2025-02-04 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400714', 'tblTempUsageDetail_20' ) end [2025-02-04 13:37:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:37:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:37:27] Production.INFO: ==26578== Releasing lock... [2025-02-04 13:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:37:27] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:38:05 [end_date_ymd] => 2025-02-04 13:38:05 [RateCDR] => 1 ) [2025-02-04 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:38:05' and `end` < '2025-02-04 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:38:18] Production.INFO: count ==4592 [2025-02-04 13:38:20] Production.ERROR: pbx CDR StartTime 2025-02-04 10:38:05 - End Time 2025-02-04 13:38:05 [2025-02-04 13:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400719', 'tblTempUsageDetail_20' ) start [2025-02-04 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400719', 'tblTempUsageDetail_20' ) end [2025-02-04 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400719', 'tblTempVendorCDR_20' ) start [2025-02-04 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400719', 'tblTempVendorCDR_20' ) end [2025-02-04 13:38:21] Production.INFO: ProcessCDR(1,14400719,1,1,2) [2025-02-04 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400719', 'tblTempUsageDetail_20' ) start [2025-02-04 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400719', 'tblTempUsageDetail_20' ) end [2025-02-04 13:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:38:25] Production.INFO: ==26664== Releasing lock... [2025-02-04 13:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:38:25] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:39:05 [end_date_ymd] => 2025-02-04 13:39:05 [RateCDR] => 1 ) [2025-02-04 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:39:05' and `end` < '2025-02-04 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:39:19] Production.INFO: count ==4594 [2025-02-04 13:39:21] Production.ERROR: pbx CDR StartTime 2025-02-04 10:39:05 - End Time 2025-02-04 13:39:05 [2025-02-04 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400724', 'tblTempUsageDetail_20' ) start [2025-02-04 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400724', 'tblTempUsageDetail_20' ) end [2025-02-04 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400724', 'tblTempVendorCDR_20' ) start [2025-02-04 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400724', 'tblTempVendorCDR_20' ) end [2025-02-04 13:39:21] Production.INFO: ProcessCDR(1,14400724,1,1,2) [2025-02-04 13:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400724', 'tblTempUsageDetail_20' ) start [2025-02-04 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400724', 'tblTempUsageDetail_20' ) end [2025-02-04 13:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:39:26] Production.INFO: ==26750== Releasing lock... [2025-02-04 13:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:39:26] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:40:06 [end_date_ymd] => 2025-02-04 13:40:06 [RateCDR] => 1 ) [2025-02-04 13:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:40:06' and `end` < '2025-02-04 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-02-04 13:40:20] Production.INFO: count ==4572 [2025-02-04 13:40:21] Production.ERROR: pbx CDR StartTime 2025-02-04 10:40:06 - End Time 2025-02-04 13:40:06 [2025-02-04 13:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400730', 'tblTempUsageDetail_20' ) start [2025-02-04 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400730', 'tblTempUsageDetail_20' ) end [2025-02-04 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400730', 'tblTempVendorCDR_20' ) start [2025-02-04 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400730', 'tblTempVendorCDR_20' ) end [2025-02-04 13:40:22] Production.INFO: ProcessCDR(1,14400730,1,1,2) [2025-02-04 13:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400730', 'tblTempUsageDetail_20' ) start [2025-02-04 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400730', 'tblTempUsageDetail_20' ) end [2025-02-04 13:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:40:26] Production.INFO: ==26832== Releasing lock... [2025-02-04 13:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:40:26] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 13:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:41:06 [end_date_ymd] => 2025-02-04 13:41:06 [RateCDR] => 1 ) [2025-02-04 13:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:41:06' and `end` < '2025-02-04 13:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:41:23] Production.INFO: count ==4575 [2025-02-04 13:41:25] Production.ERROR: pbx CDR StartTime 2025-02-04 10:41:06 - End Time 2025-02-04 13:41:06 [2025-02-04 13:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400735', 'tblTempUsageDetail_20' ) start [2025-02-04 13:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400735', 'tblTempUsageDetail_20' ) end [2025-02-04 13:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400735', 'tblTempVendorCDR_20' ) start [2025-02-04 13:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400735', 'tblTempVendorCDR_20' ) end [2025-02-04 13:41:25] Production.INFO: ProcessCDR(1,14400735,1,1,2) [2025-02-04 13:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400735', 'tblTempUsageDetail_20' ) start [2025-02-04 13:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400735', 'tblTempUsageDetail_20' ) end [2025-02-04 13:41:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:41:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:41:30] Production.INFO: ==26958== Releasing lock... [2025-02-04 13:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:41:30] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:42:05 [end_date_ymd] => 2025-02-04 13:42:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 10:42:05' and `end` < '2025-02-04 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-02-04 13:42:23] Production.INFO: count ==4568 [2025-02-04 13:42:25] Production.ERROR: pbx CDR StartTime 2025-02-04 10:42:05 - End Time 2025-02-04 13:42:05 [2025-02-04 13:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400740', 'tblTempUsageDetail_20' ) start [2025-02-04 13:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400740', 'tblTempUsageDetail_20' ) end [2025-02-04 13:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400740', 'tblTempVendorCDR_20' ) start [2025-02-04 13:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400740', 'tblTempVendorCDR_20' ) end [2025-02-04 13:42:25] Production.INFO: ProcessCDR(1,14400740,1,1,2) [2025-02-04 13:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400740', 'tblTempUsageDetail_20' ) start [2025-02-04 13:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400740', 'tblTempUsageDetail_20' ) end [2025-02-04 13:42:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:42:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:42:30] Production.INFO: ==27042== Releasing lock... [2025-02-04 13:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:42:30] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:43:05 [end_date_ymd] => 2025-02-04 13:43:05 [RateCDR] => 1 ) [2025-02-04 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:43:05' and `end` < '2025-02-04 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:43:22] Production.INFO: count ==4572 [2025-02-04 13:43:24] Production.ERROR: pbx CDR StartTime 2025-02-04 10:43:05 - End Time 2025-02-04 13:43:05 [2025-02-04 13:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400745', 'tblTempUsageDetail_20' ) start [2025-02-04 13:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400745', 'tblTempUsageDetail_20' ) end [2025-02-04 13:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400745', 'tblTempVendorCDR_20' ) start [2025-02-04 13:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400745', 'tblTempVendorCDR_20' ) end [2025-02-04 13:43:24] Production.INFO: ProcessCDR(1,14400745,1,1,2) [2025-02-04 13:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400745', 'tblTempUsageDetail_20' ) start [2025-02-04 13:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400745', 'tblTempUsageDetail_20' ) end [2025-02-04 13:43:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:43:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:43:28] Production.INFO: ==27128== Releasing lock... [2025-02-04 13:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:43:28] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:44:06 [end_date_ymd] => 2025-02-04 13:44:06 [RateCDR] => 1 ) [2025-02-04 13:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:44:06' and `end` < '2025-02-04 13:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:44:19] Production.INFO: count ==4561 [2025-02-04 13:44:21] Production.ERROR: pbx CDR StartTime 2025-02-04 10:44:06 - End Time 2025-02-04 13:44:06 [2025-02-04 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400750', 'tblTempUsageDetail_20' ) start [2025-02-04 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400750', 'tblTempUsageDetail_20' ) end [2025-02-04 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400750', 'tblTempVendorCDR_20' ) start [2025-02-04 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400750', 'tblTempVendorCDR_20' ) end [2025-02-04 13:44:21] Production.INFO: ProcessCDR(1,14400750,1,1,2) [2025-02-04 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400750', 'tblTempUsageDetail_20' ) start [2025-02-04 13:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400750', 'tblTempUsageDetail_20' ) end [2025-02-04 13:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:44:25] Production.INFO: ==27213== Releasing lock... [2025-02-04 13:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:44:25] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:45:05 [end_date_ymd] => 2025-02-04 13:45:05 [RateCDR] => 1 ) [2025-02-04 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:45:05' and `end` < '2025-02-04 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:45:20] Production.INFO: count ==4568 [2025-02-04 13:45:22] Production.ERROR: pbx CDR StartTime 2025-02-04 10:45:05 - End Time 2025-02-04 13:45:05 [2025-02-04 13:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400755', 'tblTempUsageDetail_20' ) start [2025-02-04 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400755', 'tblTempUsageDetail_20' ) end [2025-02-04 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400755', 'tblTempVendorCDR_20' ) start [2025-02-04 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400755', 'tblTempVendorCDR_20' ) end [2025-02-04 13:45:22] Production.INFO: ProcessCDR(1,14400755,1,1,2) [2025-02-04 13:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400755', 'tblTempUsageDetail_20' ) start [2025-02-04 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400755', 'tblTempUsageDetail_20' ) end [2025-02-04 13:45:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:45:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:45:27] Production.INFO: ==27291== Releasing lock... [2025-02-04 13:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:45:27] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:46:06 [end_date_ymd] => 2025-02-04 13:46:06 [RateCDR] => 1 ) [2025-02-04 13:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:46:06' and `end` < '2025-02-04 13:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:46:24] Production.INFO: count ==4571 [2025-02-04 13:46:26] Production.ERROR: pbx CDR StartTime 2025-02-04 10:46:06 - End Time 2025-02-04 13:46:06 [2025-02-04 13:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400760', 'tblTempUsageDetail_20' ) start [2025-02-04 13:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400760', 'tblTempUsageDetail_20' ) end [2025-02-04 13:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400760', 'tblTempVendorCDR_20' ) start [2025-02-04 13:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400760', 'tblTempVendorCDR_20' ) end [2025-02-04 13:46:26] Production.INFO: ProcessCDR(1,14400760,1,1,2) [2025-02-04 13:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:46:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:46:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400760', 'tblTempUsageDetail_20' ) start [2025-02-04 13:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400760', 'tblTempUsageDetail_20' ) end [2025-02-04 13:46:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:46:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:46:31] Production.INFO: ==27384== Releasing lock... [2025-02-04 13:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:46:31] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:47:05 [end_date_ymd] => 2025-02-04 13:47:05 [RateCDR] => 1 ) [2025-02-04 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:47:05' and `end` < '2025-02-04 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:47:23] Production.INFO: count ==4590 [2025-02-04 13:47:25] Production.ERROR: pbx CDR StartTime 2025-02-04 10:47:05 - End Time 2025-02-04 13:47:05 [2025-02-04 13:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400765', 'tblTempUsageDetail_20' ) start [2025-02-04 13:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400765', 'tblTempUsageDetail_20' ) end [2025-02-04 13:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400765', 'tblTempVendorCDR_20' ) start [2025-02-04 13:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400765', 'tblTempVendorCDR_20' ) end [2025-02-04 13:47:25] Production.INFO: ProcessCDR(1,14400765,1,1,2) [2025-02-04 13:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400765', 'tblTempUsageDetail_20' ) start [2025-02-04 13:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400765', 'tblTempUsageDetail_20' ) end [2025-02-04 13:47:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:47:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:47:30] Production.INFO: ==27463== Releasing lock... [2025-02-04 13:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:47:30] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 13:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:48:06 [end_date_ymd] => 2025-02-04 13:48:06 [RateCDR] => 1 ) [2025-02-04 13:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:48:06' and `end` < '2025-02-04 13:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:48:22] Production.INFO: count ==4616 [2025-02-04 13:48:24] Production.ERROR: pbx CDR StartTime 2025-02-04 10:48:06 - End Time 2025-02-04 13:48:06 [2025-02-04 13:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400770', 'tblTempUsageDetail_20' ) start [2025-02-04 13:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400770', 'tblTempUsageDetail_20' ) end [2025-02-04 13:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400770', 'tblTempVendorCDR_20' ) start [2025-02-04 13:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400770', 'tblTempVendorCDR_20' ) end [2025-02-04 13:48:24] Production.INFO: ProcessCDR(1,14400770,1,1,2) [2025-02-04 13:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400770', 'tblTempUsageDetail_20' ) start [2025-02-04 13:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400770', 'tblTempUsageDetail_20' ) end [2025-02-04 13:48:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:48:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:48:29] Production.INFO: ==27543== Releasing lock... [2025-02-04 13:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:48:29] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 13:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:49:04 [end_date_ymd] => 2025-02-04 13:49:04 [RateCDR] => 1 ) [2025-02-04 13:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:49:04' and `end` < '2025-02-04 13:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:49:18] Production.INFO: count ==4612 [2025-02-04 13:49:20] Production.ERROR: pbx CDR StartTime 2025-02-04 10:49:04 - End Time 2025-02-04 13:49:04 [2025-02-04 13:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400775', 'tblTempUsageDetail_20' ) start [2025-02-04 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400775', 'tblTempUsageDetail_20' ) end [2025-02-04 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400775', 'tblTempVendorCDR_20' ) start [2025-02-04 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400775', 'tblTempVendorCDR_20' ) end [2025-02-04 13:49:21] Production.INFO: ProcessCDR(1,14400775,1,1,2) [2025-02-04 13:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400775', 'tblTempUsageDetail_20' ) start [2025-02-04 13:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400775', 'tblTempUsageDetail_20' ) end [2025-02-04 13:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:49:25] Production.INFO: ==27634== Releasing lock... [2025-02-04 13:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:49:25] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:50:06 [end_date_ymd] => 2025-02-04 13:50:06 [RateCDR] => 1 ) [2025-02-04 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:50:06' and `end` < '2025-02-04 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:50:30] Production.INFO: count ==4616 [2025-02-04 13:50:32] Production.ERROR: pbx CDR StartTime 2025-02-04 10:50:06 - End Time 2025-02-04 13:50:06 [2025-02-04 13:50:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400781', 'tblTempUsageDetail_20' ) start [2025-02-04 13:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400781', 'tblTempUsageDetail_20' ) end [2025-02-04 13:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400781', 'tblTempVendorCDR_20' ) start [2025-02-04 13:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400781', 'tblTempVendorCDR_20' ) end [2025-02-04 13:50:32] Production.INFO: ProcessCDR(1,14400781,1,1,2) [2025-02-04 13:50:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:50:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:50:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:50:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400781', 'tblTempUsageDetail_20' ) start [2025-02-04 13:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400781', 'tblTempUsageDetail_20' ) end [2025-02-04 13:50:37] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:50:37] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:50:37] Production.INFO: ==27734== Releasing lock... [2025-02-04 13:50:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:50:37] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:51:05 [end_date_ymd] => 2025-02-04 13:51:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 10:51:05' and `end` < '2025-02-04 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-02-04 13:51:21] Production.INFO: count ==4608 [2025-02-04 13:51:23] Production.ERROR: pbx CDR StartTime 2025-02-04 10:51:05 - End Time 2025-02-04 13:51:05 [2025-02-04 13:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400786', 'tblTempUsageDetail_20' ) start [2025-02-04 13:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400786', 'tblTempUsageDetail_20' ) end [2025-02-04 13:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400786', 'tblTempVendorCDR_20' ) start [2025-02-04 13:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400786', 'tblTempVendorCDR_20' ) end [2025-02-04 13:51:23] Production.INFO: ProcessCDR(1,14400786,1,1,2) [2025-02-04 13:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400786', 'tblTempUsageDetail_20' ) start [2025-02-04 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400786', 'tblTempUsageDetail_20' ) end [2025-02-04 13:51:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:51:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:51:27] Production.INFO: ==27818== Releasing lock... [2025-02-04 13:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:51:27] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:52:05 [end_date_ymd] => 2025-02-04 13:52:05 [RateCDR] => 1 ) [2025-02-04 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:52:05' and `end` < '2025-02-04 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:52:19] Production.INFO: count ==4592 [2025-02-04 13:52:21] Production.ERROR: pbx CDR StartTime 2025-02-04 10:52:05 - End Time 2025-02-04 13:52:05 [2025-02-04 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400791', 'tblTempUsageDetail_20' ) start [2025-02-04 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400791', 'tblTempUsageDetail_20' ) end [2025-02-04 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400791', 'tblTempVendorCDR_20' ) start [2025-02-04 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400791', 'tblTempVendorCDR_20' ) end [2025-02-04 13:52:21] Production.INFO: ProcessCDR(1,14400791,1,1,2) [2025-02-04 13:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400791', 'tblTempUsageDetail_20' ) start [2025-02-04 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400791', 'tblTempUsageDetail_20' ) end [2025-02-04 13:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:52:26] Production.INFO: ==27901== Releasing lock... [2025-02-04 13:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:52:26] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:53:05 [end_date_ymd] => 2025-02-04 13:53:05 [RateCDR] => 1 ) [2025-02-04 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:53:05' and `end` < '2025-02-04 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:53:18] Production.INFO: count ==4587 [2025-02-04 13:53:20] Production.ERROR: pbx CDR StartTime 2025-02-04 10:53:05 - End Time 2025-02-04 13:53:05 [2025-02-04 13:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400796', 'tblTempUsageDetail_20' ) start [2025-02-04 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400796', 'tblTempUsageDetail_20' ) end [2025-02-04 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400796', 'tblTempVendorCDR_20' ) start [2025-02-04 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400796', 'tblTempVendorCDR_20' ) end [2025-02-04 13:53:20] Production.INFO: ProcessCDR(1,14400796,1,1,2) [2025-02-04 13:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400796', 'tblTempUsageDetail_20' ) start [2025-02-04 13:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400796', 'tblTempUsageDetail_20' ) end [2025-02-04 13:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:53:25] Production.INFO: ==27988== Releasing lock... [2025-02-04 13:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:53:25] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 13:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:54:06 [end_date_ymd] => 2025-02-04 13:54:06 [RateCDR] => 1 ) [2025-02-04 13:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:54:06' and `end` < '2025-02-04 13:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:54:19] Production.INFO: count ==4569 [2025-02-04 13:54:21] Production.ERROR: pbx CDR StartTime 2025-02-04 10:54:06 - End Time 2025-02-04 13:54:06 [2025-02-04 13:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400801', 'tblTempUsageDetail_20' ) start [2025-02-04 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400801', 'tblTempUsageDetail_20' ) end [2025-02-04 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400801', 'tblTempVendorCDR_20' ) start [2025-02-04 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400801', 'tblTempVendorCDR_20' ) end [2025-02-04 13:54:21] Production.INFO: ProcessCDR(1,14400801,1,1,2) [2025-02-04 13:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400801', 'tblTempUsageDetail_20' ) start [2025-02-04 13:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400801', 'tblTempUsageDetail_20' ) end [2025-02-04 13:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:54:25] Production.INFO: ==28074== Releasing lock... [2025-02-04 13:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:54:25] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 13:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:55:06 [end_date_ymd] => 2025-02-04 13:55:06 [RateCDR] => 1 ) [2025-02-04 13:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:55:06' and `end` < '2025-02-04 13:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:55:22] Production.INFO: count ==4566 [2025-02-04 13:55:23] Production.ERROR: pbx CDR StartTime 2025-02-04 10:55:06 - End Time 2025-02-04 13:55:06 [2025-02-04 13:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400806', 'tblTempUsageDetail_20' ) start [2025-02-04 13:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400806', 'tblTempUsageDetail_20' ) end [2025-02-04 13:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400806', 'tblTempVendorCDR_20' ) start [2025-02-04 13:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400806', 'tblTempVendorCDR_20' ) end [2025-02-04 13:55:24] Production.INFO: ProcessCDR(1,14400806,1,1,2) [2025-02-04 13:55:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400806', 'tblTempUsageDetail_20' ) start [2025-02-04 13:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400806', 'tblTempUsageDetail_20' ) end [2025-02-04 13:55:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:55:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:55:28] Production.INFO: ==28162== Releasing lock... [2025-02-04 13:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:55:28] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:56:05 [end_date_ymd] => 2025-02-04 13:56:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 10:56:05' and `end` < '2025-02-04 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-02-04 13:56:23] Production.INFO: count ==4571 [2025-02-04 13:56:25] Production.ERROR: pbx CDR StartTime 2025-02-04 10:56:05 - End Time 2025-02-04 13:56:05 [2025-02-04 13:56:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400811', 'tblTempUsageDetail_20' ) start [2025-02-04 13:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400811', 'tblTempUsageDetail_20' ) end [2025-02-04 13:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400811', 'tblTempVendorCDR_20' ) start [2025-02-04 13:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400811', 'tblTempVendorCDR_20' ) end [2025-02-04 13:56:25] Production.INFO: ProcessCDR(1,14400811,1,1,2) [2025-02-04 13:56:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400811', 'tblTempUsageDetail_20' ) start [2025-02-04 13:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400811', 'tblTempUsageDetail_20' ) end [2025-02-04 13:56:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:56:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:56:30] Production.INFO: ==28288== Releasing lock... [2025-02-04 13:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:56:30] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:57:05 [end_date_ymd] => 2025-02-04 13:57:05 [RateCDR] => 1 ) [2025-02-04 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:57:05' and `end` < '2025-02-04 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:57:18] Production.INFO: count ==4565 [2025-02-04 13:57:20] Production.ERROR: pbx CDR StartTime 2025-02-04 10:57:05 - End Time 2025-02-04 13:57:05 [2025-02-04 13:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400816', 'tblTempUsageDetail_20' ) start [2025-02-04 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400816', 'tblTempUsageDetail_20' ) end [2025-02-04 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400816', 'tblTempVendorCDR_20' ) start [2025-02-04 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400816', 'tblTempVendorCDR_20' ) end [2025-02-04 13:57:20] Production.INFO: ProcessCDR(1,14400816,1,1,2) [2025-02-04 13:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400816', 'tblTempUsageDetail_20' ) start [2025-02-04 13:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400816', 'tblTempUsageDetail_20' ) end [2025-02-04 13:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:57:25] Production.INFO: ==28370== Releasing lock... [2025-02-04 13:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:57:25] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:58:05 [end_date_ymd] => 2025-02-04 13:58:05 [RateCDR] => 1 ) [2025-02-04 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:58:05' and `end` < '2025-02-04 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:58:19] Production.INFO: count ==4552 [2025-02-04 13:58:20] Production.ERROR: pbx CDR StartTime 2025-02-04 10:58:05 - End Time 2025-02-04 13:58:05 [2025-02-04 13:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400821', 'tblTempUsageDetail_20' ) start [2025-02-04 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400821', 'tblTempUsageDetail_20' ) end [2025-02-04 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400821', 'tblTempVendorCDR_20' ) start [2025-02-04 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400821', 'tblTempVendorCDR_20' ) end [2025-02-04 13:58:20] Production.INFO: ProcessCDR(1,14400821,1,1,2) [2025-02-04 13:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400821', 'tblTempUsageDetail_20' ) start [2025-02-04 13:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400821', 'tblTempUsageDetail_20' ) end [2025-02-04 13:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:58:25] Production.INFO: ==28454== Releasing lock... [2025-02-04 13:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:58:25] Production.INFO: 62 MB #Memory Used# [2025-02-04 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 10:59:05 [end_date_ymd] => 2025-02-04 13:59:05 [RateCDR] => 1 ) [2025-02-04 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 10:59:05' and `end` < '2025-02-04 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 13:59:24] Production.INFO: count ==4550 [2025-02-04 13:59:26] Production.ERROR: pbx CDR StartTime 2025-02-04 10:59:05 - End Time 2025-02-04 13:59:05 [2025-02-04 13:59:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 13:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400826', 'tblTempUsageDetail_20' ) start [2025-02-04 13:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400826', 'tblTempUsageDetail_20' ) end [2025-02-04 13:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400826', 'tblTempVendorCDR_20' ) start [2025-02-04 13:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400826', 'tblTempVendorCDR_20' ) end [2025-02-04 13:59:27] Production.INFO: ProcessCDR(1,14400826,1,1,2) [2025-02-04 13:59:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:59:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 13:59:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:59:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 13:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400826', 'tblTempUsageDetail_20' ) start [2025-02-04 13:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400826', 'tblTempUsageDetail_20' ) end [2025-02-04 13:59:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 13:59:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 13:59:31] Production.INFO: ==28549== Releasing lock... [2025-02-04 13:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 13:59:31] Production.INFO: 62 MB #Memory Used# [2025-02-04 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:00:06 [end_date_ymd] => 2025-02-04 14:00:06 [RateCDR] => 1 ) [2025-02-04 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:00:06' and `end` < '2025-02-04 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:00:26] Production.INFO: count ==4532 [2025-02-04 14:00:28] Production.ERROR: pbx CDR StartTime 2025-02-04 11:00:06 - End Time 2025-02-04 14:00:06 [2025-02-04 14:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400832', 'tblTempUsageDetail_20' ) start [2025-02-04 14:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400832', 'tblTempUsageDetail_20' ) end [2025-02-04 14:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400832', 'tblTempVendorCDR_20' ) start [2025-02-04 14:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400832', 'tblTempVendorCDR_20' ) end [2025-02-04 14:00:28] Production.INFO: ProcessCDR(1,14400832,1,1,2) [2025-02-04 14:00:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400832', 'tblTempUsageDetail_20' ) start [2025-02-04 14:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400832', 'tblTempUsageDetail_20' ) end [2025-02-04 14:00:33] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:00:33] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:00:33] Production.INFO: ==28643== Releasing lock... [2025-02-04 14:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:00:33] Production.INFO: 62 MB #Memory Used# [2025-02-04 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:01:05 [end_date_ymd] => 2025-02-04 14:01:05 [RateCDR] => 1 ) [2025-02-04 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:01:05' and `end` < '2025-02-04 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:01:21] Production.INFO: count ==4526 [2025-02-04 14:01:23] Production.ERROR: pbx CDR StartTime 2025-02-04 11:01:05 - End Time 2025-02-04 14:01:05 [2025-02-04 14:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400837', 'tblTempUsageDetail_20' ) start [2025-02-04 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400837', 'tblTempUsageDetail_20' ) end [2025-02-04 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400837', 'tblTempVendorCDR_20' ) start [2025-02-04 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400837', 'tblTempVendorCDR_20' ) end [2025-02-04 14:01:23] Production.INFO: ProcessCDR(1,14400837,1,1,2) [2025-02-04 14:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400837', 'tblTempUsageDetail_20' ) start [2025-02-04 14:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400837', 'tblTempUsageDetail_20' ) end [2025-02-04 14:01:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:01:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:01:28] Production.INFO: ==28737== Releasing lock... [2025-02-04 14:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:01:28] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:02:05 [end_date_ymd] => 2025-02-04 14:02:05 [RateCDR] => 1 ) [2025-02-04 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:02:05' and `end` < '2025-02-04 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:02:21] Production.INFO: count ==4529 [2025-02-04 14:02:23] Production.ERROR: pbx CDR StartTime 2025-02-04 11:02:05 - End Time 2025-02-04 14:02:05 [2025-02-04 14:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400842', 'tblTempUsageDetail_20' ) start [2025-02-04 14:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400842', 'tblTempUsageDetail_20' ) end [2025-02-04 14:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400842', 'tblTempVendorCDR_20' ) start [2025-02-04 14:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400842', 'tblTempVendorCDR_20' ) end [2025-02-04 14:02:23] Production.INFO: ProcessCDR(1,14400842,1,1,2) [2025-02-04 14:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400842', 'tblTempUsageDetail_20' ) start [2025-02-04 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400842', 'tblTempUsageDetail_20' ) end [2025-02-04 14:02:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:02:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:02:28] Production.INFO: ==28824== Releasing lock... [2025-02-04 14:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:02:28] Production.INFO: 62 MB #Memory Used# [2025-02-04 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:03:05 [end_date_ymd] => 2025-02-04 14:03:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 11:03:05' and `end` < '2025-02-04 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-02-04 14:03:18] Production.INFO: count ==4515 [2025-02-04 14:03:20] Production.ERROR: pbx CDR StartTime 2025-02-04 11:03:05 - End Time 2025-02-04 14:03:05 [2025-02-04 14:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400847', 'tblTempUsageDetail_20' ) start [2025-02-04 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400847', 'tblTempUsageDetail_20' ) end [2025-02-04 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400847', 'tblTempVendorCDR_20' ) start [2025-02-04 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400847', 'tblTempVendorCDR_20' ) end [2025-02-04 14:03:20] Production.INFO: ProcessCDR(1,14400847,1,1,2) [2025-02-04 14:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400847', 'tblTempUsageDetail_20' ) start [2025-02-04 14:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400847', 'tblTempUsageDetail_20' ) end [2025-02-04 14:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:03:25] Production.INFO: ==28909== Releasing lock... [2025-02-04 14:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:03:25] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:04:05 [end_date_ymd] => 2025-02-04 14:04:05 [RateCDR] => 1 ) [2025-02-04 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:04:05' and `end` < '2025-02-04 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:04:25] Production.INFO: count ==4512 [2025-02-04 14:04:27] Production.ERROR: pbx CDR StartTime 2025-02-04 11:04:05 - End Time 2025-02-04 14:04:05 [2025-02-04 14:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400852', 'tblTempUsageDetail_20' ) start [2025-02-04 14:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400852', 'tblTempUsageDetail_20' ) end [2025-02-04 14:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400852', 'tblTempVendorCDR_20' ) start [2025-02-04 14:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400852', 'tblTempVendorCDR_20' ) end [2025-02-04 14:04:27] Production.INFO: ProcessCDR(1,14400852,1,1,2) [2025-02-04 14:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400852', 'tblTempUsageDetail_20' ) start [2025-02-04 14:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400852', 'tblTempUsageDetail_20' ) end [2025-02-04 14:04:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:04:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:04:32] Production.INFO: ==28997== Releasing lock... [2025-02-04 14:04:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:04:32] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:05:05 [end_date_ymd] => 2025-02-04 14:05:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 11:05:05' and `end` < '2025-02-04 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-02-04 14:05:22] Production.INFO: count ==4507 [2025-02-04 14:05:24] Production.ERROR: pbx CDR StartTime 2025-02-04 11:05:05 - End Time 2025-02-04 14:05:05 [2025-02-04 14:05:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400857', 'tblTempUsageDetail_20' ) start [2025-02-04 14:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400857', 'tblTempUsageDetail_20' ) end [2025-02-04 14:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400857', 'tblTempVendorCDR_20' ) start [2025-02-04 14:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400857', 'tblTempVendorCDR_20' ) end [2025-02-04 14:05:24] Production.INFO: ProcessCDR(1,14400857,1,1,2) [2025-02-04 14:05:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400857', 'tblTempUsageDetail_20' ) start [2025-02-04 14:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400857', 'tblTempUsageDetail_20' ) end [2025-02-04 14:05:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:05:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:05:29] Production.INFO: ==29077== Releasing lock... [2025-02-04 14:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:05:29] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:06:05 [end_date_ymd] => 2025-02-04 14:06:05 [RateCDR] => 1 ) [2025-02-04 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:06:05' and `end` < '2025-02-04 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:06:24] Production.INFO: count ==4512 [2025-02-04 14:06:26] Production.ERROR: pbx CDR StartTime 2025-02-04 11:06:05 - End Time 2025-02-04 14:06:05 [2025-02-04 14:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400862', 'tblTempUsageDetail_20' ) start [2025-02-04 14:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400862', 'tblTempUsageDetail_20' ) end [2025-02-04 14:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400862', 'tblTempVendorCDR_20' ) start [2025-02-04 14:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400862', 'tblTempVendorCDR_20' ) end [2025-02-04 14:06:26] Production.INFO: ProcessCDR(1,14400862,1,1,2) [2025-02-04 14:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400862', 'tblTempUsageDetail_20' ) start [2025-02-04 14:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400862', 'tblTempUsageDetail_20' ) end [2025-02-04 14:06:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:06:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:06:30] Production.INFO: ==29169== Releasing lock... [2025-02-04 14:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:06:30] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:07:05 [end_date_ymd] => 2025-02-04 14:07:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 11:07:05' and `end` < '2025-02-04 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-02-04 14:07:24] Production.INFO: count ==4507 [2025-02-04 14:07:26] Production.ERROR: pbx CDR StartTime 2025-02-04 11:07:05 - End Time 2025-02-04 14:07:05 [2025-02-04 14:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400867', 'tblTempUsageDetail_20' ) start [2025-02-04 14:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400867', 'tblTempUsageDetail_20' ) end [2025-02-04 14:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400867', 'tblTempVendorCDR_20' ) start [2025-02-04 14:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400867', 'tblTempVendorCDR_20' ) end [2025-02-04 14:07:26] Production.INFO: ProcessCDR(1,14400867,1,1,2) [2025-02-04 14:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400867', 'tblTempUsageDetail_20' ) start [2025-02-04 14:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400867', 'tblTempUsageDetail_20' ) end [2025-02-04 14:07:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:07:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:07:31] Production.INFO: ==29254== Releasing lock... [2025-02-04 14:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:07:31] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:08:06 [end_date_ymd] => 2025-02-04 14:08:06 [RateCDR] => 1 ) [2025-02-04 14:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:08:06' and `end` < '2025-02-04 14:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:08:23] Production.INFO: count ==4499 [2025-02-04 14:08:25] Production.ERROR: pbx CDR StartTime 2025-02-04 11:08:06 - End Time 2025-02-04 14:08:06 [2025-02-04 14:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400872', 'tblTempUsageDetail_20' ) start [2025-02-04 14:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400872', 'tblTempUsageDetail_20' ) end [2025-02-04 14:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400872', 'tblTempVendorCDR_20' ) start [2025-02-04 14:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400872', 'tblTempVendorCDR_20' ) end [2025-02-04 14:08:25] Production.INFO: ProcessCDR(1,14400872,1,1,2) [2025-02-04 14:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400872', 'tblTempUsageDetail_20' ) start [2025-02-04 14:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400872', 'tblTempUsageDetail_20' ) end [2025-02-04 14:08:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:08:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:08:30] Production.INFO: ==29345== Releasing lock... [2025-02-04 14:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:08:30] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:09:05 [end_date_ymd] => 2025-02-04 14:09:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 11:09:05' and `end` < '2025-02-04 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-02-04 14:09:20] Production.INFO: count ==4486 [2025-02-04 14:09:22] Production.ERROR: pbx CDR StartTime 2025-02-04 11:09:05 - End Time 2025-02-04 14:09:05 [2025-02-04 14:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400877', 'tblTempUsageDetail_20' ) start [2025-02-04 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400877', 'tblTempUsageDetail_20' ) end [2025-02-04 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400877', 'tblTempVendorCDR_20' ) start [2025-02-04 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400877', 'tblTempVendorCDR_20' ) end [2025-02-04 14:09:22] Production.INFO: ProcessCDR(1,14400877,1,1,2) [2025-02-04 14:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400877', 'tblTempUsageDetail_20' ) start [2025-02-04 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400877', 'tblTempUsageDetail_20' ) end [2025-02-04 14:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:09:26] Production.INFO: ==29467== Releasing lock... [2025-02-04 14:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:09:26] Production.INFO: 61.5 MB #Memory Used# [2025-02-04 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:10:06 [end_date_ymd] => 2025-02-04 14:10:06 [RateCDR] => 1 ) [2025-02-04 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:10:06' and `end` < '2025-02-04 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:10:20] Production.INFO: count ==4473 [2025-02-04 14:10:21] Production.ERROR: pbx CDR StartTime 2025-02-04 11:10:06 - End Time 2025-02-04 14:10:06 [2025-02-04 14:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400883', 'tblTempUsageDetail_20' ) start [2025-02-04 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400883', 'tblTempUsageDetail_20' ) end [2025-02-04 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400883', 'tblTempVendorCDR_20' ) start [2025-02-04 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400883', 'tblTempVendorCDR_20' ) end [2025-02-04 14:10:22] Production.INFO: ProcessCDR(1,14400883,1,1,2) [2025-02-04 14:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400883', 'tblTempUsageDetail_20' ) start [2025-02-04 14:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400883', 'tblTempUsageDetail_20' ) end [2025-02-04 14:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:10:26] Production.INFO: ==29588== Releasing lock... [2025-02-04 14:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:10:26] Production.INFO: 61.5 MB #Memory Used# [2025-02-04 14:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:11:06 [end_date_ymd] => 2025-02-04 14:11:06 [RateCDR] => 1 ) [2025-02-04 14:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:11:06' and `end` < '2025-02-04 14:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:11:23] Production.INFO: count ==4465 [2025-02-04 14:11:24] Production.ERROR: pbx CDR StartTime 2025-02-04 11:11:06 - End Time 2025-02-04 14:11:06 [2025-02-04 14:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400888', 'tblTempUsageDetail_20' ) start [2025-02-04 14:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400888', 'tblTempUsageDetail_20' ) end [2025-02-04 14:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400888', 'tblTempVendorCDR_20' ) start [2025-02-04 14:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400888', 'tblTempVendorCDR_20' ) end [2025-02-04 14:11:24] Production.INFO: ProcessCDR(1,14400888,1,1,2) [2025-02-04 14:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400888', 'tblTempUsageDetail_20' ) start [2025-02-04 14:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400888', 'tblTempUsageDetail_20' ) end [2025-02-04 14:11:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:11:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:11:29] Production.INFO: ==29721== Releasing lock... [2025-02-04 14:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:11:29] Production.INFO: 61.5 MB #Memory Used# [2025-02-04 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:12:05 [end_date_ymd] => 2025-02-04 14:12:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 11:12:05' and `end` < '2025-02-04 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-02-04 14:12:31] Production.INFO: count ==4467 [2025-02-04 14:12:33] Production.ERROR: pbx CDR StartTime 2025-02-04 11:12:05 - End Time 2025-02-04 14:12:05 [2025-02-04 14:12:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400893', 'tblTempUsageDetail_20' ) start [2025-02-04 14:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400893', 'tblTempUsageDetail_20' ) end [2025-02-04 14:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400893', 'tblTempVendorCDR_20' ) start [2025-02-04 14:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400893', 'tblTempVendorCDR_20' ) end [2025-02-04 14:12:33] Production.INFO: ProcessCDR(1,14400893,1,1,2) [2025-02-04 14:12:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:12:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:12:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:12:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:12:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400893', 'tblTempUsageDetail_20' ) start [2025-02-04 14:12:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400893', 'tblTempUsageDetail_20' ) end [2025-02-04 14:12:38] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:12:38] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:12:38] Production.INFO: ==29803== Releasing lock... [2025-02-04 14:12:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:12:38] Production.INFO: 61.5 MB #Memory Used# [2025-02-04 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:13:05 [end_date_ymd] => 2025-02-04 14:13:05 [RateCDR] => 1 ) [2025-02-04 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:13:05' and `end` < '2025-02-04 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:13:23] Production.INFO: count ==4473 [2025-02-04 14:13:25] Production.ERROR: pbx CDR StartTime 2025-02-04 11:13:05 - End Time 2025-02-04 14:13:05 [2025-02-04 14:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400898', 'tblTempUsageDetail_20' ) start [2025-02-04 14:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400898', 'tblTempUsageDetail_20' ) end [2025-02-04 14:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400898', 'tblTempVendorCDR_20' ) start [2025-02-04 14:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400898', 'tblTempVendorCDR_20' ) end [2025-02-04 14:13:25] Production.INFO: ProcessCDR(1,14400898,1,1,2) [2025-02-04 14:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400898', 'tblTempUsageDetail_20' ) start [2025-02-04 14:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400898', 'tblTempUsageDetail_20' ) end [2025-02-04 14:13:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:13:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:13:30] Production.INFO: ==29890== Releasing lock... [2025-02-04 14:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:13:30] Production.INFO: 61.5 MB #Memory Used# [2025-02-04 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:14:05 [end_date_ymd] => 2025-02-04 14:14:05 [RateCDR] => 1 ) [2025-02-04 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:14:05' and `end` < '2025-02-04 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:14:22] Production.INFO: count ==4461 [2025-02-04 14:14:23] Production.ERROR: pbx CDR StartTime 2025-02-04 11:14:05 - End Time 2025-02-04 14:14:05 [2025-02-04 14:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400903', 'tblTempUsageDetail_20' ) start [2025-02-04 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400903', 'tblTempUsageDetail_20' ) end [2025-02-04 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400903', 'tblTempVendorCDR_20' ) start [2025-02-04 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400903', 'tblTempVendorCDR_20' ) end [2025-02-04 14:14:23] Production.INFO: ProcessCDR(1,14400903,1,1,2) [2025-02-04 14:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400903', 'tblTempUsageDetail_20' ) start [2025-02-04 14:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400903', 'tblTempUsageDetail_20' ) end [2025-02-04 14:14:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:14:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:14:28] Production.INFO: ==29975== Releasing lock... [2025-02-04 14:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:14:28] Production.INFO: 61.5 MB #Memory Used# [2025-02-04 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:15:05 [end_date_ymd] => 2025-02-04 14:15:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 11:15:05' and `end` < '2025-02-04 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-02-04 14:15:19] Production.INFO: count ==4448 [2025-02-04 14:15:20] Production.ERROR: pbx CDR StartTime 2025-02-04 11:15:05 - End Time 2025-02-04 14:15:05 [2025-02-04 14:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400908', 'tblTempUsageDetail_20' ) start [2025-02-04 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400908', 'tblTempUsageDetail_20' ) end [2025-02-04 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400908', 'tblTempVendorCDR_20' ) start [2025-02-04 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400908', 'tblTempVendorCDR_20' ) end [2025-02-04 14:15:21] Production.INFO: ProcessCDR(1,14400908,1,1,2) [2025-02-04 14:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400908', 'tblTempUsageDetail_20' ) start [2025-02-04 14:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400908', 'tblTempUsageDetail_20' ) end [2025-02-04 14:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:15:25] Production.INFO: ==30062== Releasing lock... [2025-02-04 14:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:15:25] Production.INFO: 61.25 MB #Memory Used# [2025-02-04 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:16:05 [end_date_ymd] => 2025-02-04 14:16:05 [RateCDR] => 1 ) [2025-02-04 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:16:05' and `end` < '2025-02-04 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:16:20] Production.INFO: count ==4447 [2025-02-04 14:16:22] Production.ERROR: pbx CDR StartTime 2025-02-04 11:16:05 - End Time 2025-02-04 14:16:05 [2025-02-04 14:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400913', 'tblTempUsageDetail_20' ) start [2025-02-04 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400913', 'tblTempUsageDetail_20' ) end [2025-02-04 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400913', 'tblTempVendorCDR_20' ) start [2025-02-04 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400913', 'tblTempVendorCDR_20' ) end [2025-02-04 14:16:22] Production.INFO: ProcessCDR(1,14400913,1,1,2) [2025-02-04 14:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400913', 'tblTempUsageDetail_20' ) start [2025-02-04 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400913', 'tblTempUsageDetail_20' ) end [2025-02-04 14:16:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:16:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:16:27] Production.INFO: ==30141== Releasing lock... [2025-02-04 14:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:16:27] Production.INFO: 61.25 MB #Memory Used# [2025-02-04 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:17:05 [end_date_ymd] => 2025-02-04 14:17:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 11:17:05' and `end` < '2025-02-04 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-02-04 14:17:20] Production.INFO: count ==4409 [2025-02-04 14:17:22] Production.ERROR: pbx CDR StartTime 2025-02-04 11:17:05 - End Time 2025-02-04 14:17:05 [2025-02-04 14:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400918', 'tblTempUsageDetail_20' ) start [2025-02-04 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400918', 'tblTempUsageDetail_20' ) end [2025-02-04 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400918', 'tblTempVendorCDR_20' ) start [2025-02-04 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400918', 'tblTempVendorCDR_20' ) end [2025-02-04 14:17:22] Production.INFO: ProcessCDR(1,14400918,1,1,2) [2025-02-04 14:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400918', 'tblTempUsageDetail_20' ) start [2025-02-04 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400918', 'tblTempUsageDetail_20' ) end [2025-02-04 14:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:17:27] Production.INFO: ==30222== Releasing lock... [2025-02-04 14:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:17:27] Production.INFO: 61 MB #Memory Used# [2025-02-04 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:18:05 [end_date_ymd] => 2025-02-04 14:18:05 [RateCDR] => 1 ) [2025-02-04 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:18:05' and `end` < '2025-02-04 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:18:19] Production.INFO: count ==4400 [2025-02-04 14:18:20] Production.ERROR: pbx CDR StartTime 2025-02-04 11:18:05 - End Time 2025-02-04 14:18:05 [2025-02-04 14:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400923', 'tblTempUsageDetail_20' ) start [2025-02-04 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400923', 'tblTempUsageDetail_20' ) end [2025-02-04 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400923', 'tblTempVendorCDR_20' ) start [2025-02-04 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400923', 'tblTempVendorCDR_20' ) end [2025-02-04 14:18:21] Production.INFO: ProcessCDR(1,14400923,1,1,2) [2025-02-04 14:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400923', 'tblTempUsageDetail_20' ) start [2025-02-04 14:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400923', 'tblTempUsageDetail_20' ) end [2025-02-04 14:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:18:25] Production.INFO: ==30308== Releasing lock... [2025-02-04 14:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:18:25] Production.INFO: 61 MB #Memory Used# [2025-02-04 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:19:05 [end_date_ymd] => 2025-02-04 14:19:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 11:19:05' and `end` < '2025-02-04 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-02-04 14:19:23] Production.INFO: count ==4420 [2025-02-04 14:19:25] Production.ERROR: pbx CDR StartTime 2025-02-04 11:19:05 - End Time 2025-02-04 14:19:05 [2025-02-04 14:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400928', 'tblTempUsageDetail_20' ) start [2025-02-04 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400928', 'tblTempUsageDetail_20' ) end [2025-02-04 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400928', 'tblTempVendorCDR_20' ) start [2025-02-04 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400928', 'tblTempVendorCDR_20' ) end [2025-02-04 14:19:25] Production.INFO: ProcessCDR(1,14400928,1,1,2) [2025-02-04 14:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:19:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:19:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400928', 'tblTempUsageDetail_20' ) start [2025-02-04 14:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400928', 'tblTempUsageDetail_20' ) end [2025-02-04 14:19:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:19:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:19:30] Production.INFO: ==30390== Releasing lock... [2025-02-04 14:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:19:30] Production.INFO: 61 MB #Memory Used# [2025-02-04 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:20:06 [end_date_ymd] => 2025-02-04 14:20:06 [RateCDR] => 1 ) [2025-02-04 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:20:06' and `end` < '2025-02-04 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:20:25] Production.INFO: count ==4439 [2025-02-04 14:20:27] Production.ERROR: pbx CDR StartTime 2025-02-04 11:20:06 - End Time 2025-02-04 14:20:06 [2025-02-04 14:20:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400934', 'tblTempUsageDetail_20' ) start [2025-02-04 14:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400934', 'tblTempUsageDetail_20' ) end [2025-02-04 14:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400934', 'tblTempVendorCDR_20' ) start [2025-02-04 14:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400934', 'tblTempVendorCDR_20' ) end [2025-02-04 14:20:27] Production.INFO: ProcessCDR(1,14400934,1,1,2) [2025-02-04 14:20:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:20:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:20:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:20:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400934', 'tblTempUsageDetail_20' ) start [2025-02-04 14:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400934', 'tblTempUsageDetail_20' ) end [2025-02-04 14:20:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:20:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:20:32] Production.INFO: ==30472== Releasing lock... [2025-02-04 14:20:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:20:32] Production.INFO: 61.25 MB #Memory Used# [2025-02-04 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:21:05 [end_date_ymd] => 2025-02-04 14:21:05 [RateCDR] => 1 ) [2025-02-04 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:21:05' and `end` < '2025-02-04 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:21:24] Production.INFO: count ==4448 [2025-02-04 14:21:25] Production.ERROR: pbx CDR StartTime 2025-02-04 11:21:05 - End Time 2025-02-04 14:21:05 [2025-02-04 14:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400939', 'tblTempUsageDetail_20' ) start [2025-02-04 14:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400939', 'tblTempUsageDetail_20' ) end [2025-02-04 14:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400939', 'tblTempVendorCDR_20' ) start [2025-02-04 14:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400939', 'tblTempVendorCDR_20' ) end [2025-02-04 14:21:25] Production.INFO: ProcessCDR(1,14400939,1,1,2) [2025-02-04 14:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400939', 'tblTempUsageDetail_20' ) start [2025-02-04 14:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400939', 'tblTempUsageDetail_20' ) end [2025-02-04 14:21:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:21:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:21:30] Production.INFO: ==30554== Releasing lock... [2025-02-04 14:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:21:30] Production.INFO: 61.25 MB #Memory Used# [2025-02-04 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:22:05 [end_date_ymd] => 2025-02-04 14:22:05 [RateCDR] => 1 ) [2025-02-04 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:22:05' and `end` < '2025-02-04 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:22:20] Production.INFO: count ==4472 [2025-02-04 14:22:21] Production.ERROR: pbx CDR StartTime 2025-02-04 11:22:05 - End Time 2025-02-04 14:22:05 [2025-02-04 14:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400944', 'tblTempUsageDetail_20' ) start [2025-02-04 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400944', 'tblTempUsageDetail_20' ) end [2025-02-04 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400944', 'tblTempVendorCDR_20' ) start [2025-02-04 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400944', 'tblTempVendorCDR_20' ) end [2025-02-04 14:22:21] Production.INFO: ProcessCDR(1,14400944,1,1,2) [2025-02-04 14:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400944', 'tblTempUsageDetail_20' ) start [2025-02-04 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400944', 'tblTempUsageDetail_20' ) end [2025-02-04 14:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:22:26] Production.INFO: ==30637== Releasing lock... [2025-02-04 14:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:22:26] Production.INFO: 61.5 MB #Memory Used# [2025-02-04 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:23:05 [end_date_ymd] => 2025-02-04 14:23:05 [RateCDR] => 1 ) [2025-02-04 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:23:05' and `end` < '2025-02-04 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:23:22] Production.INFO: count ==4494 [2025-02-04 14:23:24] Production.ERROR: pbx CDR StartTime 2025-02-04 11:23:05 - End Time 2025-02-04 14:23:05 [2025-02-04 14:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400949', 'tblTempUsageDetail_20' ) start [2025-02-04 14:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400949', 'tblTempUsageDetail_20' ) end [2025-02-04 14:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400949', 'tblTempVendorCDR_20' ) start [2025-02-04 14:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400949', 'tblTempVendorCDR_20' ) end [2025-02-04 14:23:24] Production.INFO: ProcessCDR(1,14400949,1,1,2) [2025-02-04 14:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:23:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:23:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400949', 'tblTempUsageDetail_20' ) start [2025-02-04 14:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400949', 'tblTempUsageDetail_20' ) end [2025-02-04 14:23:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:23:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:23:29] Production.INFO: ==30716== Releasing lock... [2025-02-04 14:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:23:29] Production.INFO: 62 MB #Memory Used# [2025-02-04 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:24:05 [end_date_ymd] => 2025-02-04 14:24:05 [RateCDR] => 1 ) [2025-02-04 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:24:05' and `end` < '2025-02-04 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:24:21] Production.INFO: count ==4528 [2025-02-04 14:24:23] Production.ERROR: pbx CDR StartTime 2025-02-04 11:24:05 - End Time 2025-02-04 14:24:05 [2025-02-04 14:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400954', 'tblTempUsageDetail_20' ) start [2025-02-04 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400954', 'tblTempUsageDetail_20' ) end [2025-02-04 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400954', 'tblTempVendorCDR_20' ) start [2025-02-04 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400954', 'tblTempVendorCDR_20' ) end [2025-02-04 14:24:23] Production.INFO: ProcessCDR(1,14400954,1,1,2) [2025-02-04 14:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400954', 'tblTempUsageDetail_20' ) start [2025-02-04 14:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400954', 'tblTempUsageDetail_20' ) end [2025-02-04 14:24:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:24:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:24:28] Production.INFO: ==30793== Releasing lock... [2025-02-04 14:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:24:28] Production.INFO: 62 MB #Memory Used# [2025-02-04 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:25:05 [end_date_ymd] => 2025-02-04 14:25:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 11:25:05' and `end` < '2025-02-04 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-02-04 14:25:26] Production.INFO: count ==4614 [2025-02-04 14:25:27] Production.ERROR: pbx CDR StartTime 2025-02-04 11:25:05 - End Time 2025-02-04 14:25:05 [2025-02-04 14:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400959', 'tblTempUsageDetail_20' ) start [2025-02-04 14:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400959', 'tblTempUsageDetail_20' ) end [2025-02-04 14:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400959', 'tblTempVendorCDR_20' ) start [2025-02-04 14:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400959', 'tblTempVendorCDR_20' ) end [2025-02-04 14:25:27] Production.INFO: ProcessCDR(1,14400959,1,1,2) [2025-02-04 14:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400959', 'tblTempUsageDetail_20' ) start [2025-02-04 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400959', 'tblTempUsageDetail_20' ) end [2025-02-04 14:25:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:25:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:25:32] Production.INFO: ==30879== Releasing lock... [2025-02-04 14:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:25:32] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:26:04 [end_date_ymd] => 2025-02-04 14:26:04 [RateCDR] => 1 ) [2025-02-04 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:26:04' and `end` < '2025-02-04 14: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-02-04 14:26:22] Production.INFO: count ==4627 [2025-02-04 14:26:24] Production.ERROR: pbx CDR StartTime 2025-02-04 11:26:04 - End Time 2025-02-04 14:26:04 [2025-02-04 14:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400964', 'tblTempUsageDetail_20' ) start [2025-02-04 14:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400964', 'tblTempUsageDetail_20' ) end [2025-02-04 14:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400964', 'tblTempVendorCDR_20' ) start [2025-02-04 14:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400964', 'tblTempVendorCDR_20' ) end [2025-02-04 14:26:24] Production.INFO: ProcessCDR(1,14400964,1,1,2) [2025-02-04 14:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400964', 'tblTempUsageDetail_20' ) start [2025-02-04 14:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400964', 'tblTempUsageDetail_20' ) end [2025-02-04 14:26:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:26:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:26:29] Production.INFO: ==30959== Releasing lock... [2025-02-04 14:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:26:29] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:27:05 [end_date_ymd] => 2025-02-04 14:27:05 [RateCDR] => 1 ) [2025-02-04 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:27:05' and `end` < '2025-02-04 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:27:22] Production.INFO: count ==4623 [2025-02-04 14:27:24] Production.ERROR: pbx CDR StartTime 2025-02-04 11:27:05 - End Time 2025-02-04 14:27:05 [2025-02-04 14:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400969', 'tblTempUsageDetail_20' ) start [2025-02-04 14:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400969', 'tblTempUsageDetail_20' ) end [2025-02-04 14:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400969', 'tblTempVendorCDR_20' ) start [2025-02-04 14:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400969', 'tblTempVendorCDR_20' ) end [2025-02-04 14:27:24] Production.INFO: ProcessCDR(1,14400969,1,1,2) [2025-02-04 14:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400969', 'tblTempUsageDetail_20' ) start [2025-02-04 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400969', 'tblTempUsageDetail_20' ) end [2025-02-04 14:27:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:27:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:27:27] Production.INFO: ==31078== Releasing lock... [2025-02-04 14:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:27:27] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:28:05 [end_date_ymd] => 2025-02-04 14:28:05 [RateCDR] => 1 ) [2025-02-04 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:28:05' and `end` < '2025-02-04 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:28:18] Production.INFO: count ==4641 [2025-02-04 14:28:20] Production.ERROR: pbx CDR StartTime 2025-02-04 11:28:05 - End Time 2025-02-04 14:28:05 [2025-02-04 14:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400974', 'tblTempUsageDetail_20' ) start [2025-02-04 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400974', 'tblTempUsageDetail_20' ) end [2025-02-04 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400974', 'tblTempVendorCDR_20' ) start [2025-02-04 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400974', 'tblTempVendorCDR_20' ) end [2025-02-04 14:28:20] Production.INFO: ProcessCDR(1,14400974,1,1,2) [2025-02-04 14:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400974', 'tblTempUsageDetail_20' ) start [2025-02-04 14:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400974', 'tblTempUsageDetail_20' ) end [2025-02-04 14:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:28:24] Production.INFO: ==31165== Releasing lock... [2025-02-04 14:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:28:24] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:29:05 [end_date_ymd] => 2025-02-04 14:29:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 11:29:05' and `end` < '2025-02-04 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-02-04 14:29:20] Production.INFO: count ==4656 [2025-02-04 14:29:22] Production.ERROR: pbx CDR StartTime 2025-02-04 11:29:05 - End Time 2025-02-04 14:29:05 [2025-02-04 14:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400979', 'tblTempUsageDetail_20' ) start [2025-02-04 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400979', 'tblTempUsageDetail_20' ) end [2025-02-04 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400979', 'tblTempVendorCDR_20' ) start [2025-02-04 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400979', 'tblTempVendorCDR_20' ) end [2025-02-04 14:29:22] Production.INFO: ProcessCDR(1,14400979,1,1,2) [2025-02-04 14:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400979', 'tblTempUsageDetail_20' ) start [2025-02-04 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400979', 'tblTempUsageDetail_20' ) end [2025-02-04 14:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:29:26] Production.INFO: ==31246== Releasing lock... [2025-02-04 14:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:29:27] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:30:06 [end_date_ymd] => 2025-02-04 14:30:06 [RateCDR] => 1 ) [2025-02-04 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:30:06' and `end` < '2025-02-04 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:30:27] Production.INFO: count ==4643 [2025-02-04 14:30:29] Production.ERROR: pbx CDR StartTime 2025-02-04 11:30:06 - End Time 2025-02-04 14:30:06 [2025-02-04 14:30:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400984', 'tblTempUsageDetail_20' ) start [2025-02-04 14:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400984', 'tblTempUsageDetail_20' ) end [2025-02-04 14:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400984', 'tblTempVendorCDR_20' ) start [2025-02-04 14:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400984', 'tblTempVendorCDR_20' ) end [2025-02-04 14:30:29] Production.INFO: ProcessCDR(1,14400984,1,1,2) [2025-02-04 14:30:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:30:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:30:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:30:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400984', 'tblTempUsageDetail_20' ) start [2025-02-04 14:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400984', 'tblTempUsageDetail_20' ) end [2025-02-04 14:30:34] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:30:34] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:30:34] Production.INFO: ==31326== Releasing lock... [2025-02-04 14:30:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:30:34] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:31:05 [end_date_ymd] => 2025-02-04 14:31:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 11:31:05' and `end` < '2025-02-04 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-02-04 14:31:22] Production.INFO: count ==4646 [2025-02-04 14:31:24] Production.ERROR: pbx CDR StartTime 2025-02-04 11:31:05 - End Time 2025-02-04 14:31:05 [2025-02-04 14:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400990', 'tblTempUsageDetail_20' ) start [2025-02-04 14:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400990', 'tblTempUsageDetail_20' ) end [2025-02-04 14:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400990', 'tblTempVendorCDR_20' ) start [2025-02-04 14:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400990', 'tblTempVendorCDR_20' ) end [2025-02-04 14:31:24] Production.INFO: ProcessCDR(1,14400990,1,1,2) [2025-02-04 14:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400990', 'tblTempUsageDetail_20' ) start [2025-02-04 14:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400990', 'tblTempUsageDetail_20' ) end [2025-02-04 14:31:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:31:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:31:29] Production.INFO: ==31412== Releasing lock... [2025-02-04 14:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:31:29] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:32:05 [end_date_ymd] => 2025-02-04 14:32:05 [RateCDR] => 1 ) [2025-02-04 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:32:05' and `end` < '2025-02-04 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:32:20] Production.INFO: count ==4651 [2025-02-04 14:32:22] Production.ERROR: pbx CDR StartTime 2025-02-04 11:32:05 - End Time 2025-02-04 14:32:05 [2025-02-04 14:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400995', 'tblTempUsageDetail_20' ) start [2025-02-04 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14400995', 'tblTempUsageDetail_20' ) end [2025-02-04 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400995', 'tblTempVendorCDR_20' ) start [2025-02-04 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14400995', 'tblTempVendorCDR_20' ) end [2025-02-04 14:32:22] Production.INFO: ProcessCDR(1,14400995,1,1,2) [2025-02-04 14:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14400995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14400995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14400995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14400995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400995', 'tblTempUsageDetail_20' ) start [2025-02-04 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14400995', 'tblTempUsageDetail_20' ) end [2025-02-04 14:32:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:32:27] Production.INFO: ==31496== Releasing lock... [2025-02-04 14:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:32:27] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:33:05 [end_date_ymd] => 2025-02-04 14:33:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 11:33:05' and `end` < '2025-02-04 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-02-04 14:33:22] Production.INFO: count ==4649 [2025-02-04 14:33:24] Production.ERROR: pbx CDR StartTime 2025-02-04 11:33:05 - End Time 2025-02-04 14:33:05 [2025-02-04 14:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401000', 'tblTempUsageDetail_20' ) start [2025-02-04 14:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401000', 'tblTempUsageDetail_20' ) end [2025-02-04 14:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401000', 'tblTempVendorCDR_20' ) start [2025-02-04 14:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401000', 'tblTempVendorCDR_20' ) end [2025-02-04 14:33:24] Production.INFO: ProcessCDR(1,14401000,1,1,2) [2025-02-04 14:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401000', 'tblTempUsageDetail_20' ) start [2025-02-04 14:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401000', 'tblTempUsageDetail_20' ) end [2025-02-04 14:33:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:33:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:33:28] Production.INFO: ==31574== Releasing lock... [2025-02-04 14:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:33:28] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:34:05 [end_date_ymd] => 2025-02-04 14:34:05 [RateCDR] => 1 ) [2025-02-04 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:34:05' and `end` < '2025-02-04 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:34:23] Production.INFO: count ==4652 [2025-02-04 14:34:24] Production.ERROR: pbx CDR StartTime 2025-02-04 11:34:05 - End Time 2025-02-04 14:34:05 [2025-02-04 14:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401005', 'tblTempUsageDetail_20' ) start [2025-02-04 14:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401005', 'tblTempUsageDetail_20' ) end [2025-02-04 14:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401005', 'tblTempVendorCDR_20' ) start [2025-02-04 14:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401005', 'tblTempVendorCDR_20' ) end [2025-02-04 14:34:25] Production.INFO: ProcessCDR(1,14401005,1,1,2) [2025-02-04 14:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401005', 'tblTempUsageDetail_20' ) start [2025-02-04 14:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401005', 'tblTempUsageDetail_20' ) end [2025-02-04 14:34:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:34:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:34:29] Production.INFO: ==31656== Releasing lock... [2025-02-04 14:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:34:29] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 14:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:35:04 [end_date_ymd] => 2025-02-04 14:35:04 [RateCDR] => 1 ) [2025-02-04 14:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:35:04' and `end` < '2025-02-04 14:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:35:25] Production.INFO: count ==4644 [2025-02-04 14:35:27] Production.ERROR: pbx CDR StartTime 2025-02-04 11:35:04 - End Time 2025-02-04 14:35:04 [2025-02-04 14:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401010', 'tblTempUsageDetail_20' ) start [2025-02-04 14:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401010', 'tblTempUsageDetail_20' ) end [2025-02-04 14:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401010', 'tblTempVendorCDR_20' ) start [2025-02-04 14:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401010', 'tblTempVendorCDR_20' ) end [2025-02-04 14:35:27] Production.INFO: ProcessCDR(1,14401010,1,1,2) [2025-02-04 14:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401010', 'tblTempUsageDetail_20' ) start [2025-02-04 14:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401010', 'tblTempUsageDetail_20' ) end [2025-02-04 14:35:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:35:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:35:32] Production.INFO: ==31749== Releasing lock... [2025-02-04 14:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:35:32] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:36:05 [end_date_ymd] => 2025-02-04 14:36:05 [RateCDR] => 1 ) [2025-02-04 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:36:05' and `end` < '2025-02-04 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:36:22] Production.INFO: count ==4642 [2025-02-04 14:36:24] Production.ERROR: pbx CDR StartTime 2025-02-04 11:36:05 - End Time 2025-02-04 14:36:05 [2025-02-04 14:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401015', 'tblTempUsageDetail_20' ) start [2025-02-04 14:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401015', 'tblTempUsageDetail_20' ) end [2025-02-04 14:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401015', 'tblTempVendorCDR_20' ) start [2025-02-04 14:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401015', 'tblTempVendorCDR_20' ) end [2025-02-04 14:36:24] Production.INFO: ProcessCDR(1,14401015,1,1,2) [2025-02-04 14:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401015', 'tblTempUsageDetail_20' ) start [2025-02-04 14:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401015', 'tblTempUsageDetail_20' ) end [2025-02-04 14:36:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:36:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:36:29] Production.INFO: ==31828== Releasing lock... [2025-02-04 14:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:36:29] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:37:05 [end_date_ymd] => 2025-02-04 14:37:05 [RateCDR] => 1 ) [2025-02-04 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:37:05' and `end` < '2025-02-04 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:37:27] Production.INFO: count ==4651 [2025-02-04 14:37:29] Production.ERROR: pbx CDR StartTime 2025-02-04 11:37:05 - End Time 2025-02-04 14:37:05 [2025-02-04 14:37:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401020', 'tblTempUsageDetail_20' ) start [2025-02-04 14:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401020', 'tblTempUsageDetail_20' ) end [2025-02-04 14:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401020', 'tblTempVendorCDR_20' ) start [2025-02-04 14:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401020', 'tblTempVendorCDR_20' ) end [2025-02-04 14:37:29] Production.INFO: ProcessCDR(1,14401020,1,1,2) [2025-02-04 14:37:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:37:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:37:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:37:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401020', 'tblTempUsageDetail_20' ) start [2025-02-04 14:37:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401020', 'tblTempUsageDetail_20' ) end [2025-02-04 14:37:34] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:37:34] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:37:34] Production.INFO: ==31907== Releasing lock... [2025-02-04 14:37:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:37:34] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:38:05 [end_date_ymd] => 2025-02-04 14:38:05 [RateCDR] => 1 ) [2025-02-04 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:38:05' and `end` < '2025-02-04 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:38:24] Production.INFO: count ==4653 [2025-02-04 14:38:26] Production.ERROR: pbx CDR StartTime 2025-02-04 11:38:05 - End Time 2025-02-04 14:38:05 [2025-02-04 14:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401025', 'tblTempUsageDetail_20' ) start [2025-02-04 14:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401025', 'tblTempUsageDetail_20' ) end [2025-02-04 14:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401025', 'tblTempVendorCDR_20' ) start [2025-02-04 14:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401025', 'tblTempVendorCDR_20' ) end [2025-02-04 14:38:26] Production.INFO: ProcessCDR(1,14401025,1,1,2) [2025-02-04 14:38:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:38:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:38:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:38:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401025', 'tblTempUsageDetail_20' ) start [2025-02-04 14:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401025', 'tblTempUsageDetail_20' ) end [2025-02-04 14:38:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:38:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:38:31] Production.INFO: ==31990== Releasing lock... [2025-02-04 14:38:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:38:31] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 14:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:39:06 [end_date_ymd] => 2025-02-04 14:39:06 [RateCDR] => 1 ) [2025-02-04 14:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:39:06' and `end` < '2025-02-04 14:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:39:25] Production.INFO: count ==4678 [2025-02-04 14:39:27] Production.ERROR: pbx CDR StartTime 2025-02-04 11:39:06 - End Time 2025-02-04 14:39:06 [2025-02-04 14:39:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401030', 'tblTempUsageDetail_20' ) start [2025-02-04 14:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401030', 'tblTempUsageDetail_20' ) end [2025-02-04 14:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401030', 'tblTempVendorCDR_20' ) start [2025-02-04 14:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401030', 'tblTempVendorCDR_20' ) end [2025-02-04 14:39:27] Production.INFO: ProcessCDR(1,14401030,1,1,2) [2025-02-04 14:39:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:39:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:39:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:39:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401030', 'tblTempUsageDetail_20' ) start [2025-02-04 14:39:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401030', 'tblTempUsageDetail_20' ) end [2025-02-04 14:39:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:39:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:39:32] Production.INFO: ==32073== Releasing lock... [2025-02-04 14:39:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:39:32] Production.INFO: 63 MB #Memory Used# [2025-02-04 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:40:06 [end_date_ymd] => 2025-02-04 14:40:06 [RateCDR] => 1 ) [2025-02-04 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-02-04 11:40:06' and `end` < '2025-02-04 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-02-04 14:40:27] Production.INFO: count ==4676 [2025-02-04 14:40:29] Production.ERROR: pbx CDR StartTime 2025-02-04 11:40:06 - End Time 2025-02-04 14:40:06 [2025-02-04 14:40:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401036', 'tblTempUsageDetail_20' ) start [2025-02-04 14:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401036', 'tblTempUsageDetail_20' ) end [2025-02-04 14:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401036', 'tblTempVendorCDR_20' ) start [2025-02-04 14:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401036', 'tblTempVendorCDR_20' ) end [2025-02-04 14:40:29] Production.INFO: ProcessCDR(1,14401036,1,1,2) [2025-02-04 14:40:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:40:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:40:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:40:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401036', 'tblTempUsageDetail_20' ) start [2025-02-04 14:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401036', 'tblTempUsageDetail_20' ) end [2025-02-04 14:40:34] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:40:34] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:40:34] Production.INFO: ==32157== Releasing lock... [2025-02-04 14:40:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:40:34] Production.INFO: 63 MB #Memory Used# [2025-02-04 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:41:05 [end_date_ymd] => 2025-02-04 14:41:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 11:41:05' and `end` < '2025-02-04 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-02-04 14:41:23] Production.INFO: count ==4636 [2025-02-04 14:41:25] Production.ERROR: pbx CDR StartTime 2025-02-04 11:41:05 - End Time 2025-02-04 14:41:05 [2025-02-04 14:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401041', 'tblTempUsageDetail_20' ) start [2025-02-04 14:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401041', 'tblTempUsageDetail_20' ) end [2025-02-04 14:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401041', 'tblTempVendorCDR_20' ) start [2025-02-04 14:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401041', 'tblTempVendorCDR_20' ) end [2025-02-04 14:41:25] Production.INFO: ProcessCDR(1,14401041,1,1,2) [2025-02-04 14:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401041', 'tblTempUsageDetail_20' ) start [2025-02-04 14:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401041', 'tblTempUsageDetail_20' ) end [2025-02-04 14:41:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:41:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:41:29] Production.INFO: ==32242== Releasing lock... [2025-02-04 14:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:41:29] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 14:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:42:04 [end_date_ymd] => 2025-02-04 14:42:04 [RateCDR] => 1 ) [2025-02-04 14: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-02-04 11:42:04' and `end` < '2025-02-04 14: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-02-04 14:42:21] Production.INFO: count ==4633 [2025-02-04 14:42:22] Production.ERROR: pbx CDR StartTime 2025-02-04 11:42:04 - End Time 2025-02-04 14:42:04 [2025-02-04 14:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401046', 'tblTempUsageDetail_20' ) start [2025-02-04 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401046', 'tblTempUsageDetail_20' ) end [2025-02-04 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401046', 'tblTempVendorCDR_20' ) start [2025-02-04 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401046', 'tblTempVendorCDR_20' ) end [2025-02-04 14:42:23] Production.INFO: ProcessCDR(1,14401046,1,1,2) [2025-02-04 14:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401046', 'tblTempUsageDetail_20' ) start [2025-02-04 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401046', 'tblTempUsageDetail_20' ) end [2025-02-04 14:42:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:42:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:42:27] Production.INFO: ==32358== Releasing lock... [2025-02-04 14:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:42:27] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:43:05 [end_date_ymd] => 2025-02-04 14:43:05 [RateCDR] => 1 ) [2025-02-04 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:43:05' and `end` < '2025-02-04 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:43:22] Production.INFO: count ==4685 [2025-02-04 14:43:24] Production.ERROR: pbx CDR StartTime 2025-02-04 11:43:05 - End Time 2025-02-04 14:43:05 [2025-02-04 14:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401051', 'tblTempUsageDetail_20' ) start [2025-02-04 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401051', 'tblTempUsageDetail_20' ) end [2025-02-04 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401051', 'tblTempVendorCDR_20' ) start [2025-02-04 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401051', 'tblTempVendorCDR_20' ) end [2025-02-04 14:43:24] Production.INFO: ProcessCDR(1,14401051,1,1,2) [2025-02-04 14:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401051', 'tblTempUsageDetail_20' ) start [2025-02-04 14:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401051', 'tblTempUsageDetail_20' ) end [2025-02-04 14:43:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:43:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:43:29] Production.INFO: ==32443== Releasing lock... [2025-02-04 14:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:43:29] Production.INFO: 63 MB #Memory Used# [2025-02-04 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:44:05 [end_date_ymd] => 2025-02-04 14:44:05 [RateCDR] => 1 ) [2025-02-04 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:44:05' and `end` < '2025-02-04 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:44:21] Production.INFO: count ==4685 [2025-02-04 14:44:23] Production.ERROR: pbx CDR StartTime 2025-02-04 11:44:05 - End Time 2025-02-04 14:44:05 [2025-02-04 14:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401056', 'tblTempUsageDetail_20' ) start [2025-02-04 14:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401056', 'tblTempUsageDetail_20' ) end [2025-02-04 14:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401056', 'tblTempVendorCDR_20' ) start [2025-02-04 14:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401056', 'tblTempVendorCDR_20' ) end [2025-02-04 14:44:23] Production.INFO: ProcessCDR(1,14401056,1,1,2) [2025-02-04 14:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401056', 'tblTempUsageDetail_20' ) start [2025-02-04 14:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401056', 'tblTempUsageDetail_20' ) end [2025-02-04 14:44:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:44:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:44:28] Production.INFO: ==32523== Releasing lock... [2025-02-04 14:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:44:28] Production.INFO: 63 MB #Memory Used# [2025-02-04 14:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:45:04 [end_date_ymd] => 2025-02-04 14:45:04 [RateCDR] => 1 ) [2025-02-04 14:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:45:04' and `end` < '2025-02-04 14:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:45:22] Production.INFO: count ==4681 [2025-02-04 14:45:24] Production.ERROR: pbx CDR StartTime 2025-02-04 11:45:04 - End Time 2025-02-04 14:45:04 [2025-02-04 14:45:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401061', 'tblTempUsageDetail_20' ) start [2025-02-04 14:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401061', 'tblTempUsageDetail_20' ) end [2025-02-04 14:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401061', 'tblTempVendorCDR_20' ) start [2025-02-04 14:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401061', 'tblTempVendorCDR_20' ) end [2025-02-04 14:45:24] Production.INFO: ProcessCDR(1,14401061,1,1,2) [2025-02-04 14:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401061', 'tblTempUsageDetail_20' ) start [2025-02-04 14:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401061', 'tblTempUsageDetail_20' ) end [2025-02-04 14:45:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:45:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:45:29] Production.INFO: ==32599== Releasing lock... [2025-02-04 14:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:45:29] Production.INFO: 63 MB #Memory Used# [2025-02-04 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:46:05 [end_date_ymd] => 2025-02-04 14:46:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 11:46:05' and `end` < '2025-02-04 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-02-04 14:46:25] Production.INFO: count ==4665 [2025-02-04 14:46:26] Production.ERROR: pbx CDR StartTime 2025-02-04 11:46:05 - End Time 2025-02-04 14:46:05 [2025-02-04 14:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401066', 'tblTempUsageDetail_20' ) start [2025-02-04 14:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401066', 'tblTempUsageDetail_20' ) end [2025-02-04 14:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401066', 'tblTempVendorCDR_20' ) start [2025-02-04 14:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401066', 'tblTempVendorCDR_20' ) end [2025-02-04 14:46:27] Production.INFO: ProcessCDR(1,14401066,1,1,2) [2025-02-04 14:46:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:46:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:46:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401066', 'tblTempUsageDetail_20' ) start [2025-02-04 14:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401066', 'tblTempUsageDetail_20' ) end [2025-02-04 14:46:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:46:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:46:31] Production.INFO: ==32683== Releasing lock... [2025-02-04 14:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:46:31] Production.INFO: 63 MB #Memory Used# [2025-02-04 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:47:05 [end_date_ymd] => 2025-02-04 14:47:05 [RateCDR] => 1 ) [2025-02-04 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:47:05' and `end` < '2025-02-04 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:47:20] Production.INFO: count ==4655 [2025-02-04 14:47:22] Production.ERROR: pbx CDR StartTime 2025-02-04 11:47:05 - End Time 2025-02-04 14:47:05 [2025-02-04 14:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401071', 'tblTempUsageDetail_20' ) start [2025-02-04 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401071', 'tblTempUsageDetail_20' ) end [2025-02-04 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401071', 'tblTempVendorCDR_20' ) start [2025-02-04 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401071', 'tblTempVendorCDR_20' ) end [2025-02-04 14:47:22] Production.INFO: ProcessCDR(1,14401071,1,1,2) [2025-02-04 14:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401071', 'tblTempUsageDetail_20' ) start [2025-02-04 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401071', 'tblTempUsageDetail_20' ) end [2025-02-04 14:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:47:27] Production.INFO: ==304== Releasing lock... [2025-02-04 14:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:47:27] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:48:05 [end_date_ymd] => 2025-02-04 14:48:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 11:48:05' and `end` < '2025-02-04 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-02-04 14:48:23] Production.INFO: count ==4644 [2025-02-04 14:48:25] Production.ERROR: pbx CDR StartTime 2025-02-04 11:48:05 - End Time 2025-02-04 14:48:05 [2025-02-04 14:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401076', 'tblTempUsageDetail_20' ) start [2025-02-04 14:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401076', 'tblTempUsageDetail_20' ) end [2025-02-04 14:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401076', 'tblTempVendorCDR_20' ) start [2025-02-04 14:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401076', 'tblTempVendorCDR_20' ) end [2025-02-04 14:48:25] Production.INFO: ProcessCDR(1,14401076,1,1,2) [2025-02-04 14:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401076', 'tblTempUsageDetail_20' ) start [2025-02-04 14:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401076', 'tblTempUsageDetail_20' ) end [2025-02-04 14:48:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:48:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:48:30] Production.INFO: ==406== Releasing lock... [2025-02-04 14:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:48:30] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:49:05 [end_date_ymd] => 2025-02-04 14:49:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 11:49:05' and `end` < '2025-02-04 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-02-04 14:49:23] Production.INFO: count ==4659 [2025-02-04 14:49:25] Production.ERROR: pbx CDR StartTime 2025-02-04 11:49:05 - End Time 2025-02-04 14:49:05 [2025-02-04 14:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401081', 'tblTempUsageDetail_20' ) start [2025-02-04 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401081', 'tblTempUsageDetail_20' ) end [2025-02-04 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401081', 'tblTempVendorCDR_20' ) start [2025-02-04 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401081', 'tblTempVendorCDR_20' ) end [2025-02-04 14:49:25] Production.INFO: ProcessCDR(1,14401081,1,1,2) [2025-02-04 14:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401081', 'tblTempUsageDetail_20' ) start [2025-02-04 14:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401081', 'tblTempUsageDetail_20' ) end [2025-02-04 14:49:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:49:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:49:30] Production.INFO: ==496== Releasing lock... [2025-02-04 14:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:49:30] Production.INFO: 63 MB #Memory Used# [2025-02-04 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:50:05 [end_date_ymd] => 2025-02-04 14:50:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 11:50:05' and `end` < '2025-02-04 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-02-04 14:50:22] Production.INFO: count ==4686 [2025-02-04 14:50:24] Production.ERROR: pbx CDR StartTime 2025-02-04 11:50:05 - End Time 2025-02-04 14:50:05 [2025-02-04 14:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401087', 'tblTempUsageDetail_20' ) start [2025-02-04 14:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401087', 'tblTempUsageDetail_20' ) end [2025-02-04 14:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401087', 'tblTempVendorCDR_20' ) start [2025-02-04 14:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401087', 'tblTempVendorCDR_20' ) end [2025-02-04 14:50:24] Production.INFO: ProcessCDR(1,14401087,1,1,2) [2025-02-04 14:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401087', 'tblTempUsageDetail_20' ) start [2025-02-04 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401087', 'tblTempUsageDetail_20' ) end [2025-02-04 14:50:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:50:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:50:28] Production.INFO: ==582== Releasing lock... [2025-02-04 14:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:50:28] Production.INFO: 63 MB #Memory Used# [2025-02-04 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:51:05 [end_date_ymd] => 2025-02-04 14:51:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 11:51:05' and `end` < '2025-02-04 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-02-04 14:51:22] Production.INFO: count ==4704 [2025-02-04 14:51:24] Production.ERROR: pbx CDR StartTime 2025-02-04 11:51:05 - End Time 2025-02-04 14:51:05 [2025-02-04 14:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401092', 'tblTempUsageDetail_20' ) start [2025-02-04 14:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401092', 'tblTempUsageDetail_20' ) end [2025-02-04 14:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401092', 'tblTempVendorCDR_20' ) start [2025-02-04 14:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401092', 'tblTempVendorCDR_20' ) end [2025-02-04 14:51:24] Production.INFO: ProcessCDR(1,14401092,1,1,2) [2025-02-04 14:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401092', 'tblTempUsageDetail_20' ) start [2025-02-04 14:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401092', 'tblTempUsageDetail_20' ) end [2025-02-04 14:51:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:51:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:51:28] Production.INFO: ==673== Releasing lock... [2025-02-04 14:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:51:28] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:52:05 [end_date_ymd] => 2025-02-04 14:52:05 [RateCDR] => 1 ) [2025-02-04 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:52:05' and `end` < '2025-02-04 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:52:19] Production.INFO: count ==4738 [2025-02-04 14:52:21] Production.ERROR: pbx CDR StartTime 2025-02-04 11:52:05 - End Time 2025-02-04 14:52:05 [2025-02-04 14:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401097', 'tblTempUsageDetail_20' ) start [2025-02-04 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401097', 'tblTempUsageDetail_20' ) end [2025-02-04 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401097', 'tblTempVendorCDR_20' ) start [2025-02-04 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401097', 'tblTempVendorCDR_20' ) end [2025-02-04 14:52:21] Production.INFO: ProcessCDR(1,14401097,1,1,2) [2025-02-04 14:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401097', 'tblTempUsageDetail_20' ) start [2025-02-04 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401097', 'tblTempUsageDetail_20' ) end [2025-02-04 14:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:52:26] Production.INFO: ==774== Releasing lock... [2025-02-04 14:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:52:26] Production.INFO: 63.5 MB #Memory Used# [2025-02-04 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:53:05 [end_date_ymd] => 2025-02-04 14:53:05 [RateCDR] => 1 ) [2025-02-04 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:53:05' and `end` < '2025-02-04 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:53:32] Production.INFO: count ==4711 [2025-02-04 14:53:33] Production.ERROR: pbx CDR StartTime 2025-02-04 11:53:05 - End Time 2025-02-04 14:53:05 [2025-02-04 14:53:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:53:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401102', 'tblTempUsageDetail_20' ) start [2025-02-04 14:53:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401102', 'tblTempUsageDetail_20' ) end [2025-02-04 14:53:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401102', 'tblTempVendorCDR_20' ) start [2025-02-04 14:53:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401102', 'tblTempVendorCDR_20' ) end [2025-02-04 14:53:33] Production.INFO: ProcessCDR(1,14401102,1,1,2) [2025-02-04 14:53:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:53:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:53:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:53:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:53:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401102', 'tblTempUsageDetail_20' ) start [2025-02-04 14:53:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401102', 'tblTempUsageDetail_20' ) end [2025-02-04 14:53:38] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:53:38] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:53:38] Production.INFO: ==852== Releasing lock... [2025-02-04 14:53:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:53:38] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:54:05 [end_date_ymd] => 2025-02-04 14:54:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 11:54:05' and `end` < '2025-02-04 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-02-04 14:54:26] Production.INFO: count ==4717 [2025-02-04 14:54:28] Production.ERROR: pbx CDR StartTime 2025-02-04 11:54:05 - End Time 2025-02-04 14:54:05 [2025-02-04 14:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401107', 'tblTempUsageDetail_20' ) start [2025-02-04 14:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401107', 'tblTempUsageDetail_20' ) end [2025-02-04 14:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401107', 'tblTempVendorCDR_20' ) start [2025-02-04 14:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401107', 'tblTempVendorCDR_20' ) end [2025-02-04 14:54:28] Production.INFO: ProcessCDR(1,14401107,1,1,2) [2025-02-04 14:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:54:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:54:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:54:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401107', 'tblTempUsageDetail_20' ) start [2025-02-04 14:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401107', 'tblTempUsageDetail_20' ) end [2025-02-04 14:54:33] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:54:33] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:54:33] Production.INFO: ==928== Releasing lock... [2025-02-04 14:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:54:33] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:55:05 [end_date_ymd] => 2025-02-04 14:55:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 11:55:05' and `end` < '2025-02-04 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-02-04 14:55:25] Production.INFO: count ==4711 [2025-02-04 14:55:27] Production.ERROR: pbx CDR StartTime 2025-02-04 11:55:05 - End Time 2025-02-04 14:55:05 [2025-02-04 14:55:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401112', 'tblTempUsageDetail_20' ) start [2025-02-04 14:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401112', 'tblTempUsageDetail_20' ) end [2025-02-04 14:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401112', 'tblTempVendorCDR_20' ) start [2025-02-04 14:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401112', 'tblTempVendorCDR_20' ) end [2025-02-04 14:55:27] Production.INFO: ProcessCDR(1,14401112,1,1,2) [2025-02-04 14:55:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:55:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:55:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:55:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401112', 'tblTempUsageDetail_20' ) start [2025-02-04 14:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401112', 'tblTempUsageDetail_20' ) end [2025-02-04 14:55:33] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:55:33] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:55:33] Production.INFO: ==1005== Releasing lock... [2025-02-04 14:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:55:33] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:56:06 [end_date_ymd] => 2025-02-04 14:56:06 [RateCDR] => 1 ) [2025-02-04 14:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:56:06' and `end` < '2025-02-04 14:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:56:26] Production.INFO: count ==4736 [2025-02-04 14:56:28] Production.ERROR: pbx CDR StartTime 2025-02-04 11:56:06 - End Time 2025-02-04 14:56:06 [2025-02-04 14:56:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401117', 'tblTempUsageDetail_20' ) start [2025-02-04 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401117', 'tblTempUsageDetail_20' ) end [2025-02-04 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401117', 'tblTempVendorCDR_20' ) start [2025-02-04 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401117', 'tblTempVendorCDR_20' ) end [2025-02-04 14:56:28] Production.INFO: ProcessCDR(1,14401117,1,1,2) [2025-02-04 14:56:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:56:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:56:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:56:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401117', 'tblTempUsageDetail_20' ) start [2025-02-04 14:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401117', 'tblTempUsageDetail_20' ) end [2025-02-04 14:56:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:56:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:56:32] Production.INFO: ==1081== Releasing lock... [2025-02-04 14:56:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:56:32] Production.INFO: 63.5 MB #Memory Used# [2025-02-04 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:57:05 [end_date_ymd] => 2025-02-04 14:57:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 11:57:05' and `end` < '2025-02-04 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-02-04 14:57:26] Production.INFO: count ==4736 [2025-02-04 14:57:28] Production.ERROR: pbx CDR StartTime 2025-02-04 11:57:05 - End Time 2025-02-04 14:57:05 [2025-02-04 14:57:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401122', 'tblTempUsageDetail_20' ) start [2025-02-04 14:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401122', 'tblTempUsageDetail_20' ) end [2025-02-04 14:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401122', 'tblTempVendorCDR_20' ) start [2025-02-04 14:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401122', 'tblTempVendorCDR_20' ) end [2025-02-04 14:57:28] Production.INFO: ProcessCDR(1,14401122,1,1,2) [2025-02-04 14:57:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:57:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:57:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:57:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401122', 'tblTempUsageDetail_20' ) start [2025-02-04 14:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401122', 'tblTempUsageDetail_20' ) end [2025-02-04 14:57:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:57:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:57:31] Production.INFO: ==1161== Releasing lock... [2025-02-04 14:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:57:31] Production.INFO: 63.5 MB #Memory Used# [2025-02-04 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:58:05 [end_date_ymd] => 2025-02-04 14:58:05 [RateCDR] => 1 ) [2025-02-04 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 11:58:05' and `end` < '2025-02-04 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 14:58:22] Production.INFO: count ==4727 [2025-02-04 14:58:24] Production.ERROR: pbx CDR StartTime 2025-02-04 11:58:05 - End Time 2025-02-04 14:58:05 [2025-02-04 14:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401127', 'tblTempUsageDetail_20' ) start [2025-02-04 14:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401127', 'tblTempUsageDetail_20' ) end [2025-02-04 14:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401127', 'tblTempVendorCDR_20' ) start [2025-02-04 14:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401127', 'tblTempVendorCDR_20' ) end [2025-02-04 14:58:24] Production.INFO: ProcessCDR(1,14401127,1,1,2) [2025-02-04 14:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401127', 'tblTempUsageDetail_20' ) start [2025-02-04 14:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401127', 'tblTempUsageDetail_20' ) end [2025-02-04 14:58:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:58:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:58:29] Production.INFO: ==1289== Releasing lock... [2025-02-04 14:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:58:29] Production.INFO: 63.5 MB #Memory Used# [2025-02-04 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 11:59:05 [end_date_ymd] => 2025-02-04 14:59:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 11:59:05' and `end` < '2025-02-04 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-02-04 14:59:20] Production.INFO: count ==4723 [2025-02-04 14:59:22] Production.ERROR: pbx CDR StartTime 2025-02-04 11:59:05 - End Time 2025-02-04 14:59:05 [2025-02-04 14:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401132', 'tblTempUsageDetail_20' ) start [2025-02-04 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401132', 'tblTempUsageDetail_20' ) end [2025-02-04 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401132', 'tblTempVendorCDR_20' ) start [2025-02-04 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401132', 'tblTempVendorCDR_20' ) end [2025-02-04 14:59:22] Production.INFO: ProcessCDR(1,14401132,1,1,2) [2025-02-04 14:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 14:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401132', 'tblTempUsageDetail_20' ) start [2025-02-04 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401132', 'tblTempUsageDetail_20' ) end [2025-02-04 14:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 14:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 14:59:26] Production.INFO: ==1361== Releasing lock... [2025-02-04 14:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 14:59:26] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:00:06 [end_date_ymd] => 2025-02-04 15:00:06 [RateCDR] => 1 ) [2025-02-04 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:00:06' and `end` < '2025-02-04 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:00:28] Production.INFO: count ==4712 [2025-02-04 15:00:30] Production.ERROR: pbx CDR StartTime 2025-02-04 12:00:06 - End Time 2025-02-04 15:00:06 [2025-02-04 15:00:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401138', 'tblTempUsageDetail_20' ) start [2025-02-04 15:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401138', 'tblTempUsageDetail_20' ) end [2025-02-04 15:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401138', 'tblTempVendorCDR_20' ) start [2025-02-04 15:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401138', 'tblTempVendorCDR_20' ) end [2025-02-04 15:00:30] Production.INFO: ProcessCDR(1,14401138,1,1,2) [2025-02-04 15:00:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:00:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:00:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401138', 'tblTempUsageDetail_20' ) start [2025-02-04 15:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401138', 'tblTempUsageDetail_20' ) end [2025-02-04 15:00:35] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:00:35] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:00:35] Production.INFO: ==1439== Releasing lock... [2025-02-04 15:00:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:00:35] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:01:05 [end_date_ymd] => 2025-02-04 15:01:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 12:01:05' and `end` < '2025-02-04 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-02-04 15:01:26] Production.INFO: count ==4693 [2025-02-04 15:01:28] Production.ERROR: pbx CDR StartTime 2025-02-04 12:01:05 - End Time 2025-02-04 15:01:05 [2025-02-04 15:01:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401143', 'tblTempUsageDetail_20' ) start [2025-02-04 15:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401143', 'tblTempUsageDetail_20' ) end [2025-02-04 15:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401143', 'tblTempVendorCDR_20' ) start [2025-02-04 15:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401143', 'tblTempVendorCDR_20' ) end [2025-02-04 15:01:28] Production.INFO: ProcessCDR(1,14401143,1,1,2) [2025-02-04 15:01:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:01:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:01:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401143', 'tblTempUsageDetail_20' ) start [2025-02-04 15:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401143', 'tblTempUsageDetail_20' ) end [2025-02-04 15:01:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:01:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:01:32] Production.INFO: ==1606== Releasing lock... [2025-02-04 15:01:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:01:32] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:02:05 [end_date_ymd] => 2025-02-04 15:02:05 [RateCDR] => 1 ) [2025-02-04 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:02:05' and `end` < '2025-02-04 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:02:20] Production.INFO: count ==4691 [2025-02-04 15:02:22] Production.ERROR: pbx CDR StartTime 2025-02-04 12:02:05 - End Time 2025-02-04 15:02:05 [2025-02-04 15:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401148', 'tblTempUsageDetail_20' ) start [2025-02-04 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401148', 'tblTempUsageDetail_20' ) end [2025-02-04 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401148', 'tblTempVendorCDR_20' ) start [2025-02-04 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401148', 'tblTempVendorCDR_20' ) end [2025-02-04 15:02:22] Production.INFO: ProcessCDR(1,14401148,1,1,2) [2025-02-04 15:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401148', 'tblTempUsageDetail_20' ) start [2025-02-04 15:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401148', 'tblTempUsageDetail_20' ) end [2025-02-04 15:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:02:26] Production.INFO: ==1717== Releasing lock... [2025-02-04 15:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:02:26] Production.INFO: 63 MB #Memory Used# [2025-02-04 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:03:05 [end_date_ymd] => 2025-02-04 15:03:05 [RateCDR] => 1 ) [2025-02-04 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:03:05' and `end` < '2025-02-04 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:03:24] Production.INFO: count ==4700 [2025-02-04 15:03:26] Production.ERROR: pbx CDR StartTime 2025-02-04 12:03:05 - End Time 2025-02-04 15:03:05 [2025-02-04 15:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401153', 'tblTempUsageDetail_20' ) start [2025-02-04 15:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401153', 'tblTempUsageDetail_20' ) end [2025-02-04 15:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401153', 'tblTempVendorCDR_20' ) start [2025-02-04 15:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401153', 'tblTempVendorCDR_20' ) end [2025-02-04 15:03:26] Production.INFO: ProcessCDR(1,14401153,1,1,2) [2025-02-04 15:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401153', 'tblTempUsageDetail_20' ) start [2025-02-04 15:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401153', 'tblTempUsageDetail_20' ) end [2025-02-04 15:03:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:03:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:03:31] Production.INFO: ==1788== Releasing lock... [2025-02-04 15:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:03:31] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:04:05 [end_date_ymd] => 2025-02-04 15:04:05 [RateCDR] => 1 ) [2025-02-04 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:04:05' and `end` < '2025-02-04 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:04:23] Production.INFO: count ==4717 [2025-02-04 15:04:25] Production.ERROR: pbx CDR StartTime 2025-02-04 12:04:05 - End Time 2025-02-04 15:04:05 [2025-02-04 15:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401158', 'tblTempUsageDetail_20' ) start [2025-02-04 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401158', 'tblTempUsageDetail_20' ) end [2025-02-04 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401158', 'tblTempVendorCDR_20' ) start [2025-02-04 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401158', 'tblTempVendorCDR_20' ) end [2025-02-04 15:04:25] Production.INFO: ProcessCDR(1,14401158,1,1,2) [2025-02-04 15:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401158', 'tblTempUsageDetail_20' ) start [2025-02-04 15:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401158', 'tblTempUsageDetail_20' ) end [2025-02-04 15:04:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:04:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:04:29] Production.INFO: ==1867== Releasing lock... [2025-02-04 15:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:04:29] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:05:05 [end_date_ymd] => 2025-02-04 15:05:05 [RateCDR] => 1 ) [2025-02-04 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:05:05' and `end` < '2025-02-04 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:05:26] Production.INFO: count ==4690 [2025-02-04 15:05:28] Production.ERROR: pbx CDR StartTime 2025-02-04 12:05:05 - End Time 2025-02-04 15:05:05 [2025-02-04 15:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401163', 'tblTempUsageDetail_20' ) start [2025-02-04 15:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401163', 'tblTempUsageDetail_20' ) end [2025-02-04 15:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401163', 'tblTempVendorCDR_20' ) start [2025-02-04 15:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401163', 'tblTempVendorCDR_20' ) end [2025-02-04 15:05:28] Production.INFO: ProcessCDR(1,14401163,1,1,2) [2025-02-04 15:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401163', 'tblTempUsageDetail_20' ) start [2025-02-04 15:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401163', 'tblTempUsageDetail_20' ) end [2025-02-04 15:05:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:05:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:05:32] Production.INFO: ==2025== Releasing lock... [2025-02-04 15:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:05:32] Production.INFO: 63 MB #Memory Used# [2025-02-04 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:06:05 [end_date_ymd] => 2025-02-04 15:06:05 [RateCDR] => 1 ) [2025-02-04 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:06:05' and `end` < '2025-02-04 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:06:20] Production.INFO: count ==4697 [2025-02-04 15:06:22] Production.ERROR: pbx CDR StartTime 2025-02-04 12:06:05 - End Time 2025-02-04 15:06:05 [2025-02-04 15:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401168', 'tblTempUsageDetail_20' ) start [2025-02-04 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401168', 'tblTempUsageDetail_20' ) end [2025-02-04 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401168', 'tblTempVendorCDR_20' ) start [2025-02-04 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401168', 'tblTempVendorCDR_20' ) end [2025-02-04 15:06:22] Production.INFO: ProcessCDR(1,14401168,1,1,2) [2025-02-04 15:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401168', 'tblTempUsageDetail_20' ) start [2025-02-04 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401168', 'tblTempUsageDetail_20' ) end [2025-02-04 15:06:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:06:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:06:27] Production.INFO: ==2103== Releasing lock... [2025-02-04 15:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:06:27] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:07:05 [end_date_ymd] => 2025-02-04 15:07:05 [RateCDR] => 1 ) [2025-02-04 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:07:05' and `end` < '2025-02-04 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:07:21] Production.INFO: count ==4707 [2025-02-04 15:07:23] Production.ERROR: pbx CDR StartTime 2025-02-04 12:07:05 - End Time 2025-02-04 15:07:05 [2025-02-04 15:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401173', 'tblTempUsageDetail_20' ) start [2025-02-04 15:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401173', 'tblTempUsageDetail_20' ) end [2025-02-04 15:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401173', 'tblTempVendorCDR_20' ) start [2025-02-04 15:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401173', 'tblTempVendorCDR_20' ) end [2025-02-04 15:07:23] Production.INFO: ProcessCDR(1,14401173,1,1,2) [2025-02-04 15:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401173', 'tblTempUsageDetail_20' ) start [2025-02-04 15:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401173', 'tblTempUsageDetail_20' ) end [2025-02-04 15:07:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:07:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:07:28] Production.INFO: ==2187== Releasing lock... [2025-02-04 15:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:07:28] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:08:05 [end_date_ymd] => 2025-02-04 15:08:05 [RateCDR] => 1 ) [2025-02-04 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:08:05' and `end` < '2025-02-04 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:08:26] Production.INFO: count ==4714 [2025-02-04 15:08:28] Production.ERROR: pbx CDR StartTime 2025-02-04 12:08:05 - End Time 2025-02-04 15:08:05 [2025-02-04 15:08:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401178', 'tblTempUsageDetail_20' ) start [2025-02-04 15:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401178', 'tblTempUsageDetail_20' ) end [2025-02-04 15:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401178', 'tblTempVendorCDR_20' ) start [2025-02-04 15:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401178', 'tblTempVendorCDR_20' ) end [2025-02-04 15:08:28] Production.INFO: ProcessCDR(1,14401178,1,1,2) [2025-02-04 15:08:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:08:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:08:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:08:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401178', 'tblTempUsageDetail_20' ) start [2025-02-04 15:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401178', 'tblTempUsageDetail_20' ) end [2025-02-04 15:08:33] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:08:33] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:08:33] Production.INFO: ==2338== Releasing lock... [2025-02-04 15:08:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:08:33] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 15:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:09:06 [end_date_ymd] => 2025-02-04 15:09:06 [RateCDR] => 1 ) [2025-02-04 15:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:09:06' and `end` < '2025-02-04 15:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:09:23] Production.INFO: count ==4719 [2025-02-04 15:09:25] Production.ERROR: pbx CDR StartTime 2025-02-04 12:09:06 - End Time 2025-02-04 15:09:06 [2025-02-04 15:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401183', 'tblTempUsageDetail_20' ) start [2025-02-04 15:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401183', 'tblTempUsageDetail_20' ) end [2025-02-04 15:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401183', 'tblTempVendorCDR_20' ) start [2025-02-04 15:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401183', 'tblTempVendorCDR_20' ) end [2025-02-04 15:09:25] Production.INFO: ProcessCDR(1,14401183,1,1,2) [2025-02-04 15:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401183', 'tblTempUsageDetail_20' ) start [2025-02-04 15:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401183', 'tblTempUsageDetail_20' ) end [2025-02-04 15:09:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:09:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:09:30] Production.INFO: ==2411== Releasing lock... [2025-02-04 15:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:09:30] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 15:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:10:05 [end_date_ymd] => 2025-02-04 15:10:05 [RateCDR] => 1 ) [2025-02-04 15:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:10:05' and `end` < '2025-02-04 15:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:10:27] Production.INFO: count ==4729 [2025-02-04 15:10:29] Production.ERROR: pbx CDR StartTime 2025-02-04 12:10:05 - End Time 2025-02-04 15:10:05 [2025-02-04 15:10:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401189', 'tblTempUsageDetail_20' ) start [2025-02-04 15:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401189', 'tblTempUsageDetail_20' ) end [2025-02-04 15:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401189', 'tblTempVendorCDR_20' ) start [2025-02-04 15:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401189', 'tblTempVendorCDR_20' ) end [2025-02-04 15:10:29] Production.INFO: ProcessCDR(1,14401189,1,1,2) [2025-02-04 15:10:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401189', 'tblTempUsageDetail_20' ) start [2025-02-04 15:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401189', 'tblTempUsageDetail_20' ) end [2025-02-04 15:10:34] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:10:34] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:10:34] Production.INFO: ==2485== Releasing lock... [2025-02-04 15:10:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:10:34] Production.INFO: 63.5 MB #Memory Used# [2025-02-04 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:11:05 [end_date_ymd] => 2025-02-04 15:11:05 [RateCDR] => 1 ) [2025-02-04 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:11:05' and `end` < '2025-02-04 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:11:23] Production.INFO: count ==4721 [2025-02-04 15:11:25] Production.ERROR: pbx CDR StartTime 2025-02-04 12:11:05 - End Time 2025-02-04 15:11:05 [2025-02-04 15:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401194', 'tblTempUsageDetail_20' ) start [2025-02-04 15:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401194', 'tblTempUsageDetail_20' ) end [2025-02-04 15:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401194', 'tblTempVendorCDR_20' ) start [2025-02-04 15:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401194', 'tblTempVendorCDR_20' ) end [2025-02-04 15:11:26] Production.INFO: ProcessCDR(1,14401194,1,1,2) [2025-02-04 15:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401194', 'tblTempUsageDetail_20' ) start [2025-02-04 15:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401194', 'tblTempUsageDetail_20' ) end [2025-02-04 15:11:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:11:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:11:30] Production.INFO: ==2564== Releasing lock... [2025-02-04 15:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:11:30] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:12:05 [end_date_ymd] => 2025-02-04 15:12:05 [RateCDR] => 1 ) [2025-02-04 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:12:05' and `end` < '2025-02-04 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:12:20] Production.INFO: count ==4712 [2025-02-04 15:12:22] Production.ERROR: pbx CDR StartTime 2025-02-04 12:12:05 - End Time 2025-02-04 15:12:05 [2025-02-04 15:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401199', 'tblTempUsageDetail_20' ) start [2025-02-04 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401199', 'tblTempUsageDetail_20' ) end [2025-02-04 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401199', 'tblTempVendorCDR_20' ) start [2025-02-04 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401199', 'tblTempVendorCDR_20' ) end [2025-02-04 15:12:22] Production.INFO: ProcessCDR(1,14401199,1,1,2) [2025-02-04 15:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401199', 'tblTempUsageDetail_20' ) start [2025-02-04 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401199', 'tblTempUsageDetail_20' ) end [2025-02-04 15:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:12:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:12:27] Production.INFO: ==2718== Releasing lock... [2025-02-04 15:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:12:27] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:13:05 [end_date_ymd] => 2025-02-04 15:13:05 [RateCDR] => 1 ) [2025-02-04 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:13:05' and `end` < '2025-02-04 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:13:23] Production.INFO: count ==4706 [2025-02-04 15:13:25] Production.ERROR: pbx CDR StartTime 2025-02-04 12:13:05 - End Time 2025-02-04 15:13:05 [2025-02-04 15:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401204', 'tblTempUsageDetail_20' ) start [2025-02-04 15:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401204', 'tblTempUsageDetail_20' ) end [2025-02-04 15:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401204', 'tblTempVendorCDR_20' ) start [2025-02-04 15:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401204', 'tblTempVendorCDR_20' ) end [2025-02-04 15:13:25] Production.INFO: ProcessCDR(1,14401204,1,1,2) [2025-02-04 15:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401204', 'tblTempUsageDetail_20' ) start [2025-02-04 15:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401204', 'tblTempUsageDetail_20' ) end [2025-02-04 15:13:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:13:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:13:30] Production.INFO: ==2830== Releasing lock... [2025-02-04 15:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:13:30] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 15:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:14:06 [end_date_ymd] => 2025-02-04 15:14:06 [RateCDR] => 1 ) [2025-02-04 15:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:14:06' and `end` < '2025-02-04 15:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:14:24] Production.INFO: count ==4708 [2025-02-04 15:14:26] Production.ERROR: pbx CDR StartTime 2025-02-04 12:14:06 - End Time 2025-02-04 15:14:06 [2025-02-04 15:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401209', 'tblTempUsageDetail_20' ) start [2025-02-04 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401209', 'tblTempUsageDetail_20' ) end [2025-02-04 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401209', 'tblTempVendorCDR_20' ) start [2025-02-04 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401209', 'tblTempVendorCDR_20' ) end [2025-02-04 15:14:26] Production.INFO: ProcessCDR(1,14401209,1,1,2) [2025-02-04 15:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:14:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:14:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:14:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401209', 'tblTempUsageDetail_20' ) start [2025-02-04 15:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401209', 'tblTempUsageDetail_20' ) end [2025-02-04 15:14:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:14:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:14:31] Production.INFO: ==2904== Releasing lock... [2025-02-04 15:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:14:31] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:15:05 [end_date_ymd] => 2025-02-04 15:15:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 12:15:05' and `end` < '2025-02-04 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-02-04 15:15:26] Production.INFO: count ==4703 [2025-02-04 15:15:28] Production.ERROR: pbx CDR StartTime 2025-02-04 12:15:05 - End Time 2025-02-04 15:15:05 [2025-02-04 15:15:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401214', 'tblTempUsageDetail_20' ) start [2025-02-04 15:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401214', 'tblTempUsageDetail_20' ) end [2025-02-04 15:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401214', 'tblTempVendorCDR_20' ) start [2025-02-04 15:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401214', 'tblTempVendorCDR_20' ) end [2025-02-04 15:15:28] Production.INFO: ProcessCDR(1,14401214,1,1,2) [2025-02-04 15:15:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:15:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:15:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:15:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401214', 'tblTempUsageDetail_20' ) start [2025-02-04 15:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401214', 'tblTempUsageDetail_20' ) end [2025-02-04 15:15:33] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:15:33] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:15:33] Production.INFO: ==3057== Releasing lock... [2025-02-04 15:15:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:15:33] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:16:05 [end_date_ymd] => 2025-02-04 15:16:05 [RateCDR] => 1 ) [2025-02-04 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:16:05' and `end` < '2025-02-04 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:16:29] Production.INFO: count ==4703 [2025-02-04 15:16:30] Production.ERROR: pbx CDR StartTime 2025-02-04 12:16:05 - End Time 2025-02-04 15:16:05 [2025-02-04 15:16:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401219', 'tblTempUsageDetail_20' ) start [2025-02-04 15:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401219', 'tblTempUsageDetail_20' ) end [2025-02-04 15:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401219', 'tblTempVendorCDR_20' ) start [2025-02-04 15:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401219', 'tblTempVendorCDR_20' ) end [2025-02-04 15:16:31] Production.INFO: ProcessCDR(1,14401219,1,1,2) [2025-02-04 15:16:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:16:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:16:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:16:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:16:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401219', 'tblTempUsageDetail_20' ) start [2025-02-04 15:16:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401219', 'tblTempUsageDetail_20' ) end [2025-02-04 15:16:35] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:16:35] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:16:35] Production.INFO: ==3132== Releasing lock... [2025-02-04 15:16:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:16:35] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:17:05 [end_date_ymd] => 2025-02-04 15:17:05 [RateCDR] => 1 ) [2025-02-04 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:17:05' and `end` < '2025-02-04 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:17:24] Production.INFO: count ==4684 [2025-02-04 15:17:26] Production.ERROR: pbx CDR StartTime 2025-02-04 12:17:05 - End Time 2025-02-04 15:17:05 [2025-02-04 15:17:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401224', 'tblTempUsageDetail_20' ) start [2025-02-04 15:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401224', 'tblTempUsageDetail_20' ) end [2025-02-04 15:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401224', 'tblTempVendorCDR_20' ) start [2025-02-04 15:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401224', 'tblTempVendorCDR_20' ) end [2025-02-04 15:17:26] Production.INFO: ProcessCDR(1,14401224,1,1,2) [2025-02-04 15:17:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:17:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:17:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:17:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401224', 'tblTempUsageDetail_20' ) start [2025-02-04 15:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401224', 'tblTempUsageDetail_20' ) end [2025-02-04 15:17:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:17:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:17:31] Production.INFO: ==3203== Releasing lock... [2025-02-04 15:17:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:17:31] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:18:05 [end_date_ymd] => 2025-02-04 15:18:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 12:18:05' and `end` < '2025-02-04 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-02-04 15:18:22] Production.INFO: count ==4652 [2025-02-04 15:18:24] Production.ERROR: pbx CDR StartTime 2025-02-04 12:18:05 - End Time 2025-02-04 15:18:05 [2025-02-04 15:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401229', 'tblTempUsageDetail_20' ) start [2025-02-04 15:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401229', 'tblTempUsageDetail_20' ) end [2025-02-04 15:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401229', 'tblTempVendorCDR_20' ) start [2025-02-04 15:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401229', 'tblTempVendorCDR_20' ) end [2025-02-04 15:18:24] Production.INFO: ProcessCDR(1,14401229,1,1,2) [2025-02-04 15:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401229', 'tblTempUsageDetail_20' ) start [2025-02-04 15:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401229', 'tblTempUsageDetail_20' ) end [2025-02-04 15:18:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:18:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:18:29] Production.INFO: ==3280== Releasing lock... [2025-02-04 15:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:18:29] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:19:05 [end_date_ymd] => 2025-02-04 15:19:05 [RateCDR] => 1 ) [2025-02-04 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:19:05' and `end` < '2025-02-04 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:19:23] Production.INFO: count ==4637 [2025-02-04 15:19:25] Production.ERROR: pbx CDR StartTime 2025-02-04 12:19:05 - End Time 2025-02-04 15:19:05 [2025-02-04 15:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401234', 'tblTempUsageDetail_20' ) start [2025-02-04 15:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401234', 'tblTempUsageDetail_20' ) end [2025-02-04 15:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401234', 'tblTempVendorCDR_20' ) start [2025-02-04 15:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401234', 'tblTempVendorCDR_20' ) end [2025-02-04 15:19:25] Production.INFO: ProcessCDR(1,14401234,1,1,2) [2025-02-04 15:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401234', 'tblTempUsageDetail_20' ) start [2025-02-04 15:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401234', 'tblTempUsageDetail_20' ) end [2025-02-04 15:19:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:19:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:19:30] Production.INFO: ==3354== Releasing lock... [2025-02-04 15:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:19:30] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:20:06 [end_date_ymd] => 2025-02-04 15:20:06 [RateCDR] => 1 ) [2025-02-04 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:20:06' and `end` < '2025-02-04 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:20:24] Production.INFO: count ==4644 [2025-02-04 15:20:26] Production.ERROR: pbx CDR StartTime 2025-02-04 12:20:06 - End Time 2025-02-04 15:20:06 [2025-02-04 15:20:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401240', 'tblTempUsageDetail_20' ) start [2025-02-04 15:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401240', 'tblTempUsageDetail_20' ) end [2025-02-04 15:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401240', 'tblTempVendorCDR_20' ) start [2025-02-04 15:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401240', 'tblTempVendorCDR_20' ) end [2025-02-04 15:20:26] Production.INFO: ProcessCDR(1,14401240,1,1,2) [2025-02-04 15:20:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:20:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:20:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:20:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401240', 'tblTempUsageDetail_20' ) start [2025-02-04 15:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401240', 'tblTempUsageDetail_20' ) end [2025-02-04 15:20:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:20:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:20:31] Production.INFO: ==3433== Releasing lock... [2025-02-04 15:20:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:20:31] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:21:05 [end_date_ymd] => 2025-02-04 15:21:05 [RateCDR] => 1 ) [2025-02-04 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:21:05' and `end` < '2025-02-04 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:21:22] Production.INFO: count ==4613 [2025-02-04 15:21:24] Production.ERROR: pbx CDR StartTime 2025-02-04 12:21:05 - End Time 2025-02-04 15:21:05 [2025-02-04 15:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401243', 'tblTempUsageDetail_20' ) start [2025-02-04 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401243', 'tblTempUsageDetail_20' ) end [2025-02-04 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401243', 'tblTempVendorCDR_20' ) start [2025-02-04 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401243', 'tblTempVendorCDR_20' ) end [2025-02-04 15:21:24] Production.INFO: ProcessCDR(1,14401243,1,1,2) [2025-02-04 15:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401243', 'tblTempUsageDetail_20' ) start [2025-02-04 15:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401243', 'tblTempUsageDetail_20' ) end [2025-02-04 15:21:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:21:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:21:28] Production.INFO: ==3509== Releasing lock... [2025-02-04 15:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:21:28] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:22:05 [end_date_ymd] => 2025-02-04 15:22:05 [RateCDR] => 1 ) [2025-02-04 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:22:05' and `end` < '2025-02-04 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:22:23] Production.INFO: count ==4608 [2025-02-04 15:22:26] Production.ERROR: pbx CDR StartTime 2025-02-04 12:22:05 - End Time 2025-02-04 15:22:05 [2025-02-04 15:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401250', 'tblTempUsageDetail_20' ) start [2025-02-04 15:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401250', 'tblTempUsageDetail_20' ) end [2025-02-04 15:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401250', 'tblTempVendorCDR_20' ) start [2025-02-04 15:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401250', 'tblTempVendorCDR_20' ) end [2025-02-04 15:22:26] Production.INFO: ProcessCDR(1,14401250,1,1,2) [2025-02-04 15:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:22:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:22:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401250', 'tblTempUsageDetail_20' ) start [2025-02-04 15:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401250', 'tblTempUsageDetail_20' ) end [2025-02-04 15:22:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:22:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:22:31] Production.INFO: ==3583== Releasing lock... [2025-02-04 15:22:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:22:31] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:23:05 [end_date_ymd] => 2025-02-04 15:23:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 12:23:05' and `end` < '2025-02-04 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-02-04 15:23:22] Production.INFO: count ==4609 [2025-02-04 15:23:24] Production.ERROR: pbx CDR StartTime 2025-02-04 12:23:05 - End Time 2025-02-04 15:23:05 [2025-02-04 15:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401255', 'tblTempUsageDetail_20' ) start [2025-02-04 15:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401255', 'tblTempUsageDetail_20' ) end [2025-02-04 15:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401255', 'tblTempVendorCDR_20' ) start [2025-02-04 15:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401255', 'tblTempVendorCDR_20' ) end [2025-02-04 15:23:24] Production.INFO: ProcessCDR(1,14401255,1,1,2) [2025-02-04 15:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401255', 'tblTempUsageDetail_20' ) start [2025-02-04 15:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401255', 'tblTempUsageDetail_20' ) end [2025-02-04 15:23:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:23:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:23:29] Production.INFO: ==3657== Releasing lock... [2025-02-04 15:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:23:29] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:24:05 [end_date_ymd] => 2025-02-04 15:24:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 12:24:05' and `end` < '2025-02-04 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-02-04 15:24:20] Production.INFO: count ==4606 [2025-02-04 15:24:22] Production.ERROR: pbx CDR StartTime 2025-02-04 12:24:05 - End Time 2025-02-04 15:24:05 [2025-02-04 15:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401260', 'tblTempUsageDetail_20' ) start [2025-02-04 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401260', 'tblTempUsageDetail_20' ) end [2025-02-04 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401260', 'tblTempVendorCDR_20' ) start [2025-02-04 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401260', 'tblTempVendorCDR_20' ) end [2025-02-04 15:24:22] Production.INFO: ProcessCDR(1,14401260,1,1,2) [2025-02-04 15:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401260', 'tblTempUsageDetail_20' ) start [2025-02-04 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401260', 'tblTempUsageDetail_20' ) end [2025-02-04 15:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:24:27] Production.INFO: ==3734== Releasing lock... [2025-02-04 15:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:24:27] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:25:06 [end_date_ymd] => 2025-02-04 15:25:06 [RateCDR] => 1 ) [2025-02-04 15:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:25:06' and `end` < '2025-02-04 15:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:25:25] Production.INFO: count ==4602 [2025-02-04 15:25:26] Production.ERROR: pbx CDR StartTime 2025-02-04 12:25:06 - End Time 2025-02-04 15:25:06 [2025-02-04 15:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401265', 'tblTempUsageDetail_20' ) start [2025-02-04 15:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401265', 'tblTempUsageDetail_20' ) end [2025-02-04 15:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401265', 'tblTempVendorCDR_20' ) start [2025-02-04 15:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401265', 'tblTempVendorCDR_20' ) end [2025-02-04 15:25:26] Production.INFO: ProcessCDR(1,14401265,1,1,2) [2025-02-04 15:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401265', 'tblTempUsageDetail_20' ) start [2025-02-04 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401265', 'tblTempUsageDetail_20' ) end [2025-02-04 15:25:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:25:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:25:31] Production.INFO: ==3807== Releasing lock... [2025-02-04 15:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:25:31] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 15:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:26:04 [end_date_ymd] => 2025-02-04 15:26:04 [RateCDR] => 1 ) [2025-02-04 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-02-04 12:26:04' and `end` < '2025-02-04 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-02-04 15:26:21] Production.INFO: count ==4603 [2025-02-04 15:26:23] Production.ERROR: pbx CDR StartTime 2025-02-04 12:26:04 - End Time 2025-02-04 15:26:04 [2025-02-04 15:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401270', 'tblTempUsageDetail_20' ) start [2025-02-04 15:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401270', 'tblTempUsageDetail_20' ) end [2025-02-04 15:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401270', 'tblTempVendorCDR_20' ) start [2025-02-04 15:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401270', 'tblTempVendorCDR_20' ) end [2025-02-04 15:26:23] Production.INFO: ProcessCDR(1,14401270,1,1,2) [2025-02-04 15:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401270', 'tblTempUsageDetail_20' ) start [2025-02-04 15:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401270', 'tblTempUsageDetail_20' ) end [2025-02-04 15:26:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:26:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:26:28] Production.INFO: ==3884== Releasing lock... [2025-02-04 15:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:26:28] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:27:05 [end_date_ymd] => 2025-02-04 15:27:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 12:27:05' and `end` < '2025-02-04 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-02-04 15:27:20] Production.INFO: count ==4607 [2025-02-04 15:27:21] Production.ERROR: pbx CDR StartTime 2025-02-04 12:27:05 - End Time 2025-02-04 15:27:05 [2025-02-04 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401275', 'tblTempUsageDetail_20' ) start [2025-02-04 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401275', 'tblTempUsageDetail_20' ) end [2025-02-04 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401275', 'tblTempVendorCDR_20' ) start [2025-02-04 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401275', 'tblTempVendorCDR_20' ) end [2025-02-04 15:27:22] Production.INFO: ProcessCDR(1,14401275,1,1,2) [2025-02-04 15:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401275', 'tblTempUsageDetail_20' ) start [2025-02-04 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401275', 'tblTempUsageDetail_20' ) end [2025-02-04 15:27:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:27:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:27:26] Production.INFO: ==3957== Releasing lock... [2025-02-04 15:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:27:26] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 15:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:28:06 [end_date_ymd] => 2025-02-04 15:28:06 [RateCDR] => 1 ) [2025-02-04 15:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:28:06' and `end` < '2025-02-04 15:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:28:22] Production.INFO: count ==4570 [2025-02-04 15:28:24] Production.ERROR: pbx CDR StartTime 2025-02-04 12:28:06 - End Time 2025-02-04 15:28:06 [2025-02-04 15:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401280', 'tblTempUsageDetail_20' ) start [2025-02-04 15:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401280', 'tblTempUsageDetail_20' ) end [2025-02-04 15:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401280', 'tblTempVendorCDR_20' ) start [2025-02-04 15:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401280', 'tblTempVendorCDR_20' ) end [2025-02-04 15:28:24] Production.INFO: ProcessCDR(1,14401280,1,1,2) [2025-02-04 15:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401280', 'tblTempUsageDetail_20' ) start [2025-02-04 15:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401280', 'tblTempUsageDetail_20' ) end [2025-02-04 15:28:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:28:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:28:29] Production.INFO: ==4038== Releasing lock... [2025-02-04 15:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:28:29] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:29:05 [end_date_ymd] => 2025-02-04 15:29:05 [RateCDR] => 1 ) [2025-02-04 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:29:05' and `end` < '2025-02-04 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:29:20] Production.INFO: count ==4541 [2025-02-04 15:29:21] Production.ERROR: pbx CDR StartTime 2025-02-04 12:29:05 - End Time 2025-02-04 15:29:05 [2025-02-04 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401285', 'tblTempUsageDetail_20' ) start [2025-02-04 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401285', 'tblTempUsageDetail_20' ) end [2025-02-04 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401285', 'tblTempVendorCDR_20' ) start [2025-02-04 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401285', 'tblTempVendorCDR_20' ) end [2025-02-04 15:29:22] Production.INFO: ProcessCDR(1,14401285,1,1,2) [2025-02-04 15:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401285', 'tblTempUsageDetail_20' ) start [2025-02-04 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401285', 'tblTempUsageDetail_20' ) end [2025-02-04 15:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:29:26] Production.INFO: ==4152== Releasing lock... [2025-02-04 15:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:29:26] Production.INFO: 62 MB #Memory Used# [2025-02-04 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:30:06 [end_date_ymd] => 2025-02-04 15:30:06 [RateCDR] => 1 ) [2025-02-04 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:30:06' and `end` < '2025-02-04 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:30:20] Production.INFO: count ==4539 [2025-02-04 15:30:22] Production.ERROR: pbx CDR StartTime 2025-02-04 12:30:06 - End Time 2025-02-04 15:30:06 [2025-02-04 15:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401290', 'tblTempUsageDetail_20' ) start [2025-02-04 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401290', 'tblTempUsageDetail_20' ) end [2025-02-04 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401290', 'tblTempVendorCDR_20' ) start [2025-02-04 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401290', 'tblTempVendorCDR_20' ) end [2025-02-04 15:30:22] Production.INFO: ProcessCDR(1,14401290,1,1,2) [2025-02-04 15:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401290', 'tblTempUsageDetail_20' ) start [2025-02-04 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401290', 'tblTempUsageDetail_20' ) end [2025-02-04 15:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:30:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:30:27] Production.INFO: ==4227== Releasing lock... [2025-02-04 15:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:30:27] Production.INFO: 62 MB #Memory Used# [2025-02-04 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:31:05 [end_date_ymd] => 2025-02-04 15:31:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 12:31:05' and `end` < '2025-02-04 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-02-04 15:31:30] Production.INFO: count ==4532 [2025-02-04 15:31:32] Production.ERROR: pbx CDR StartTime 2025-02-04 12:31:05 - End Time 2025-02-04 15:31:05 [2025-02-04 15:31:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401296', 'tblTempUsageDetail_20' ) start [2025-02-04 15:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401296', 'tblTempUsageDetail_20' ) end [2025-02-04 15:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401296', 'tblTempVendorCDR_20' ) start [2025-02-04 15:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401296', 'tblTempVendorCDR_20' ) end [2025-02-04 15:31:32] Production.INFO: ProcessCDR(1,14401296,1,1,2) [2025-02-04 15:31:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:31:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:31:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:31:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401296', 'tblTempUsageDetail_20' ) start [2025-02-04 15:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401296', 'tblTempUsageDetail_20' ) end [2025-02-04 15:31:37] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:31:37] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:31:37] Production.INFO: ==4303== Releasing lock... [2025-02-04 15:31:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:31:37] Production.INFO: 62 MB #Memory Used# [2025-02-04 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:32:06 [end_date_ymd] => 2025-02-04 15:32:06 [RateCDR] => 1 ) [2025-02-04 15:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:32:06' and `end` < '2025-02-04 15:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:32:25] Production.INFO: count ==4521 [2025-02-04 15:32:27] Production.ERROR: pbx CDR StartTime 2025-02-04 12:32:06 - End Time 2025-02-04 15:32:06 [2025-02-04 15:32:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401301', 'tblTempUsageDetail_20' ) start [2025-02-04 15:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401301', 'tblTempUsageDetail_20' ) end [2025-02-04 15:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401301', 'tblTempVendorCDR_20' ) start [2025-02-04 15:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401301', 'tblTempVendorCDR_20' ) end [2025-02-04 15:32:27] Production.INFO: ProcessCDR(1,14401301,1,1,2) [2025-02-04 15:32:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:32:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:32:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:32:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401301', 'tblTempUsageDetail_20' ) start [2025-02-04 15:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401301', 'tblTempUsageDetail_20' ) end [2025-02-04 15:32:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:32:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:32:32] Production.INFO: ==4379== Releasing lock... [2025-02-04 15:32:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:32:32] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:33:05 [end_date_ymd] => 2025-02-04 15:33:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 12:33:05' and `end` < '2025-02-04 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-02-04 15:33:22] Production.INFO: count ==4529 [2025-02-04 15:33:24] Production.ERROR: pbx CDR StartTime 2025-02-04 12:33:05 - End Time 2025-02-04 15:33:05 [2025-02-04 15:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401306', 'tblTempUsageDetail_20' ) start [2025-02-04 15:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401306', 'tblTempUsageDetail_20' ) end [2025-02-04 15:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401306', 'tblTempVendorCDR_20' ) start [2025-02-04 15:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401306', 'tblTempVendorCDR_20' ) end [2025-02-04 15:33:24] Production.INFO: ProcessCDR(1,14401306,1,1,2) [2025-02-04 15:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401306', 'tblTempUsageDetail_20' ) start [2025-02-04 15:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401306', 'tblTempUsageDetail_20' ) end [2025-02-04 15:33:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:33:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:33:29] Production.INFO: ==4459== Releasing lock... [2025-02-04 15:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:33:29] Production.INFO: 62 MB #Memory Used# [2025-02-04 15:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:34:06 [end_date_ymd] => 2025-02-04 15:34:06 [RateCDR] => 1 ) [2025-02-04 15:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:34:06' and `end` < '2025-02-04 15:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:34:22] Production.INFO: count ==4515 [2025-02-04 15:34:24] Production.ERROR: pbx CDR StartTime 2025-02-04 12:34:06 - End Time 2025-02-04 15:34:06 [2025-02-04 15:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401311', 'tblTempUsageDetail_20' ) start [2025-02-04 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401311', 'tblTempUsageDetail_20' ) end [2025-02-04 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401311', 'tblTempVendorCDR_20' ) start [2025-02-04 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401311', 'tblTempVendorCDR_20' ) end [2025-02-04 15:34:24] Production.INFO: ProcessCDR(1,14401311,1,1,2) [2025-02-04 15:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401311', 'tblTempUsageDetail_20' ) start [2025-02-04 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401311', 'tblTempUsageDetail_20' ) end [2025-02-04 15:34:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:34:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:34:27] Production.INFO: ==4535== Releasing lock... [2025-02-04 15:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:34:27] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:35:05 [end_date_ymd] => 2025-02-04 15:35:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 12:35:05' and `end` < '2025-02-04 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-02-04 15:35:26] Production.INFO: count ==4519 [2025-02-04 15:35:28] Production.ERROR: pbx CDR StartTime 2025-02-04 12:35:05 - End Time 2025-02-04 15:35:05 [2025-02-04 15:35:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401316', 'tblTempUsageDetail_20' ) start [2025-02-04 15:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401316', 'tblTempUsageDetail_20' ) end [2025-02-04 15:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401316', 'tblTempVendorCDR_20' ) start [2025-02-04 15:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401316', 'tblTempVendorCDR_20' ) end [2025-02-04 15:35:28] Production.INFO: ProcessCDR(1,14401316,1,1,2) [2025-02-04 15:35:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:35:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:35:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:35:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401316', 'tblTempUsageDetail_20' ) start [2025-02-04 15:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401316', 'tblTempUsageDetail_20' ) end [2025-02-04 15:35:33] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:35:33] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:35:33] Production.INFO: ==4619== Releasing lock... [2025-02-04 15:35:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:35:33] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:36:05 [end_date_ymd] => 2025-02-04 15:36:05 [RateCDR] => 1 ) [2025-02-04 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:36:05' and `end` < '2025-02-04 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:36:31] Production.INFO: count ==4520 [2025-02-04 15:36:33] Production.ERROR: pbx CDR StartTime 2025-02-04 12:36:05 - End Time 2025-02-04 15:36:05 [2025-02-04 15:36:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401321', 'tblTempUsageDetail_20' ) start [2025-02-04 15:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401321', 'tblTempUsageDetail_20' ) end [2025-02-04 15:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401321', 'tblTempVendorCDR_20' ) start [2025-02-04 15:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401321', 'tblTempVendorCDR_20' ) end [2025-02-04 15:36:33] Production.INFO: ProcessCDR(1,14401321,1,1,2) [2025-02-04 15:36:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:36:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:36:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:36:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:36:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401321', 'tblTempUsageDetail_20' ) start [2025-02-04 15:36:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401321', 'tblTempUsageDetail_20' ) end [2025-02-04 15:36:38] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:36:38] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:36:38] Production.INFO: ==4695== Releasing lock... [2025-02-04 15:36:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:36:38] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 15:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:37:06 [end_date_ymd] => 2025-02-04 15:37:06 [RateCDR] => 1 ) [2025-02-04 15:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:37:06' and `end` < '2025-02-04 15:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:37:26] Production.INFO: count ==4498 [2025-02-04 15:37:28] Production.ERROR: pbx CDR StartTime 2025-02-04 12:37:06 - End Time 2025-02-04 15:37:06 [2025-02-04 15:37:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401326', 'tblTempUsageDetail_20' ) start [2025-02-04 15:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401326', 'tblTempUsageDetail_20' ) end [2025-02-04 15:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401326', 'tblTempVendorCDR_20' ) start [2025-02-04 15:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401326', 'tblTempVendorCDR_20' ) end [2025-02-04 15:37:28] Production.INFO: ProcessCDR(1,14401326,1,1,2) [2025-02-04 15:37:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:37:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:37:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:37:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401326', 'tblTempUsageDetail_20' ) start [2025-02-04 15:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401326', 'tblTempUsageDetail_20' ) end [2025-02-04 15:37:33] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:37:33] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:37:33] Production.INFO: ==4772== Releasing lock... [2025-02-04 15:37:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:37:33] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:38:05 [end_date_ymd] => 2025-02-04 15:38:05 [RateCDR] => 1 ) [2025-02-04 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:38:05' and `end` < '2025-02-04 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:38:30] Production.INFO: count ==4500 [2025-02-04 15:38:31] Production.ERROR: pbx CDR StartTime 2025-02-04 12:38:05 - End Time 2025-02-04 15:38:05 [2025-02-04 15:38:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:38:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401331', 'tblTempUsageDetail_20' ) start [2025-02-04 15:38:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401331', 'tblTempUsageDetail_20' ) end [2025-02-04 15:38:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401331', 'tblTempVendorCDR_20' ) start [2025-02-04 15:38:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401331', 'tblTempVendorCDR_20' ) end [2025-02-04 15:38:31] Production.INFO: ProcessCDR(1,14401331,1,1,2) [2025-02-04 15:38:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:38:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:38:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:38:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:38:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401331', 'tblTempUsageDetail_20' ) start [2025-02-04 15:38:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401331', 'tblTempUsageDetail_20' ) end [2025-02-04 15:38:36] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:38:36] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:38:36] Production.INFO: ==4848== Releasing lock... [2025-02-04 15:38:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:38:36] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:39:05 [end_date_ymd] => 2025-02-04 15:39:05 [RateCDR] => 1 ) [2025-02-04 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:39:05' and `end` < '2025-02-04 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:39:22] Production.INFO: count ==4495 [2025-02-04 15:39:24] Production.ERROR: pbx CDR StartTime 2025-02-04 12:39:05 - End Time 2025-02-04 15:39:05 [2025-02-04 15:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401336', 'tblTempUsageDetail_20' ) start [2025-02-04 15:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401336', 'tblTempUsageDetail_20' ) end [2025-02-04 15:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401336', 'tblTempVendorCDR_20' ) start [2025-02-04 15:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401336', 'tblTempVendorCDR_20' ) end [2025-02-04 15:39:24] Production.INFO: ProcessCDR(1,14401336,1,1,2) [2025-02-04 15:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401336', 'tblTempUsageDetail_20' ) start [2025-02-04 15:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401336', 'tblTempUsageDetail_20' ) end [2025-02-04 15:39:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:39:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:39:29] Production.INFO: ==4925== Releasing lock... [2025-02-04 15:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:39:29] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:40:06 [end_date_ymd] => 2025-02-04 15:40:06 [RateCDR] => 1 ) [2025-02-04 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:40:06' and `end` < '2025-02-04 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:40:19] Production.INFO: count ==4522 [2025-02-04 15:40:21] Production.ERROR: pbx CDR StartTime 2025-02-04 12:40:06 - End Time 2025-02-04 15:40:06 [2025-02-04 15:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401342', 'tblTempUsageDetail_20' ) start [2025-02-04 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401342', 'tblTempUsageDetail_20' ) end [2025-02-04 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401342', 'tblTempVendorCDR_20' ) start [2025-02-04 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401342', 'tblTempVendorCDR_20' ) end [2025-02-04 15:40:21] Production.INFO: ProcessCDR(1,14401342,1,1,2) [2025-02-04 15:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401342', 'tblTempUsageDetail_20' ) start [2025-02-04 15:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401342', 'tblTempUsageDetail_20' ) end [2025-02-04 15:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:40:26] Production.INFO: ==5003== Releasing lock... [2025-02-04 15:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:40:26] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 15:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:41:04 [end_date_ymd] => 2025-02-04 15:41:04 [RateCDR] => 1 ) [2025-02-04 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-02-04 12:41:04' and `end` < '2025-02-04 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-02-04 15:41:20] Production.INFO: count ==4543 [2025-02-04 15:41:22] Production.ERROR: pbx CDR StartTime 2025-02-04 12:41:04 - End Time 2025-02-04 15:41:04 [2025-02-04 15:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401347', 'tblTempUsageDetail_20' ) start [2025-02-04 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401347', 'tblTempUsageDetail_20' ) end [2025-02-04 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401347', 'tblTempVendorCDR_20' ) start [2025-02-04 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401347', 'tblTempVendorCDR_20' ) end [2025-02-04 15:41:22] Production.INFO: ProcessCDR(1,14401347,1,1,2) [2025-02-04 15:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401347', 'tblTempUsageDetail_20' ) start [2025-02-04 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401347', 'tblTempUsageDetail_20' ) end [2025-02-04 15:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:41:26] Production.INFO: ==5082== Releasing lock... [2025-02-04 15:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:41:26] Production.INFO: 62 MB #Memory Used# [2025-02-04 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:42:05 [end_date_ymd] => 2025-02-04 15:42:05 [RateCDR] => 1 ) [2025-02-04 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:42:05' and `end` < '2025-02-04 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:42:34] Production.INFO: count ==4532 [2025-02-04 15:42:35] Production.ERROR: pbx CDR StartTime 2025-02-04 12:42:05 - End Time 2025-02-04 15:42:05 [2025-02-04 15:42:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:42:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401352', 'tblTempUsageDetail_20' ) start [2025-02-04 15:42:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401352', 'tblTempUsageDetail_20' ) end [2025-02-04 15:42:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401352', 'tblTempVendorCDR_20' ) start [2025-02-04 15:42:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401352', 'tblTempVendorCDR_20' ) end [2025-02-04 15:42:35] Production.INFO: ProcessCDR(1,14401352,1,1,2) [2025-02-04 15:42:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:42:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:42:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:42:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:42:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401352', 'tblTempUsageDetail_20' ) start [2025-02-04 15:42:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401352', 'tblTempUsageDetail_20' ) end [2025-02-04 15:42:40] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:42:40] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:42:40] Production.INFO: ==5162== Releasing lock... [2025-02-04 15:42:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:42:40] Production.INFO: 62 MB #Memory Used# [2025-02-04 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:43:05 [end_date_ymd] => 2025-02-04 15:43:05 [RateCDR] => 1 ) [2025-02-04 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:43:05' and `end` < '2025-02-04 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:43:28] Production.INFO: count ==4536 [2025-02-04 15:43:29] Production.ERROR: pbx CDR StartTime 2025-02-04 12:43:05 - End Time 2025-02-04 15:43:05 [2025-02-04 15:43:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401357', 'tblTempUsageDetail_20' ) start [2025-02-04 15:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401357', 'tblTempUsageDetail_20' ) end [2025-02-04 15:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401357', 'tblTempVendorCDR_20' ) start [2025-02-04 15:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401357', 'tblTempVendorCDR_20' ) end [2025-02-04 15:43:30] Production.INFO: ProcessCDR(1,14401357,1,1,2) [2025-02-04 15:43:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:43:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:43:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:43:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401357', 'tblTempUsageDetail_20' ) start [2025-02-04 15:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401357', 'tblTempUsageDetail_20' ) end [2025-02-04 15:43:34] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:43:34] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:43:34] Production.INFO: ==5240== Releasing lock... [2025-02-04 15:43:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:43:34] Production.INFO: 62 MB #Memory Used# [2025-02-04 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:44:05 [end_date_ymd] => 2025-02-04 15:44:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 12:44:05' and `end` < '2025-02-04 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-02-04 15:44:25] Production.INFO: count ==4558 [2025-02-04 15:44:27] Production.ERROR: pbx CDR StartTime 2025-02-04 12:44:05 - End Time 2025-02-04 15:44:05 [2025-02-04 15:44:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401362', 'tblTempUsageDetail_20' ) start [2025-02-04 15:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401362', 'tblTempUsageDetail_20' ) end [2025-02-04 15:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401362', 'tblTempVendorCDR_20' ) start [2025-02-04 15:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401362', 'tblTempVendorCDR_20' ) end [2025-02-04 15:44:27] Production.INFO: ProcessCDR(1,14401362,1,1,2) [2025-02-04 15:44:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:44:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:44:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:44:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401362', 'tblTempUsageDetail_20' ) start [2025-02-04 15:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401362', 'tblTempUsageDetail_20' ) end [2025-02-04 15:44:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:44:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:44:32] Production.INFO: ==5352== Releasing lock... [2025-02-04 15:44:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:44:32] Production.INFO: 62 MB #Memory Used# [2025-02-04 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:45:05 [end_date_ymd] => 2025-02-04 15:45:05 [RateCDR] => 1 ) [2025-02-04 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:45:05' and `end` < '2025-02-04 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:45:34] Production.INFO: count ==4566 [2025-02-04 15:45:36] Production.ERROR: pbx CDR StartTime 2025-02-04 12:45:05 - End Time 2025-02-04 15:45:05 [2025-02-04 15:45:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:45:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401367', 'tblTempUsageDetail_20' ) start [2025-02-04 15:45:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401367', 'tblTempUsageDetail_20' ) end [2025-02-04 15:45:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401367', 'tblTempVendorCDR_20' ) start [2025-02-04 15:45:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401367', 'tblTempVendorCDR_20' ) end [2025-02-04 15:45:36] Production.INFO: ProcessCDR(1,14401367,1,1,2) [2025-02-04 15:45:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:45:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:45:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:45:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:45:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401367', 'tblTempUsageDetail_20' ) start [2025-02-04 15:45:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401367', 'tblTempUsageDetail_20' ) end [2025-02-04 15:45:41] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:45:41] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:45:41] Production.INFO: ==5434== Releasing lock... [2025-02-04 15:45:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:45:41] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:46:06 [end_date_ymd] => 2025-02-04 15:46:06 [RateCDR] => 1 ) [2025-02-04 15:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:46:06' and `end` < '2025-02-04 15:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:46:24] Production.INFO: count ==4564 [2025-02-04 15:46:26] Production.ERROR: pbx CDR StartTime 2025-02-04 12:46:06 - End Time 2025-02-04 15:46:06 [2025-02-04 15:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401372', 'tblTempUsageDetail_20' ) start [2025-02-04 15:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401372', 'tblTempUsageDetail_20' ) end [2025-02-04 15:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401372', 'tblTempVendorCDR_20' ) start [2025-02-04 15:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401372', 'tblTempVendorCDR_20' ) end [2025-02-04 15:46:26] Production.INFO: ProcessCDR(1,14401372,1,1,2) [2025-02-04 15:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:46:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:46:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401372', 'tblTempUsageDetail_20' ) start [2025-02-04 15:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401372', 'tblTempUsageDetail_20' ) end [2025-02-04 15:46:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:46:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:46:31] Production.INFO: ==5513== Releasing lock... [2025-02-04 15:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:46:31] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:47:05 [end_date_ymd] => 2025-02-04 15:47:05 [RateCDR] => 1 ) [2025-02-04 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:47:05' and `end` < '2025-02-04 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:47:24] Production.INFO: count ==4560 [2025-02-04 15:47:25] Production.ERROR: pbx CDR StartTime 2025-02-04 12:47:05 - End Time 2025-02-04 15:47:05 [2025-02-04 15:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401377', 'tblTempUsageDetail_20' ) start [2025-02-04 15:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401377', 'tblTempUsageDetail_20' ) end [2025-02-04 15:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401377', 'tblTempVendorCDR_20' ) start [2025-02-04 15:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401377', 'tblTempVendorCDR_20' ) end [2025-02-04 15:47:25] Production.INFO: ProcessCDR(1,14401377,1,1,2) [2025-02-04 15:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:47:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:47:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401377', 'tblTempUsageDetail_20' ) start [2025-02-04 15:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401377', 'tblTempUsageDetail_20' ) end [2025-02-04 15:47:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:47:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:47:30] Production.INFO: ==5591== Releasing lock... [2025-02-04 15:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:47:30] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:48:05 [end_date_ymd] => 2025-02-04 15:48:05 [RateCDR] => 1 ) [2025-02-04 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:48:05' and `end` < '2025-02-04 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:48:25] Production.INFO: count ==4559 [2025-02-04 15:48:27] Production.ERROR: pbx CDR StartTime 2025-02-04 12:48:05 - End Time 2025-02-04 15:48:05 [2025-02-04 15:48:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401382', 'tblTempUsageDetail_20' ) start [2025-02-04 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401382', 'tblTempUsageDetail_20' ) end [2025-02-04 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401382', 'tblTempVendorCDR_20' ) start [2025-02-04 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401382', 'tblTempVendorCDR_20' ) end [2025-02-04 15:48:27] Production.INFO: ProcessCDR(1,14401382,1,1,2) [2025-02-04 15:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:48:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:48:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:48:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401382', 'tblTempUsageDetail_20' ) start [2025-02-04 15:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401382', 'tblTempUsageDetail_20' ) end [2025-02-04 15:48:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:48:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:48:32] Production.INFO: ==5663== Releasing lock... [2025-02-04 15:48:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:48:32] Production.INFO: 62 MB #Memory Used# [2025-02-04 15:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:49:06 [end_date_ymd] => 2025-02-04 15:49:06 [RateCDR] => 1 ) [2025-02-04 15:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:49:06' and `end` < '2025-02-04 15:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:49:34] Production.INFO: count ==4526 [2025-02-04 15:49:36] Production.ERROR: pbx CDR StartTime 2025-02-04 12:49:06 - End Time 2025-02-04 15:49:06 [2025-02-04 15:49:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:49:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401387', 'tblTempUsageDetail_20' ) start [2025-02-04 15:49:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401387', 'tblTempUsageDetail_20' ) end [2025-02-04 15:49:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401387', 'tblTempVendorCDR_20' ) start [2025-02-04 15:49:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401387', 'tblTempVendorCDR_20' ) end [2025-02-04 15:49:36] Production.INFO: ProcessCDR(1,14401387,1,1,2) [2025-02-04 15:49:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:49:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:49:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:49:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:49:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401387', 'tblTempUsageDetail_20' ) start [2025-02-04 15:49:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401387', 'tblTempUsageDetail_20' ) end [2025-02-04 15:49:40] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:49:40] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:49:40] Production.INFO: ==5744== Releasing lock... [2025-02-04 15:49:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:49:40] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 15:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:50:05 [end_date_ymd] => 2025-02-04 15:50:05 [RateCDR] => 1 ) [2025-02-04 15:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:50:05' and `end` < '2025-02-04 15:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:50:26] Production.INFO: count ==4528 [2025-02-04 15:50:28] Production.ERROR: pbx CDR StartTime 2025-02-04 12:50:05 - End Time 2025-02-04 15:50:05 [2025-02-04 15:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401393', 'tblTempUsageDetail_20' ) start [2025-02-04 15:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401393', 'tblTempUsageDetail_20' ) end [2025-02-04 15:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401393', 'tblTempVendorCDR_20' ) start [2025-02-04 15:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401393', 'tblTempVendorCDR_20' ) end [2025-02-04 15:50:28] Production.INFO: ProcessCDR(1,14401393,1,1,2) [2025-02-04 15:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:50:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401393', 'tblTempUsageDetail_20' ) start [2025-02-04 15:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401393', 'tblTempUsageDetail_20' ) end [2025-02-04 15:50:33] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:50:33] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:50:33] Production.INFO: ==5823== Releasing lock... [2025-02-04 15:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:50:33] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 15:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:51:06 [end_date_ymd] => 2025-02-04 15:51:06 [RateCDR] => 1 ) [2025-02-04 15:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:51:06' and `end` < '2025-02-04 15:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:51:28] Production.INFO: count ==4528 [2025-02-04 15:51:30] Production.ERROR: pbx CDR StartTime 2025-02-04 12:51:06 - End Time 2025-02-04 15:51:06 [2025-02-04 15:51:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401398', 'tblTempUsageDetail_20' ) start [2025-02-04 15:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401398', 'tblTempUsageDetail_20' ) end [2025-02-04 15:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401398', 'tblTempVendorCDR_20' ) start [2025-02-04 15:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401398', 'tblTempVendorCDR_20' ) end [2025-02-04 15:51:30] Production.INFO: ProcessCDR(1,14401398,1,1,2) [2025-02-04 15:51:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:51:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:51:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:51:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:51:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401398', 'tblTempUsageDetail_20' ) start [2025-02-04 15:51:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401398', 'tblTempUsageDetail_20' ) end [2025-02-04 15:51:35] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:51:35] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:51:35] Production.INFO: ==5903== Releasing lock... [2025-02-04 15:51:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:51:35] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:52:05 [end_date_ymd] => 2025-02-04 15:52:05 [RateCDR] => 1 ) [2025-02-04 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:52:05' and `end` < '2025-02-04 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:52:23] Production.INFO: count ==4514 [2025-02-04 15:52:24] Production.ERROR: pbx CDR StartTime 2025-02-04 12:52:05 - End Time 2025-02-04 15:52:05 [2025-02-04 15:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401403', 'tblTempUsageDetail_20' ) start [2025-02-04 15:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401403', 'tblTempUsageDetail_20' ) end [2025-02-04 15:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401403', 'tblTempVendorCDR_20' ) start [2025-02-04 15:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401403', 'tblTempVendorCDR_20' ) end [2025-02-04 15:52:25] Production.INFO: ProcessCDR(1,14401403,1,1,2) [2025-02-04 15:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401403', 'tblTempUsageDetail_20' ) start [2025-02-04 15:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401403', 'tblTempUsageDetail_20' ) end [2025-02-04 15:52:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:52:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:52:29] Production.INFO: ==5981== Releasing lock... [2025-02-04 15:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:52:29] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 15:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:53:06 [end_date_ymd] => 2025-02-04 15:53:06 [RateCDR] => 1 ) [2025-02-04 15:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:53:06' and `end` < '2025-02-04 15:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:53:20] Production.INFO: count ==4505 [2025-02-04 15:53:21] Production.ERROR: pbx CDR StartTime 2025-02-04 12:53:06 - End Time 2025-02-04 15:53:06 [2025-02-04 15:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401408', 'tblTempUsageDetail_20' ) start [2025-02-04 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401408', 'tblTempUsageDetail_20' ) end [2025-02-04 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401408', 'tblTempVendorCDR_20' ) start [2025-02-04 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401408', 'tblTempVendorCDR_20' ) end [2025-02-04 15:53:21] Production.INFO: ProcessCDR(1,14401408,1,1,2) [2025-02-04 15:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401408', 'tblTempUsageDetail_20' ) start [2025-02-04 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401408', 'tblTempUsageDetail_20' ) end [2025-02-04 15:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:53:26] Production.INFO: ==6059== Releasing lock... [2025-02-04 15:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:53:26] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:54:05 [end_date_ymd] => 2025-02-04 15:54:05 [RateCDR] => 1 ) [2025-02-04 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:54:05' and `end` < '2025-02-04 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:54:19] Production.INFO: count ==4474 [2025-02-04 15:54:20] Production.ERROR: pbx CDR StartTime 2025-02-04 12:54:05 - End Time 2025-02-04 15:54:05 [2025-02-04 15:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401413', 'tblTempUsageDetail_20' ) start [2025-02-04 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401413', 'tblTempUsageDetail_20' ) end [2025-02-04 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401413', 'tblTempVendorCDR_20' ) start [2025-02-04 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401413', 'tblTempVendorCDR_20' ) end [2025-02-04 15:54:20] Production.INFO: ProcessCDR(1,14401413,1,1,2) [2025-02-04 15:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401413', 'tblTempUsageDetail_20' ) start [2025-02-04 15:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401413', 'tblTempUsageDetail_20' ) end [2025-02-04 15:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:54:25] Production.INFO: ==6136== Releasing lock... [2025-02-04 15:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:54:25] Production.INFO: 61.5 MB #Memory Used# [2025-02-04 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:55:06 [end_date_ymd] => 2025-02-04 15:55:06 [RateCDR] => 1 ) [2025-02-04 15:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:55:06' and `end` < '2025-02-04 15:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:55:20] Production.INFO: count ==4471 [2025-02-04 15:55:21] Production.ERROR: pbx CDR StartTime 2025-02-04 12:55:06 - End Time 2025-02-04 15:55:06 [2025-02-04 15:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401418', 'tblTempUsageDetail_20' ) start [2025-02-04 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401418', 'tblTempUsageDetail_20' ) end [2025-02-04 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401418', 'tblTempVendorCDR_20' ) start [2025-02-04 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401418', 'tblTempVendorCDR_20' ) end [2025-02-04 15:55:22] Production.INFO: ProcessCDR(1,14401418,1,1,2) [2025-02-04 15:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401418', 'tblTempUsageDetail_20' ) start [2025-02-04 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401418', 'tblTempUsageDetail_20' ) end [2025-02-04 15:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:55:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:55:26] Production.INFO: ==6215== Releasing lock... [2025-02-04 15:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:55:26] Production.INFO: 61.5 MB #Memory Used# [2025-02-04 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:56:05 [end_date_ymd] => 2025-02-04 15:56:05 [RateCDR] => 1 ) [2025-02-04 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:56:05' and `end` < '2025-02-04 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:56:18] Production.INFO: count ==4471 [2025-02-04 15:56:20] Production.ERROR: pbx CDR StartTime 2025-02-04 12:56:05 - End Time 2025-02-04 15:56:05 [2025-02-04 15:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401423', 'tblTempUsageDetail_20' ) start [2025-02-04 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401423', 'tblTempUsageDetail_20' ) end [2025-02-04 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401423', 'tblTempVendorCDR_20' ) start [2025-02-04 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401423', 'tblTempVendorCDR_20' ) end [2025-02-04 15:56:20] Production.INFO: ProcessCDR(1,14401423,1,1,2) [2025-02-04 15:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401423', 'tblTempUsageDetail_20' ) start [2025-02-04 15:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401423', 'tblTempUsageDetail_20' ) end [2025-02-04 15:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:56:25] Production.INFO: ==6291== Releasing lock... [2025-02-04 15:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:56:25] Production.INFO: 61.5 MB #Memory Used# [2025-02-04 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:57:05 [end_date_ymd] => 2025-02-04 15:57:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 12:57:05' and `end` < '2025-02-04 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-02-04 15:57:19] Production.INFO: count ==4478 [2025-02-04 15:57:20] Production.ERROR: pbx CDR StartTime 2025-02-04 12:57:05 - End Time 2025-02-04 15:57:05 [2025-02-04 15:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401428', 'tblTempUsageDetail_20' ) start [2025-02-04 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401428', 'tblTempUsageDetail_20' ) end [2025-02-04 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401428', 'tblTempVendorCDR_20' ) start [2025-02-04 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401428', 'tblTempVendorCDR_20' ) end [2025-02-04 15:57:21] Production.INFO: ProcessCDR(1,14401428,1,1,2) [2025-02-04 15:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401428', 'tblTempUsageDetail_20' ) start [2025-02-04 15:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401428', 'tblTempUsageDetail_20' ) end [2025-02-04 15:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:57:25] Production.INFO: ==6366== Releasing lock... [2025-02-04 15:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:57:25] Production.INFO: 61.5 MB #Memory Used# [2025-02-04 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:58:05 [end_date_ymd] => 2025-02-04 15:58:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 12:58:05' and `end` < '2025-02-04 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-02-04 15:58:31] Production.INFO: count ==4481 [2025-02-04 15:58:33] Production.ERROR: pbx CDR StartTime 2025-02-04 12:58:05 - End Time 2025-02-04 15:58:05 [2025-02-04 15:58:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:58:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401433', 'tblTempUsageDetail_20' ) start [2025-02-04 15:58:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401433', 'tblTempUsageDetail_20' ) end [2025-02-04 15:58:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401433', 'tblTempVendorCDR_20' ) start [2025-02-04 15:58:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401433', 'tblTempVendorCDR_20' ) end [2025-02-04 15:58:33] Production.INFO: ProcessCDR(1,14401433,1,1,2) [2025-02-04 15:58:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:58:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:58:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:58:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:58:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401433', 'tblTempUsageDetail_20' ) start [2025-02-04 15:58:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401433', 'tblTempUsageDetail_20' ) end [2025-02-04 15:58:37] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:58:37] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:58:38] Production.INFO: ==6445== Releasing lock... [2025-02-04 15:58:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:58:38] Production.INFO: 61.5 MB #Memory Used# [2025-02-04 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 12:59:05 [end_date_ymd] => 2025-02-04 15:59:05 [RateCDR] => 1 ) [2025-02-04 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 12:59:05' and `end` < '2025-02-04 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 15:59:21] Production.INFO: count ==4486 [2025-02-04 15:59:23] Production.ERROR: pbx CDR StartTime 2025-02-04 12:59:05 - End Time 2025-02-04 15:59:05 [2025-02-04 15:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 15:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401438', 'tblTempUsageDetail_20' ) start [2025-02-04 15:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401438', 'tblTempUsageDetail_20' ) end [2025-02-04 15:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401438', 'tblTempVendorCDR_20' ) start [2025-02-04 15:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401438', 'tblTempVendorCDR_20' ) end [2025-02-04 15:59:23] Production.INFO: ProcessCDR(1,14401438,1,1,2) [2025-02-04 15:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 15:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 15:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401438', 'tblTempUsageDetail_20' ) start [2025-02-04 15:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401438', 'tblTempUsageDetail_20' ) end [2025-02-04 15:59:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 15:59:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 15:59:28] Production.INFO: ==6523== Releasing lock... [2025-02-04 15:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 15:59:28] Production.INFO: 61.5 MB #Memory Used# [2025-02-04 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:00:06 [end_date_ymd] => 2025-02-04 16:00:06 [RateCDR] => 1 ) [2025-02-04 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:00:06' and `end` < '2025-02-04 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:00:22] Production.INFO: count ==4489 [2025-02-04 16:00:24] Production.ERROR: pbx CDR StartTime 2025-02-04 13:00:06 - End Time 2025-02-04 16:00:06 [2025-02-04 16:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401444', 'tblTempUsageDetail_20' ) start [2025-02-04 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401444', 'tblTempUsageDetail_20' ) end [2025-02-04 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401444', 'tblTempVendorCDR_20' ) start [2025-02-04 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401444', 'tblTempVendorCDR_20' ) end [2025-02-04 16:00:24] Production.INFO: ProcessCDR(1,14401444,1,1,2) [2025-02-04 16:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401444', 'tblTempUsageDetail_20' ) start [2025-02-04 16:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401444', 'tblTempUsageDetail_20' ) end [2025-02-04 16:00:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:00:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:00:29] Production.INFO: ==6648== Releasing lock... [2025-02-04 16:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:00:29] Production.INFO: 61.5 MB #Memory Used# [2025-02-04 16:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:01:04 [end_date_ymd] => 2025-02-04 16:01:04 [RateCDR] => 1 ) [2025-02-04 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-02-04 13:01:04' and `end` < '2025-02-04 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-02-04 16:01:18] Production.INFO: count ==4509 [2025-02-04 16:01:20] Production.ERROR: pbx CDR StartTime 2025-02-04 13:01:04 - End Time 2025-02-04 16:01:04 [2025-02-04 16:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401449', 'tblTempUsageDetail_20' ) start [2025-02-04 16:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401449', 'tblTempUsageDetail_20' ) end [2025-02-04 16:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401449', 'tblTempVendorCDR_20' ) start [2025-02-04 16:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401449', 'tblTempVendorCDR_20' ) end [2025-02-04 16:01:20] Production.INFO: ProcessCDR(1,14401449,1,1,2) [2025-02-04 16:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401449', 'tblTempUsageDetail_20' ) start [2025-02-04 16:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401449', 'tblTempUsageDetail_20' ) end [2025-02-04 16:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:01:24] Production.INFO: ==6738== Releasing lock... [2025-02-04 16:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:01:24] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:02:06 [end_date_ymd] => 2025-02-04 16:02:06 [RateCDR] => 1 ) [2025-02-04 16:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:02:06' and `end` < '2025-02-04 16:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:02:20] Production.INFO: count ==4495 [2025-02-04 16:02:22] Production.ERROR: pbx CDR StartTime 2025-02-04 13:02:06 - End Time 2025-02-04 16:02:06 [2025-02-04 16:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401454', 'tblTempUsageDetail_20' ) start [2025-02-04 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401454', 'tblTempUsageDetail_20' ) end [2025-02-04 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401454', 'tblTempVendorCDR_20' ) start [2025-02-04 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401454', 'tblTempVendorCDR_20' ) end [2025-02-04 16:02:22] Production.INFO: ProcessCDR(1,14401454,1,1,2) [2025-02-04 16:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401454', 'tblTempUsageDetail_20' ) start [2025-02-04 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401454', 'tblTempUsageDetail_20' ) end [2025-02-04 16:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:02:26] Production.INFO: ==6818== Releasing lock... [2025-02-04 16:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:02:26] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 16:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:03:04 [end_date_ymd] => 2025-02-04 16:03:04 [RateCDR] => 1 ) [2025-02-04 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-02-04 13:03:04' and `end` < '2025-02-04 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-02-04 16:03:23] Production.INFO: count ==4489 [2025-02-04 16:03:25] Production.ERROR: pbx CDR StartTime 2025-02-04 13:03:04 - End Time 2025-02-04 16:03:04 [2025-02-04 16:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401459', 'tblTempUsageDetail_20' ) start [2025-02-04 16:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401459', 'tblTempUsageDetail_20' ) end [2025-02-04 16:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401459', 'tblTempVendorCDR_20' ) start [2025-02-04 16:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401459', 'tblTempVendorCDR_20' ) end [2025-02-04 16:03:25] Production.INFO: ProcessCDR(1,14401459,1,1,2) [2025-02-04 16:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401459', 'tblTempUsageDetail_20' ) start [2025-02-04 16:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401459', 'tblTempUsageDetail_20' ) end [2025-02-04 16:03:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:03:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:03:30] Production.INFO: ==6894== Releasing lock... [2025-02-04 16:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:03:30] Production.INFO: 61.5 MB #Memory Used# [2025-02-04 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:04:05 [end_date_ymd] => 2025-02-04 16:04:05 [RateCDR] => 1 ) [2025-02-04 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:04:05' and `end` < '2025-02-04 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:04:34] Production.INFO: count ==4482 [2025-02-04 16:04:36] Production.ERROR: pbx CDR StartTime 2025-02-04 13:04:05 - End Time 2025-02-04 16:04:05 [2025-02-04 16:04:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401464', 'tblTempUsageDetail_20' ) start [2025-02-04 16:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401464', 'tblTempUsageDetail_20' ) end [2025-02-04 16:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401464', 'tblTempVendorCDR_20' ) start [2025-02-04 16:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401464', 'tblTempVendorCDR_20' ) end [2025-02-04 16:04:36] Production.INFO: ProcessCDR(1,14401464,1,1,2) [2025-02-04 16:04:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:04:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:04:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:04:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:04:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401464', 'tblTempUsageDetail_20' ) start [2025-02-04 16:04:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401464', 'tblTempUsageDetail_20' ) end [2025-02-04 16:04:40] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:04:40] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:04:40] Production.INFO: ==6972== Releasing lock... [2025-02-04 16:04:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:04:40] Production.INFO: 61.5 MB #Memory Used# [2025-02-04 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:05:05 [end_date_ymd] => 2025-02-04 16:05:05 [RateCDR] => 1 ) [2025-02-04 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:05:05' and `end` < '2025-02-04 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:05:27] Production.INFO: count ==4478 [2025-02-04 16:05:29] Production.ERROR: pbx CDR StartTime 2025-02-04 13:05:05 - End Time 2025-02-04 16:05:05 [2025-02-04 16:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401469', 'tblTempUsageDetail_20' ) start [2025-02-04 16:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401469', 'tblTempUsageDetail_20' ) end [2025-02-04 16:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401469', 'tblTempVendorCDR_20' ) start [2025-02-04 16:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401469', 'tblTempVendorCDR_20' ) end [2025-02-04 16:05:29] Production.INFO: ProcessCDR(1,14401469,1,1,2) [2025-02-04 16:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:05:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:05:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401469', 'tblTempUsageDetail_20' ) start [2025-02-04 16:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401469', 'tblTempUsageDetail_20' ) end [2025-02-04 16:05:34] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:05:34] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:05:34] Production.INFO: ==7051== Releasing lock... [2025-02-04 16:05:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:05:34] Production.INFO: 61.5 MB #Memory Used# [2025-02-04 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:06:05 [end_date_ymd] => 2025-02-04 16:06:05 [RateCDR] => 1 ) [2025-02-04 16:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:06:05' and `end` < '2025-02-04 16:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:06:33] Production.INFO: count ==4478 [2025-02-04 16:06:34] Production.ERROR: pbx CDR StartTime 2025-02-04 13:06:05 - End Time 2025-02-04 16:06:05 [2025-02-04 16:06:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401474', 'tblTempUsageDetail_20' ) start [2025-02-04 16:06:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401474', 'tblTempUsageDetail_20' ) end [2025-02-04 16:06:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401474', 'tblTempVendorCDR_20' ) start [2025-02-04 16:06:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401474', 'tblTempVendorCDR_20' ) end [2025-02-04 16:06:35] Production.INFO: ProcessCDR(1,14401474,1,1,2) [2025-02-04 16:06:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:06:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:06:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:06:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:06:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401474', 'tblTempUsageDetail_20' ) start [2025-02-04 16:06:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401474', 'tblTempUsageDetail_20' ) end [2025-02-04 16:06:39] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:06:40] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:06:40] Production.INFO: ==7128== Releasing lock... [2025-02-04 16:06:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:06:40] Production.INFO: 61.5 MB #Memory Used# [2025-02-04 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:07:06 [end_date_ymd] => 2025-02-04 16:07:06 [RateCDR] => 1 ) [2025-02-04 16:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:07:06' and `end` < '2025-02-04 16:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:07:25] Production.INFO: count ==4477 [2025-02-04 16:07:27] Production.ERROR: pbx CDR StartTime 2025-02-04 13:07:06 - End Time 2025-02-04 16:07:06 [2025-02-04 16:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401479', 'tblTempUsageDetail_20' ) start [2025-02-04 16:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401479', 'tblTempUsageDetail_20' ) end [2025-02-04 16:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401479', 'tblTempVendorCDR_20' ) start [2025-02-04 16:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401479', 'tblTempVendorCDR_20' ) end [2025-02-04 16:07:27] Production.INFO: ProcessCDR(1,14401479,1,1,2) [2025-02-04 16:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401479', 'tblTempUsageDetail_20' ) start [2025-02-04 16:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401479', 'tblTempUsageDetail_20' ) end [2025-02-04 16:07:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:07:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:07:32] Production.INFO: ==7211== Releasing lock... [2025-02-04 16:07:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:07:32] Production.INFO: 61.5 MB #Memory Used# [2025-02-04 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:08:04 [end_date_ymd] => 2025-02-04 16:08:04 [RateCDR] => 1 ) [2025-02-04 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:08:04' and `end` < '2025-02-04 16:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:08:21] Production.INFO: count ==4476 [2025-02-04 16:08:23] Production.ERROR: pbx CDR StartTime 2025-02-04 13:08:04 - End Time 2025-02-04 16:08:04 [2025-02-04 16:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401484', 'tblTempUsageDetail_20' ) start [2025-02-04 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401484', 'tblTempUsageDetail_20' ) end [2025-02-04 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401484', 'tblTempVendorCDR_20' ) start [2025-02-04 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401484', 'tblTempVendorCDR_20' ) end [2025-02-04 16:08:23] Production.INFO: ProcessCDR(1,14401484,1,1,2) [2025-02-04 16:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401484', 'tblTempUsageDetail_20' ) start [2025-02-04 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401484', 'tblTempUsageDetail_20' ) end [2025-02-04 16:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:08:27] Production.INFO: ==7289== Releasing lock... [2025-02-04 16:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:08:27] Production.INFO: 61.5 MB #Memory Used# [2025-02-04 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:09:05 [end_date_ymd] => 2025-02-04 16:09:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 13:09:05' and `end` < '2025-02-04 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-02-04 16:09:19] Production.INFO: count ==4469 [2025-02-04 16:09:21] Production.ERROR: pbx CDR StartTime 2025-02-04 13:09:05 - End Time 2025-02-04 16:09:05 [2025-02-04 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401489', 'tblTempUsageDetail_20' ) start [2025-02-04 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401489', 'tblTempUsageDetail_20' ) end [2025-02-04 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401489', 'tblTempVendorCDR_20' ) start [2025-02-04 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401489', 'tblTempVendorCDR_20' ) end [2025-02-04 16:09:21] Production.INFO: ProcessCDR(1,14401489,1,1,2) [2025-02-04 16:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401489', 'tblTempUsageDetail_20' ) start [2025-02-04 16:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401489', 'tblTempUsageDetail_20' ) end [2025-02-04 16:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:09:25] Production.INFO: ==7366== Releasing lock... [2025-02-04 16:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:09:25] Production.INFO: 61.5 MB #Memory Used# [2025-02-04 16:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:10:05 [end_date_ymd] => 2025-02-04 16:10:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 13:10:05' and `end` < '2025-02-04 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-02-04 16:10:21] Production.INFO: count ==4458 [2025-02-04 16:10:22] Production.ERROR: pbx CDR StartTime 2025-02-04 13:10:05 - End Time 2025-02-04 16:10:05 [2025-02-04 16:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401495', 'tblTempUsageDetail_20' ) start [2025-02-04 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401495', 'tblTempUsageDetail_20' ) end [2025-02-04 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401495', 'tblTempVendorCDR_20' ) start [2025-02-04 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401495', 'tblTempVendorCDR_20' ) end [2025-02-04 16:10:22] Production.INFO: ProcessCDR(1,14401495,1,1,2) [2025-02-04 16:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401495', 'tblTempUsageDetail_20' ) start [2025-02-04 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401495', 'tblTempUsageDetail_20' ) end [2025-02-04 16:10:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:10:27] Production.INFO: ==7441== Releasing lock... [2025-02-04 16:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:10:27] Production.INFO: 61.25 MB #Memory Used# [2025-02-04 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:11:05 [end_date_ymd] => 2025-02-04 16:11:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 13:11:05' and `end` < '2025-02-04 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-02-04 16:11:27] Production.INFO: count ==4490 [2025-02-04 16:11:28] Production.ERROR: pbx CDR StartTime 2025-02-04 13:11:05 - End Time 2025-02-04 16:11:05 [2025-02-04 16:11:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401500', 'tblTempUsageDetail_20' ) start [2025-02-04 16:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401500', 'tblTempUsageDetail_20' ) end [2025-02-04 16:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401500', 'tblTempVendorCDR_20' ) start [2025-02-04 16:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401500', 'tblTempVendorCDR_20' ) end [2025-02-04 16:11:29] Production.INFO: ProcessCDR(1,14401500,1,1,2) [2025-02-04 16:11:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:11:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:11:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:11:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401500', 'tblTempUsageDetail_20' ) start [2025-02-04 16:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401500', 'tblTempUsageDetail_20' ) end [2025-02-04 16:11:33] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:11:34] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:11:34] Production.INFO: ==7523== Releasing lock... [2025-02-04 16:11:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:11:34] Production.INFO: 61.5 MB #Memory Used# [2025-02-04 16:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:12:06 [end_date_ymd] => 2025-02-04 16:12:06 [RateCDR] => 1 ) [2025-02-04 16:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:12:06' and `end` < '2025-02-04 16:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:12:23] Production.INFO: count ==4501 [2025-02-04 16:12:25] Production.ERROR: pbx CDR StartTime 2025-02-04 13:12:06 - End Time 2025-02-04 16:12:06 [2025-02-04 16:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401505', 'tblTempUsageDetail_20' ) start [2025-02-04 16:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401505', 'tblTempUsageDetail_20' ) end [2025-02-04 16:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401505', 'tblTempVendorCDR_20' ) start [2025-02-04 16:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401505', 'tblTempVendorCDR_20' ) end [2025-02-04 16:12:25] Production.INFO: ProcessCDR(1,14401505,1,1,2) [2025-02-04 16:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401505', 'tblTempUsageDetail_20' ) start [2025-02-04 16:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401505', 'tblTempUsageDetail_20' ) end [2025-02-04 16:12:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:12:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:12:30] Production.INFO: ==7601== Releasing lock... [2025-02-04 16:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:12:30] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:13:05 [end_date_ymd] => 2025-02-04 16:13:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 13:13:05' and `end` < '2025-02-04 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-02-04 16:13:19] Production.INFO: count ==4499 [2025-02-04 16:13:21] Production.ERROR: pbx CDR StartTime 2025-02-04 13:13:05 - End Time 2025-02-04 16:13:05 [2025-02-04 16:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401510', 'tblTempUsageDetail_20' ) start [2025-02-04 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401510', 'tblTempUsageDetail_20' ) end [2025-02-04 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401510', 'tblTempVendorCDR_20' ) start [2025-02-04 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401510', 'tblTempVendorCDR_20' ) end [2025-02-04 16:13:21] Production.INFO: ProcessCDR(1,14401510,1,1,2) [2025-02-04 16:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401510', 'tblTempUsageDetail_20' ) start [2025-02-04 16:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401510', 'tblTempUsageDetail_20' ) end [2025-02-04 16:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:13:25] Production.INFO: ==7684== Releasing lock... [2025-02-04 16:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:13:25] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 16:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:14:06 [end_date_ymd] => 2025-02-04 16:14:06 [RateCDR] => 1 ) [2025-02-04 16:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:14:06' and `end` < '2025-02-04 16:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:14:29] Production.INFO: count ==4507 [2025-02-04 16:14:30] Production.ERROR: pbx CDR StartTime 2025-02-04 13:14:06 - End Time 2025-02-04 16:14:06 [2025-02-04 16:14:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401515', 'tblTempUsageDetail_20' ) start [2025-02-04 16:14:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401515', 'tblTempUsageDetail_20' ) end [2025-02-04 16:14:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401515', 'tblTempVendorCDR_20' ) start [2025-02-04 16:14:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401515', 'tblTempVendorCDR_20' ) end [2025-02-04 16:14:31] Production.INFO: ProcessCDR(1,14401515,1,1,2) [2025-02-04 16:14:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:14:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:14:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:14:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:14:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401515', 'tblTempUsageDetail_20' ) start [2025-02-04 16:14:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401515', 'tblTempUsageDetail_20' ) end [2025-02-04 16:14:35] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:14:35] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:14:35] Production.INFO: ==7764== Releasing lock... [2025-02-04 16:14:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:14:35] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:15:05 [end_date_ymd] => 2025-02-04 16:15:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 13:15:05' and `end` < '2025-02-04 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-02-04 16:15:30] Production.INFO: count ==4514 [2025-02-04 16:15:32] Production.ERROR: pbx CDR StartTime 2025-02-04 13:15:05 - End Time 2025-02-04 16:15:05 [2025-02-04 16:15:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401520', 'tblTempUsageDetail_20' ) start [2025-02-04 16:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401520', 'tblTempUsageDetail_20' ) end [2025-02-04 16:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401520', 'tblTempVendorCDR_20' ) start [2025-02-04 16:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401520', 'tblTempVendorCDR_20' ) end [2025-02-04 16:15:32] Production.INFO: ProcessCDR(1,14401520,1,1,2) [2025-02-04 16:15:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:15:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:15:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:15:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401520', 'tblTempUsageDetail_20' ) start [2025-02-04 16:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401520', 'tblTempUsageDetail_20' ) end [2025-02-04 16:15:36] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:15:36] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:15:36] Production.INFO: ==7877== Releasing lock... [2025-02-04 16:15:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:15:36] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:16:05 [end_date_ymd] => 2025-02-04 16:16:05 [RateCDR] => 1 ) [2025-02-04 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:16:05' and `end` < '2025-02-04 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:16:31] Production.INFO: count ==4537 [2025-02-04 16:16:33] Production.ERROR: pbx CDR StartTime 2025-02-04 13:16:05 - End Time 2025-02-04 16:16:05 [2025-02-04 16:16:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401525', 'tblTempUsageDetail_20' ) start [2025-02-04 16:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401525', 'tblTempUsageDetail_20' ) end [2025-02-04 16:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401525', 'tblTempVendorCDR_20' ) start [2025-02-04 16:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401525', 'tblTempVendorCDR_20' ) end [2025-02-04 16:16:33] Production.INFO: ProcessCDR(1,14401525,1,1,2) [2025-02-04 16:16:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:16:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:16:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:16:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:16:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401525', 'tblTempUsageDetail_20' ) start [2025-02-04 16:16:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401525', 'tblTempUsageDetail_20' ) end [2025-02-04 16:16:38] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:16:38] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:16:38] Production.INFO: ==7953== Releasing lock... [2025-02-04 16:16:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:16:38] Production.INFO: 62 MB #Memory Used# [2025-02-04 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:17:05 [end_date_ymd] => 2025-02-04 16:17:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 13:17:05' and `end` < '2025-02-04 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-02-04 16:17:25] Production.INFO: count ==4559 [2025-02-04 16:17:27] Production.ERROR: pbx CDR StartTime 2025-02-04 13:17:05 - End Time 2025-02-04 16:17:05 [2025-02-04 16:17:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401530', 'tblTempUsageDetail_20' ) start [2025-02-04 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401530', 'tblTempUsageDetail_20' ) end [2025-02-04 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401530', 'tblTempVendorCDR_20' ) start [2025-02-04 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401530', 'tblTempVendorCDR_20' ) end [2025-02-04 16:17:27] Production.INFO: ProcessCDR(1,14401530,1,1,2) [2025-02-04 16:17:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:17:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:17:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:17:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401530', 'tblTempUsageDetail_20' ) start [2025-02-04 16:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401530', 'tblTempUsageDetail_20' ) end [2025-02-04 16:17:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:17:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:17:32] Production.INFO: ==8031== Releasing lock... [2025-02-04 16:17:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:17:32] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:18:05 [end_date_ymd] => 2025-02-04 16:18:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 13:18:05' and `end` < '2025-02-04 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-02-04 16:18:25] Production.INFO: count ==4570 [2025-02-04 16:18:27] Production.ERROR: pbx CDR StartTime 2025-02-04 13:18:05 - End Time 2025-02-04 16:18:05 [2025-02-04 16:18:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401535', 'tblTempUsageDetail_20' ) start [2025-02-04 16:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401535', 'tblTempUsageDetail_20' ) end [2025-02-04 16:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401535', 'tblTempVendorCDR_20' ) start [2025-02-04 16:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401535', 'tblTempVendorCDR_20' ) end [2025-02-04 16:18:27] Production.INFO: ProcessCDR(1,14401535,1,1,2) [2025-02-04 16:18:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:18:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:18:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:18:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401535', 'tblTempUsageDetail_20' ) start [2025-02-04 16:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401535', 'tblTempUsageDetail_20' ) end [2025-02-04 16:18:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:18:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:18:32] Production.INFO: ==8123== Releasing lock... [2025-02-04 16:18:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:18:32] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 16:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:19:04 [end_date_ymd] => 2025-02-04 16:19:04 [RateCDR] => 1 ) [2025-02-04 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-02-04 13:19:04' and `end` < '2025-02-04 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-02-04 16:19:22] Production.INFO: count ==4577 [2025-02-04 16:19:24] Production.ERROR: pbx CDR StartTime 2025-02-04 13:19:04 - End Time 2025-02-04 16:19:04 [2025-02-04 16:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401540', 'tblTempUsageDetail_20' ) start [2025-02-04 16:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401540', 'tblTempUsageDetail_20' ) end [2025-02-04 16:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401540', 'tblTempVendorCDR_20' ) start [2025-02-04 16:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401540', 'tblTempVendorCDR_20' ) end [2025-02-04 16:19:24] Production.INFO: ProcessCDR(1,14401540,1,1,2) [2025-02-04 16:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401540', 'tblTempUsageDetail_20' ) start [2025-02-04 16:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401540', 'tblTempUsageDetail_20' ) end [2025-02-04 16:19:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:19:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:19:29] Production.INFO: ==8201== Releasing lock... [2025-02-04 16:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:19:29] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:20:06 [end_date_ymd] => 2025-02-04 16:20:06 [RateCDR] => 1 ) [2025-02-04 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:20:06' and `end` < '2025-02-04 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:20:32] Production.INFO: count ==4590 [2025-02-04 16:20:34] Production.ERROR: pbx CDR StartTime 2025-02-04 13:20:06 - End Time 2025-02-04 16:20:06 [2025-02-04 16:20:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401546', 'tblTempUsageDetail_20' ) start [2025-02-04 16:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401546', 'tblTempUsageDetail_20' ) end [2025-02-04 16:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401546', 'tblTempVendorCDR_20' ) start [2025-02-04 16:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401546', 'tblTempVendorCDR_20' ) end [2025-02-04 16:20:34] Production.INFO: ProcessCDR(1,14401546,1,1,2) [2025-02-04 16:20:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:20:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:20:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:20:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:20:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401546', 'tblTempUsageDetail_20' ) start [2025-02-04 16:20:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401546', 'tblTempUsageDetail_20' ) end [2025-02-04 16:20:39] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:20:39] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:20:39] Production.INFO: ==8280== Releasing lock... [2025-02-04 16:20:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:20:39] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:21:05 [end_date_ymd] => 2025-02-04 16:21:05 [RateCDR] => 1 ) [2025-02-04 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:21:05' and `end` < '2025-02-04 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:21:35] Production.INFO: count ==4632 [2025-02-04 16:21:36] Production.ERROR: pbx CDR StartTime 2025-02-04 13:21:05 - End Time 2025-02-04 16:21:05 [2025-02-04 16:21:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:21:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401551', 'tblTempUsageDetail_20' ) start [2025-02-04 16:21:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401551', 'tblTempUsageDetail_20' ) end [2025-02-04 16:21:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401551', 'tblTempVendorCDR_20' ) start [2025-02-04 16:21:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401551', 'tblTempVendorCDR_20' ) end [2025-02-04 16:21:37] Production.INFO: ProcessCDR(1,14401551,1,1,2) [2025-02-04 16:21:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:21:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:21:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:21:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:21:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401551', 'tblTempUsageDetail_20' ) start [2025-02-04 16:21:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401551', 'tblTempUsageDetail_20' ) end [2025-02-04 16:21:40] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:21:40] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:21:40] Production.INFO: ==8360== Releasing lock... [2025-02-04 16:21:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:21:40] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:22:05 [end_date_ymd] => 2025-02-04 16:22:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 13:22:05' and `end` < '2025-02-04 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-02-04 16:22:26] Production.INFO: count ==4611 [2025-02-04 16:22:28] Production.ERROR: pbx CDR StartTime 2025-02-04 13:22:05 - End Time 2025-02-04 16:22:05 [2025-02-04 16:22:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401556', 'tblTempUsageDetail_20' ) start [2025-02-04 16:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401556', 'tblTempUsageDetail_20' ) end [2025-02-04 16:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401556', 'tblTempVendorCDR_20' ) start [2025-02-04 16:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401556', 'tblTempVendorCDR_20' ) end [2025-02-04 16:22:28] Production.INFO: ProcessCDR(1,14401556,1,1,2) [2025-02-04 16:22:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:22:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:22:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:22:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401556', 'tblTempUsageDetail_20' ) start [2025-02-04 16:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401556', 'tblTempUsageDetail_20' ) end [2025-02-04 16:22:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:22:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:22:32] Production.INFO: ==8438== Releasing lock... [2025-02-04 16:22:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:22:32] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:23:05 [end_date_ymd] => 2025-02-04 16:23:05 [RateCDR] => 1 ) [2025-02-04 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:23:05' and `end` < '2025-02-04 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:23:31] Production.INFO: count ==4623 [2025-02-04 16:23:32] Production.ERROR: pbx CDR StartTime 2025-02-04 13:23:05 - End Time 2025-02-04 16:23:05 [2025-02-04 16:23:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:23:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401561', 'tblTempUsageDetail_20' ) start [2025-02-04 16:23:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401561', 'tblTempUsageDetail_20' ) end [2025-02-04 16:23:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401561', 'tblTempVendorCDR_20' ) start [2025-02-04 16:23:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401561', 'tblTempVendorCDR_20' ) end [2025-02-04 16:23:33] Production.INFO: ProcessCDR(1,14401561,1,1,2) [2025-02-04 16:23:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:23:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:23:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:23:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:23:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401561', 'tblTempUsageDetail_20' ) start [2025-02-04 16:23:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401561', 'tblTempUsageDetail_20' ) end [2025-02-04 16:23:37] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:23:37] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:23:37] Production.INFO: ==8516== Releasing lock... [2025-02-04 16:23:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:23:37] Production.INFO: 62.5 MB #Memory Used# [2025-02-04 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:24:05 [end_date_ymd] => 2025-02-04 16:24:05 [RateCDR] => 1 ) [2025-02-04 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:24:05' and `end` < '2025-02-04 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:24:29] Production.INFO: count ==4647 [2025-02-04 16:24:30] Production.ERROR: pbx CDR StartTime 2025-02-04 13:24:05 - End Time 2025-02-04 16:24:05 [2025-02-04 16:24:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401566', 'tblTempUsageDetail_20' ) start [2025-02-04 16:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401566', 'tblTempUsageDetail_20' ) end [2025-02-04 16:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401566', 'tblTempVendorCDR_20' ) start [2025-02-04 16:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401566', 'tblTempVendorCDR_20' ) end [2025-02-04 16:24:31] Production.INFO: ProcessCDR(1,14401566,1,1,2) [2025-02-04 16:24:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:24:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:24:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:24:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401566', 'tblTempUsageDetail_20' ) start [2025-02-04 16:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401566', 'tblTempUsageDetail_20' ) end [2025-02-04 16:24:35] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:24:35] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:24:35] Production.INFO: ==8597== Releasing lock... [2025-02-04 16:24:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:24:35] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:25:05 [end_date_ymd] => 2025-02-04 16:25:05 [RateCDR] => 1 ) [2025-02-04 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:25:05' and `end` < '2025-02-04 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:25:29] Production.INFO: count ==4649 [2025-02-04 16:25:31] Production.ERROR: pbx CDR StartTime 2025-02-04 13:25:05 - End Time 2025-02-04 16:25:05 [2025-02-04 16:25:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401571', 'tblTempUsageDetail_20' ) start [2025-02-04 16:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401571', 'tblTempUsageDetail_20' ) end [2025-02-04 16:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401571', 'tblTempVendorCDR_20' ) start [2025-02-04 16:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401571', 'tblTempVendorCDR_20' ) end [2025-02-04 16:25:31] Production.INFO: ProcessCDR(1,14401571,1,1,2) [2025-02-04 16:25:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:25:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:25:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401571', 'tblTempUsageDetail_20' ) start [2025-02-04 16:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401571', 'tblTempUsageDetail_20' ) end [2025-02-04 16:25:35] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:25:35] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:25:35] Production.INFO: ==8674== Releasing lock... [2025-02-04 16:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:25:35] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:26:05 [end_date_ymd] => 2025-02-04 16:26:05 [RateCDR] => 1 ) [2025-02-04 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:26:05' and `end` < '2025-02-04 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:26:24] Production.INFO: count ==4662 [2025-02-04 16:26:26] Production.ERROR: pbx CDR StartTime 2025-02-04 13:26:05 - End Time 2025-02-04 16:26:05 [2025-02-04 16:26:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401576', 'tblTempUsageDetail_20' ) start [2025-02-04 16:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401576', 'tblTempUsageDetail_20' ) end [2025-02-04 16:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401576', 'tblTempVendorCDR_20' ) start [2025-02-04 16:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401576', 'tblTempVendorCDR_20' ) end [2025-02-04 16:26:26] Production.INFO: ProcessCDR(1,14401576,1,1,2) [2025-02-04 16:26:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:26:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:26:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:26:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401576', 'tblTempUsageDetail_20' ) start [2025-02-04 16:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401576', 'tblTempUsageDetail_20' ) end [2025-02-04 16:26:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:26:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:26:31] Production.INFO: ==8753== Releasing lock... [2025-02-04 16:26:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:26:31] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:27:05 [end_date_ymd] => 2025-02-04 16:27:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 13:27:05' and `end` < '2025-02-04 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-02-04 16:27:19] Production.INFO: count ==4673 [2025-02-04 16:27:21] Production.ERROR: pbx CDR StartTime 2025-02-04 13:27:05 - End Time 2025-02-04 16:27:05 [2025-02-04 16:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401581', 'tblTempUsageDetail_20' ) start [2025-02-04 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401581', 'tblTempUsageDetail_20' ) end [2025-02-04 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401581', 'tblTempVendorCDR_20' ) start [2025-02-04 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401581', 'tblTempVendorCDR_20' ) end [2025-02-04 16:27:21] Production.INFO: ProcessCDR(1,14401581,1,1,2) [2025-02-04 16:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401581', 'tblTempUsageDetail_20' ) start [2025-02-04 16:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401581', 'tblTempUsageDetail_20' ) end [2025-02-04 16:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:27:25] Production.INFO: ==8830== Releasing lock... [2025-02-04 16:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:27:25] Production.INFO: 63 MB #Memory Used# [2025-02-04 16:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:28:06 [end_date_ymd] => 2025-02-04 16:28:06 [RateCDR] => 1 ) [2025-02-04 16:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:28:06' and `end` < '2025-02-04 16:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:28:24] Production.INFO: count ==4689 [2025-02-04 16:28:26] Production.ERROR: pbx CDR StartTime 2025-02-04 13:28:06 - End Time 2025-02-04 16:28:06 [2025-02-04 16:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401586', 'tblTempUsageDetail_20' ) start [2025-02-04 16:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401586', 'tblTempUsageDetail_20' ) end [2025-02-04 16:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401586', 'tblTempVendorCDR_20' ) start [2025-02-04 16:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401586', 'tblTempVendorCDR_20' ) end [2025-02-04 16:28:26] Production.INFO: ProcessCDR(1,14401586,1,1,2) [2025-02-04 16:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401586', 'tblTempUsageDetail_20' ) start [2025-02-04 16:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401586', 'tblTempUsageDetail_20' ) end [2025-02-04 16:28:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:28:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:28:31] Production.INFO: ==8904== Releasing lock... [2025-02-04 16:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:28:31] Production.INFO: 63 MB #Memory Used# [2025-02-04 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:29:05 [end_date_ymd] => 2025-02-04 16:29:05 [RateCDR] => 1 ) [2025-02-04 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:29:05' and `end` < '2025-02-04 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-02-04 16:29:30] Production.INFO: count ==4697 [2025-02-04 16:29:32] Production.ERROR: pbx CDR StartTime 2025-02-04 13:29:05 - End Time 2025-02-04 16:29:05 [2025-02-04 16:29:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:29:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401591', 'tblTempUsageDetail_20' ) start [2025-02-04 16:29:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401591', 'tblTempUsageDetail_20' ) end [2025-02-04 16:29:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401591', 'tblTempVendorCDR_20' ) start [2025-02-04 16:29:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401591', 'tblTempVendorCDR_20' ) end [2025-02-04 16:29:32] Production.INFO: ProcessCDR(1,14401591,1,1,2) [2025-02-04 16:29:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:29:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:29:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:29:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:29:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401591', 'tblTempUsageDetail_20' ) start [2025-02-04 16:29:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401591', 'tblTempUsageDetail_20' ) end [2025-02-04 16:29:37] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:29:37] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:29:37] Production.INFO: ==8985== Releasing lock... [2025-02-04 16:29:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:29:37] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:30:05 [end_date_ymd] => 2025-02-04 16:30:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 13:30:05' and `end` < '2025-02-04 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-02-04 16:30:24] Production.INFO: count ==4721 [2025-02-04 16:30:26] Production.ERROR: pbx CDR StartTime 2025-02-04 13:30:05 - End Time 2025-02-04 16:30:05 [2025-02-04 16:30:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401594', 'tblTempUsageDetail_20' ) start [2025-02-04 16:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401594', 'tblTempUsageDetail_20' ) end [2025-02-04 16:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401594', 'tblTempVendorCDR_20' ) start [2025-02-04 16:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401594', 'tblTempVendorCDR_20' ) end [2025-02-04 16:30:26] Production.INFO: ProcessCDR(1,14401594,1,1,2) [2025-02-04 16:30:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:30:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:30:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:30:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401594', 'tblTempUsageDetail_20' ) start [2025-02-04 16:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401594', 'tblTempUsageDetail_20' ) end [2025-02-04 16:30:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:30:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:30:31] Production.INFO: ==9063== Releasing lock... [2025-02-04 16:30:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:30:31] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:31:05 [end_date_ymd] => 2025-02-04 16:31:05 [RateCDR] => 1 ) [2025-02-04 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:31:05' and `end` < '2025-02-04 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:31:24] Production.INFO: count ==4755 [2025-02-04 16:31:26] Production.ERROR: pbx CDR StartTime 2025-02-04 13:31:05 - End Time 2025-02-04 16:31:05 [2025-02-04 16:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401602', 'tblTempUsageDetail_20' ) start [2025-02-04 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401602', 'tblTempUsageDetail_20' ) end [2025-02-04 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401602', 'tblTempVendorCDR_20' ) start [2025-02-04 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401602', 'tblTempVendorCDR_20' ) end [2025-02-04 16:31:26] Production.INFO: ProcessCDR(1,14401602,1,1,2) [2025-02-04 16:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401602', 'tblTempUsageDetail_20' ) start [2025-02-04 16:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401602', 'tblTempUsageDetail_20' ) end [2025-02-04 16:31:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:31:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:31:31] Production.INFO: ==9175== Releasing lock... [2025-02-04 16:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:31:31] Production.INFO: 63.5 MB #Memory Used# [2025-02-04 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:32:05 [end_date_ymd] => 2025-02-04 16:32:05 [RateCDR] => 1 ) [2025-02-04 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:32:05' and `end` < '2025-02-04 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:32:22] Production.INFO: count ==4786 [2025-02-04 16:32:24] Production.ERROR: pbx CDR StartTime 2025-02-04 13:32:05 - End Time 2025-02-04 16:32:05 [2025-02-04 16:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401607', 'tblTempUsageDetail_20' ) start [2025-02-04 16:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401607', 'tblTempUsageDetail_20' ) end [2025-02-04 16:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401607', 'tblTempVendorCDR_20' ) start [2025-02-04 16:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401607', 'tblTempVendorCDR_20' ) end [2025-02-04 16:32:24] Production.INFO: ProcessCDR(1,14401607,1,1,2) [2025-02-04 16:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:32:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:32:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401607', 'tblTempUsageDetail_20' ) start [2025-02-04 16:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401607', 'tblTempUsageDetail_20' ) end [2025-02-04 16:32:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:32:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:32:29] Production.INFO: ==9250== Releasing lock... [2025-02-04 16:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:32:29] Production.INFO: 63.75 MB #Memory Used# [2025-02-04 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:33:05 [end_date_ymd] => 2025-02-04 16:33:05 [RateCDR] => 1 ) [2025-02-04 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:33:05' and `end` < '2025-02-04 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:33:22] Production.INFO: count ==4800 [2025-02-04 16:33:24] Production.ERROR: pbx CDR StartTime 2025-02-04 13:33:05 - End Time 2025-02-04 16:33:05 [2025-02-04 16:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401612', 'tblTempUsageDetail_20' ) start [2025-02-04 16:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401612', 'tblTempUsageDetail_20' ) end [2025-02-04 16:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401612', 'tblTempVendorCDR_20' ) start [2025-02-04 16:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401612', 'tblTempVendorCDR_20' ) end [2025-02-04 16:33:24] Production.INFO: ProcessCDR(1,14401612,1,1,2) [2025-02-04 16:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401612', 'tblTempUsageDetail_20' ) start [2025-02-04 16:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401612', 'tblTempUsageDetail_20' ) end [2025-02-04 16:33:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:33:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:33:28] Production.INFO: ==9323== Releasing lock... [2025-02-04 16:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:33:28] Production.INFO: 64 MB #Memory Used# [2025-02-04 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:34:05 [end_date_ymd] => 2025-02-04 16:34:05 [RateCDR] => 1 ) [2025-02-04 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:34:05' and `end` < '2025-02-04 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:34:25] Production.INFO: count ==4786 [2025-02-04 16:34:27] Production.ERROR: pbx CDR StartTime 2025-02-04 13:34:05 - End Time 2025-02-04 16:34:05 [2025-02-04 16:34:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401617', 'tblTempUsageDetail_20' ) start [2025-02-04 16:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401617', 'tblTempUsageDetail_20' ) end [2025-02-04 16:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401617', 'tblTempVendorCDR_20' ) start [2025-02-04 16:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401617', 'tblTempVendorCDR_20' ) end [2025-02-04 16:34:27] Production.INFO: ProcessCDR(1,14401617,1,1,2) [2025-02-04 16:34:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:34:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:34:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:34:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401617', 'tblTempUsageDetail_20' ) start [2025-02-04 16:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401617', 'tblTempUsageDetail_20' ) end [2025-02-04 16:34:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:34:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:34:32] Production.INFO: ==9399== Releasing lock... [2025-02-04 16:34:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:34:32] Production.INFO: 63.75 MB #Memory Used# [2025-02-04 16:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:35:06 [end_date_ymd] => 2025-02-04 16:35:06 [RateCDR] => 1 ) [2025-02-04 16:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:35:06' and `end` < '2025-02-04 16:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:35:26] Production.INFO: count ==4787 [2025-02-04 16:35:28] Production.ERROR: pbx CDR StartTime 2025-02-04 13:35:06 - End Time 2025-02-04 16:35:06 [2025-02-04 16:35:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401622', 'tblTempUsageDetail_20' ) start [2025-02-04 16:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401622', 'tblTempUsageDetail_20' ) end [2025-02-04 16:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401622', 'tblTempVendorCDR_20' ) start [2025-02-04 16:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401622', 'tblTempVendorCDR_20' ) end [2025-02-04 16:35:28] Production.INFO: ProcessCDR(1,14401622,1,1,2) [2025-02-04 16:35:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:35:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401622', 'tblTempUsageDetail_20' ) start [2025-02-04 16:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401622', 'tblTempUsageDetail_20' ) end [2025-02-04 16:35:33] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:35:33] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:35:33] Production.INFO: ==9472== Releasing lock... [2025-02-04 16:35:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:35:33] Production.INFO: 63.75 MB #Memory Used# [2025-02-04 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:36:05 [end_date_ymd] => 2025-02-04 16:36:05 [RateCDR] => 1 ) [2025-02-04 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:36:05' and `end` < '2025-02-04 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:36:26] Production.INFO: count ==4794 [2025-02-04 16:36:28] Production.ERROR: pbx CDR StartTime 2025-02-04 13:36:05 - End Time 2025-02-04 16:36:05 [2025-02-04 16:36:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401627', 'tblTempUsageDetail_20' ) start [2025-02-04 16:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401627', 'tblTempUsageDetail_20' ) end [2025-02-04 16:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401627', 'tblTempVendorCDR_20' ) start [2025-02-04 16:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401627', 'tblTempVendorCDR_20' ) end [2025-02-04 16:36:28] Production.INFO: ProcessCDR(1,14401627,1,1,2) [2025-02-04 16:36:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:36:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:36:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:36:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401627', 'tblTempUsageDetail_20' ) start [2025-02-04 16:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401627', 'tblTempUsageDetail_20' ) end [2025-02-04 16:36:33] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:36:33] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:36:33] Production.INFO: ==9547== Releasing lock... [2025-02-04 16:36:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:36:33] Production.INFO: 64 MB #Memory Used# [2025-02-04 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:37:05 [end_date_ymd] => 2025-02-04 16:37:05 [RateCDR] => 1 ) [2025-02-04 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:37:05' and `end` < '2025-02-04 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:37:22] Production.INFO: count ==4794 [2025-02-04 16:37:24] Production.ERROR: pbx CDR StartTime 2025-02-04 13:37:05 - End Time 2025-02-04 16:37:05 [2025-02-04 16:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401632', 'tblTempUsageDetail_20' ) start [2025-02-04 16:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401632', 'tblTempUsageDetail_20' ) end [2025-02-04 16:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401632', 'tblTempVendorCDR_20' ) start [2025-02-04 16:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401632', 'tblTempVendorCDR_20' ) end [2025-02-04 16:37:24] Production.INFO: ProcessCDR(1,14401632,1,1,2) [2025-02-04 16:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401632', 'tblTempUsageDetail_20' ) start [2025-02-04 16:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401632', 'tblTempUsageDetail_20' ) end [2025-02-04 16:37:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:37:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:37:29] Production.INFO: ==9619== Releasing lock... [2025-02-04 16:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:37:29] Production.INFO: 64 MB #Memory Used# [2025-02-04 16:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:38:04 [end_date_ymd] => 2025-02-04 16:38:04 [RateCDR] => 1 ) [2025-02-04 16:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:38:04' and `end` < '2025-02-04 16:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:38:23] Production.INFO: count ==4806 [2025-02-04 16:38:25] Production.ERROR: pbx CDR StartTime 2025-02-04 13:38:04 - End Time 2025-02-04 16:38:04 [2025-02-04 16:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401637', 'tblTempUsageDetail_20' ) start [2025-02-04 16:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401637', 'tblTempUsageDetail_20' ) end [2025-02-04 16:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401637', 'tblTempVendorCDR_20' ) start [2025-02-04 16:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401637', 'tblTempVendorCDR_20' ) end [2025-02-04 16:38:25] Production.INFO: ProcessCDR(1,14401637,1,1,2) [2025-02-04 16:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401637', 'tblTempUsageDetail_20' ) start [2025-02-04 16:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401637', 'tblTempUsageDetail_20' ) end [2025-02-04 16:38:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:38:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:38:30] Production.INFO: ==9695== Releasing lock... [2025-02-04 16:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:38:30] Production.INFO: 64 MB #Memory Used# [2025-02-04 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:39:05 [end_date_ymd] => 2025-02-04 16:39:05 [RateCDR] => 1 ) [2025-02-04 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:39:05' and `end` < '2025-02-04 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:39:24] Production.INFO: count ==4798 [2025-02-04 16:39:26] Production.ERROR: pbx CDR StartTime 2025-02-04 13:39:05 - End Time 2025-02-04 16:39:05 [2025-02-04 16:39:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401642', 'tblTempUsageDetail_20' ) start [2025-02-04 16:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401642', 'tblTempUsageDetail_20' ) end [2025-02-04 16:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401642', 'tblTempVendorCDR_20' ) start [2025-02-04 16:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401642', 'tblTempVendorCDR_20' ) end [2025-02-04 16:39:26] Production.INFO: ProcessCDR(1,14401642,1,1,2) [2025-02-04 16:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:39:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:39:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:39:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401642', 'tblTempUsageDetail_20' ) start [2025-02-04 16:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401642', 'tblTempUsageDetail_20' ) end [2025-02-04 16:39:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:39:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:39:31] Production.INFO: ==9768== Releasing lock... [2025-02-04 16:39:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:39:31] Production.INFO: 64 MB #Memory Used# [2025-02-04 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:40:06 [end_date_ymd] => 2025-02-04 16:40:06 [RateCDR] => 1 ) [2025-02-04 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-02-04 13:40:06' and `end` < '2025-02-04 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-02-04 16:40:26] Production.INFO: count ==4810 [2025-02-04 16:40:28] Production.ERROR: pbx CDR StartTime 2025-02-04 13:40:06 - End Time 2025-02-04 16:40:06 [2025-02-04 16:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401647', 'tblTempUsageDetail_20' ) start [2025-02-04 16:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401647', 'tblTempUsageDetail_20' ) end [2025-02-04 16:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401647', 'tblTempVendorCDR_20' ) start [2025-02-04 16:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401647', 'tblTempVendorCDR_20' ) end [2025-02-04 16:40:28] Production.INFO: ProcessCDR(1,14401647,1,1,2) [2025-02-04 16:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:40:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:40:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:40:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401647', 'tblTempUsageDetail_20' ) start [2025-02-04 16:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401647', 'tblTempUsageDetail_20' ) end [2025-02-04 16:40:34] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:40:34] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:40:34] Production.INFO: ==9847== Releasing lock... [2025-02-04 16:40:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:40:34] Production.INFO: 64 MB #Memory Used# [2025-02-04 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:41:05 [end_date_ymd] => 2025-02-04 16:41:05 [RateCDR] => 1 ) [2025-02-04 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:41:05' and `end` < '2025-02-04 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:41:19] Production.INFO: count ==4836 [2025-02-04 16:41:21] Production.ERROR: pbx CDR StartTime 2025-02-04 13:41:05 - End Time 2025-02-04 16:41:05 [2025-02-04 16:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401653', 'tblTempUsageDetail_20' ) start [2025-02-04 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401653', 'tblTempUsageDetail_20' ) end [2025-02-04 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401653', 'tblTempVendorCDR_20' ) start [2025-02-04 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401653', 'tblTempVendorCDR_20' ) end [2025-02-04 16:41:21] Production.INFO: ProcessCDR(1,14401653,1,1,2) [2025-02-04 16:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401653', 'tblTempUsageDetail_20' ) start [2025-02-04 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401653', 'tblTempUsageDetail_20' ) end [2025-02-04 16:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:41:26] Production.INFO: ==9983== Releasing lock... [2025-02-04 16:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:41:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-04 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:42:05 [end_date_ymd] => 2025-02-04 16:42:05 [RateCDR] => 1 ) [2025-02-04 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:42:05' and `end` < '2025-02-04 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:42:24] Production.INFO: count ==4863 [2025-02-04 16:42:26] Production.ERROR: pbx CDR StartTime 2025-02-04 13:42:05 - End Time 2025-02-04 16:42:05 [2025-02-04 16:42:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401658', 'tblTempUsageDetail_20' ) start [2025-02-04 16:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401658', 'tblTempUsageDetail_20' ) end [2025-02-04 16:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401658', 'tblTempVendorCDR_20' ) start [2025-02-04 16:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401658', 'tblTempVendorCDR_20' ) end [2025-02-04 16:42:26] Production.INFO: ProcessCDR(1,14401658,1,1,2) [2025-02-04 16:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:42:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:42:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:42:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401658', 'tblTempUsageDetail_20' ) start [2025-02-04 16:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401658', 'tblTempUsageDetail_20' ) end [2025-02-04 16:42:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:42:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:42:31] Production.INFO: ==10058== Releasing lock... [2025-02-04 16:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:42:31] Production.INFO: 64.5 MB #Memory Used# [2025-02-04 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:43:05 [end_date_ymd] => 2025-02-04 16:43:05 [RateCDR] => 1 ) [2025-02-04 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:43:05' and `end` < '2025-02-04 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:43:20] Production.INFO: count ==4868 [2025-02-04 16:43:22] Production.ERROR: pbx CDR StartTime 2025-02-04 13:43:05 - End Time 2025-02-04 16:43:05 [2025-02-04 16:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401663', 'tblTempUsageDetail_20' ) start [2025-02-04 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401663', 'tblTempUsageDetail_20' ) end [2025-02-04 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401663', 'tblTempVendorCDR_20' ) start [2025-02-04 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401663', 'tblTempVendorCDR_20' ) end [2025-02-04 16:43:22] Production.INFO: ProcessCDR(1,14401663,1,1,2) [2025-02-04 16:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401663', 'tblTempUsageDetail_20' ) start [2025-02-04 16:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401663', 'tblTempUsageDetail_20' ) end [2025-02-04 16:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:43:25] Production.INFO: ==10168== Releasing lock... [2025-02-04 16:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:43:25] Production.INFO: 64.5 MB #Memory Used# [2025-02-04 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:44:05 [end_date_ymd] => 2025-02-04 16:44:05 [RateCDR] => 1 ) [2025-02-04 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:44:05' and `end` < '2025-02-04 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:44:19] Production.INFO: count ==4880 [2025-02-04 16:44:21] Production.ERROR: pbx CDR StartTime 2025-02-04 13:44:05 - End Time 2025-02-04 16:44:05 [2025-02-04 16:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401668', 'tblTempUsageDetail_20' ) start [2025-02-04 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401668', 'tblTempUsageDetail_20' ) end [2025-02-04 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401668', 'tblTempVendorCDR_20' ) start [2025-02-04 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401668', 'tblTempVendorCDR_20' ) end [2025-02-04 16:44:21] Production.INFO: ProcessCDR(1,14401668,1,1,2) [2025-02-04 16:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401668', 'tblTempUsageDetail_20' ) start [2025-02-04 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401668', 'tblTempUsageDetail_20' ) end [2025-02-04 16:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:44:26] Production.INFO: ==10243== Releasing lock... [2025-02-04 16:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:44:26] Production.INFO: 64.5 MB #Memory Used# [2025-02-04 16:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:45:06 [end_date_ymd] => 2025-02-04 16:45:06 [RateCDR] => 1 ) [2025-02-04 16:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:45:06' and `end` < '2025-02-04 16:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:45:34] Production.INFO: count ==4926 [2025-02-04 16:45:36] Production.ERROR: pbx CDR StartTime 2025-02-04 13:45:06 - End Time 2025-02-04 16:45:06 [2025-02-04 16:45:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:45:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401673', 'tblTempUsageDetail_20' ) start [2025-02-04 16:45:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401673', 'tblTempUsageDetail_20' ) end [2025-02-04 16:45:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401673', 'tblTempVendorCDR_20' ) start [2025-02-04 16:45:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401673', 'tblTempVendorCDR_20' ) end [2025-02-04 16:45:36] Production.INFO: ProcessCDR(1,14401673,1,1,2) [2025-02-04 16:45:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:45:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:45:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:45:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:45:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401673', 'tblTempUsageDetail_20' ) start [2025-02-04 16:45:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401673', 'tblTempUsageDetail_20' ) end [2025-02-04 16:45:41] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:45:41] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:45:41] Production.INFO: ==10330== Releasing lock... [2025-02-04 16:45:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:45:41] Production.INFO: 64.75 MB #Memory Used# [2025-02-04 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:46:05 [end_date_ymd] => 2025-02-04 16:46:05 [RateCDR] => 1 ) [2025-02-04 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:46:05' and `end` < '2025-02-04 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:46:26] Production.INFO: count ==4920 [2025-02-04 16:46:28] Production.ERROR: pbx CDR StartTime 2025-02-04 13:46:05 - End Time 2025-02-04 16:46:05 [2025-02-04 16:46:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401678', 'tblTempUsageDetail_20' ) start [2025-02-04 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401678', 'tblTempUsageDetail_20' ) end [2025-02-04 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401678', 'tblTempVendorCDR_20' ) start [2025-02-04 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401678', 'tblTempVendorCDR_20' ) end [2025-02-04 16:46:28] Production.INFO: ProcessCDR(1,14401678,1,1,2) [2025-02-04 16:46:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:46:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:46:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:46:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401678', 'tblTempUsageDetail_20' ) start [2025-02-04 16:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401678', 'tblTempUsageDetail_20' ) end [2025-02-04 16:46:33] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:46:33] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:46:33] Production.INFO: ==10443== Releasing lock... [2025-02-04 16:46:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:46:33] Production.INFO: 64.75 MB #Memory Used# [2025-02-04 16:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:47:04 [end_date_ymd] => 2025-02-04 16:47:04 [RateCDR] => 1 ) [2025-02-04 16:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:47:04' and `end` < '2025-02-04 16:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:47:21] Production.INFO: count ==4949 [2025-02-04 16:47:23] Production.ERROR: pbx CDR StartTime 2025-02-04 13:47:04 - End Time 2025-02-04 16:47:04 [2025-02-04 16:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401683', 'tblTempUsageDetail_20' ) start [2025-02-04 16:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401683', 'tblTempUsageDetail_20' ) end [2025-02-04 16:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401683', 'tblTempVendorCDR_20' ) start [2025-02-04 16:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401683', 'tblTempVendorCDR_20' ) end [2025-02-04 16:47:23] Production.INFO: ProcessCDR(1,14401683,1,1,2) [2025-02-04 16:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401683', 'tblTempUsageDetail_20' ) start [2025-02-04 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401683', 'tblTempUsageDetail_20' ) end [2025-02-04 16:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:47:27] Production.INFO: ==10518== Releasing lock... [2025-02-04 16:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:47:27] Production.INFO: 65 MB #Memory Used# [2025-02-04 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:48:05 [end_date_ymd] => 2025-02-04 16:48:05 [RateCDR] => 1 ) [2025-02-04 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:48:05' and `end` < '2025-02-04 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:48:19] Production.INFO: count ==4923 [2025-02-04 16:48:21] Production.ERROR: pbx CDR StartTime 2025-02-04 13:48:05 - End Time 2025-02-04 16:48:05 [2025-02-04 16:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401688', 'tblTempUsageDetail_20' ) start [2025-02-04 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401688', 'tblTempUsageDetail_20' ) end [2025-02-04 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401688', 'tblTempVendorCDR_20' ) start [2025-02-04 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401688', 'tblTempVendorCDR_20' ) end [2025-02-04 16:48:21] Production.INFO: ProcessCDR(1,14401688,1,1,2) [2025-02-04 16:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401688', 'tblTempUsageDetail_20' ) start [2025-02-04 16:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401688', 'tblTempUsageDetail_20' ) end [2025-02-04 16:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:48:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:48:25] Production.INFO: ==10592== Releasing lock... [2025-02-04 16:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:48:25] Production.INFO: 64.75 MB #Memory Used# [2025-02-04 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:49:05 [end_date_ymd] => 2025-02-04 16:49:05 [RateCDR] => 1 ) [2025-02-04 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:49:05' and `end` < '2025-02-04 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:49:19] Production.INFO: count ==4938 [2025-02-04 16:49:21] Production.ERROR: pbx CDR StartTime 2025-02-04 13:49:05 - End Time 2025-02-04 16:49:05 [2025-02-04 16:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401693', 'tblTempUsageDetail_20' ) start [2025-02-04 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401693', 'tblTempUsageDetail_20' ) end [2025-02-04 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401693', 'tblTempVendorCDR_20' ) start [2025-02-04 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401693', 'tblTempVendorCDR_20' ) end [2025-02-04 16:49:21] Production.INFO: ProcessCDR(1,14401693,1,1,2) [2025-02-04 16:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401693', 'tblTempUsageDetail_20' ) start [2025-02-04 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401693', 'tblTempUsageDetail_20' ) end [2025-02-04 16:49:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:49:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:49:26] Production.INFO: ==10666== Releasing lock... [2025-02-04 16:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:49:26] Production.INFO: 65 MB #Memory Used# [2025-02-04 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:50:06 [end_date_ymd] => 2025-02-04 16:50:06 [RateCDR] => 1 ) [2025-02-04 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:50:06' and `end` < '2025-02-04 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:50:23] Production.INFO: count ==4931 [2025-02-04 16:50:25] Production.ERROR: pbx CDR StartTime 2025-02-04 13:50:06 - End Time 2025-02-04 16:50:06 [2025-02-04 16:50:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401698', 'tblTempUsageDetail_20' ) start [2025-02-04 16:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401698', 'tblTempUsageDetail_20' ) end [2025-02-04 16:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401698', 'tblTempVendorCDR_20' ) start [2025-02-04 16:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401698', 'tblTempVendorCDR_20' ) end [2025-02-04 16:50:25] Production.INFO: ProcessCDR(1,14401698,1,1,2) [2025-02-04 16:50:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401698', 'tblTempUsageDetail_20' ) start [2025-02-04 16:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401698', 'tblTempUsageDetail_20' ) end [2025-02-04 16:50:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:50:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:50:29] Production.INFO: ==10742== Releasing lock... [2025-02-04 16:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:50:29] Production.INFO: 65 MB #Memory Used# [2025-02-04 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:51:05 [end_date_ymd] => 2025-02-04 16:51:05 [RateCDR] => 1 ) [2025-02-04 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:51:05' and `end` < '2025-02-04 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:51:19] Production.INFO: count ==4983 [2025-02-04 16:51:21] Production.ERROR: pbx CDR StartTime 2025-02-04 13:51:05 - End Time 2025-02-04 16:51:05 [2025-02-04 16:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401704', 'tblTempUsageDetail_20' ) start [2025-02-04 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401704', 'tblTempUsageDetail_20' ) end [2025-02-04 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401704', 'tblTempVendorCDR_20' ) start [2025-02-04 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401704', 'tblTempVendorCDR_20' ) end [2025-02-04 16:51:21] Production.INFO: ProcessCDR(1,14401704,1,1,2) [2025-02-04 16:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401704', 'tblTempUsageDetail_20' ) start [2025-02-04 16:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401704', 'tblTempUsageDetail_20' ) end [2025-02-04 16:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:51:25] Production.INFO: ==10851== Releasing lock... [2025-02-04 16:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:51:25] Production.INFO: 65.25 MB #Memory Used# [2025-02-04 16:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:52:04 [end_date_ymd] => 2025-02-04 16:52:04 [RateCDR] => 1 ) [2025-02-04 16:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:52:04' and `end` < '2025-02-04 16:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:52:22] Production.INFO: count ==5021 [2025-02-04 16:52:24] Production.ERROR: pbx CDR StartTime 2025-02-04 13:52:04 - End Time 2025-02-04 16:52:04 [2025-02-04 16:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401709', 'tblTempUsageDetail_20' ) start [2025-02-04 16:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401709', 'tblTempUsageDetail_20' ) end [2025-02-04 16:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401709', 'tblTempVendorCDR_20' ) start [2025-02-04 16:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401709', 'tblTempVendorCDR_20' ) end [2025-02-04 16:52:24] Production.INFO: ProcessCDR(1,14401709,1,1,2) [2025-02-04 16:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401709', 'tblTempUsageDetail_20' ) start [2025-02-04 16:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401709', 'tblTempUsageDetail_20' ) end [2025-02-04 16:52:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:52:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:52:29] Production.INFO: ==10927== Releasing lock... [2025-02-04 16:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:52:29] Production.INFO: 65.5 MB #Memory Used# [2025-02-04 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:53:05 [end_date_ymd] => 2025-02-04 16:53:05 [RateCDR] => 1 ) [2025-02-04 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:53:05' and `end` < '2025-02-04 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:53:22] Production.INFO: count ==5033 [2025-02-04 16:53:24] Production.ERROR: pbx CDR StartTime 2025-02-04 13:53:05 - End Time 2025-02-04 16:53:05 [2025-02-04 16:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401714', 'tblTempUsageDetail_20' ) start [2025-02-04 16:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401714', 'tblTempUsageDetail_20' ) end [2025-02-04 16:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401714', 'tblTempVendorCDR_20' ) start [2025-02-04 16:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401714', 'tblTempVendorCDR_20' ) end [2025-02-04 16:53:24] Production.INFO: ProcessCDR(1,14401714,1,1,2) [2025-02-04 16:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401714', 'tblTempUsageDetail_20' ) start [2025-02-04 16:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401714', 'tblTempUsageDetail_20' ) end [2025-02-04 16:53:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:53:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:53:29] Production.INFO: ==11000== Releasing lock... [2025-02-04 16:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:53:29] Production.INFO: 65.75 MB #Memory Used# [2025-02-04 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:54:05 [end_date_ymd] => 2025-02-04 16:54:05 [RateCDR] => 1 ) [2025-02-04 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:54:05' and `end` < '2025-02-04 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:54:26] Production.INFO: count ==5044 [2025-02-04 16:54:28] Production.ERROR: pbx CDR StartTime 2025-02-04 13:54:05 - End Time 2025-02-04 16:54:05 [2025-02-04 16:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401719', 'tblTempUsageDetail_20' ) start [2025-02-04 16:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401719', 'tblTempUsageDetail_20' ) end [2025-02-04 16:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401719', 'tblTempVendorCDR_20' ) start [2025-02-04 16:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401719', 'tblTempVendorCDR_20' ) end [2025-02-04 16:54:28] Production.INFO: ProcessCDR(1,14401719,1,1,2) [2025-02-04 16:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:54:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:54:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:54:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401719', 'tblTempUsageDetail_20' ) start [2025-02-04 16:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401719', 'tblTempUsageDetail_20' ) end [2025-02-04 16:54:33] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:54:33] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:54:33] Production.INFO: ==11077== Releasing lock... [2025-02-04 16:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:54:33] Production.INFO: 65.75 MB #Memory Used# [2025-02-04 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:55:05 [end_date_ymd] => 2025-02-04 16:55:05 [RateCDR] => 1 ) [2025-02-04 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:55:05' and `end` < '2025-02-04 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:55:28] Production.INFO: count ==5046 [2025-02-04 16:55:30] Production.ERROR: pbx CDR StartTime 2025-02-04 13:55:05 - End Time 2025-02-04 16:55:05 [2025-02-04 16:55:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401724', 'tblTempUsageDetail_20' ) start [2025-02-04 16:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401724', 'tblTempUsageDetail_20' ) end [2025-02-04 16:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401724', 'tblTempVendorCDR_20' ) start [2025-02-04 16:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401724', 'tblTempVendorCDR_20' ) end [2025-02-04 16:55:30] Production.INFO: ProcessCDR(1,14401724,1,1,2) [2025-02-04 16:55:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:55:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:55:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:55:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401724', 'tblTempUsageDetail_20' ) start [2025-02-04 16:55:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401724', 'tblTempUsageDetail_20' ) end [2025-02-04 16:55:35] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:55:35] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:55:35] Production.INFO: ==11153== Releasing lock... [2025-02-04 16:55:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:55:35] Production.INFO: 65.75 MB #Memory Used# [2025-02-04 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:56:05 [end_date_ymd] => 2025-02-04 16:56:05 [RateCDR] => 1 ) [2025-02-04 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:56:05' and `end` < '2025-02-04 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:56:23] Production.INFO: count ==5061 [2025-02-04 16:56:25] Production.ERROR: pbx CDR StartTime 2025-02-04 13:56:05 - End Time 2025-02-04 16:56:05 [2025-02-04 16:56:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401729', 'tblTempUsageDetail_20' ) start [2025-02-04 16:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401729', 'tblTempUsageDetail_20' ) end [2025-02-04 16:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401729', 'tblTempVendorCDR_20' ) start [2025-02-04 16:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401729', 'tblTempVendorCDR_20' ) end [2025-02-04 16:56:25] Production.INFO: ProcessCDR(1,14401729,1,1,2) [2025-02-04 16:56:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401729', 'tblTempUsageDetail_20' ) start [2025-02-04 16:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401729', 'tblTempUsageDetail_20' ) end [2025-02-04 16:56:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:56:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:56:30] Production.INFO: ==11229== Releasing lock... [2025-02-04 16:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:56:30] Production.INFO: 65.75 MB #Memory Used# [2025-02-04 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:57:05 [end_date_ymd] => 2025-02-04 16:57:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 13:57:05' and `end` < '2025-02-04 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-02-04 16:57:32] Production.INFO: count ==5052 [2025-02-04 16:57:34] Production.ERROR: pbx CDR StartTime 2025-02-04 13:57:05 - End Time 2025-02-04 16:57:05 [2025-02-04 16:57:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:57:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401734', 'tblTempUsageDetail_20' ) start [2025-02-04 16:57:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401734', 'tblTempUsageDetail_20' ) end [2025-02-04 16:57:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401734', 'tblTempVendorCDR_20' ) start [2025-02-04 16:57:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401734', 'tblTempVendorCDR_20' ) end [2025-02-04 16:57:34] Production.INFO: ProcessCDR(1,14401734,1,1,2) [2025-02-04 16:57:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:57:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:57:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:57:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:57:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401734', 'tblTempUsageDetail_20' ) start [2025-02-04 16:57:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401734', 'tblTempUsageDetail_20' ) end [2025-02-04 16:57:38] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:57:38] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:57:38] Production.INFO: ==11303== Releasing lock... [2025-02-04 16:57:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:57:38] Production.INFO: 65.75 MB #Memory Used# [2025-02-04 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:58:05 [end_date_ymd] => 2025-02-04 16:58:05 [RateCDR] => 1 ) [2025-02-04 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:58:05' and `end` < '2025-02-04 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:58:25] Production.INFO: count ==5054 [2025-02-04 16:58:27] Production.ERROR: pbx CDR StartTime 2025-02-04 13:58:05 - End Time 2025-02-04 16:58:05 [2025-02-04 16:58:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401739', 'tblTempUsageDetail_20' ) start [2025-02-04 16:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401739', 'tblTempUsageDetail_20' ) end [2025-02-04 16:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401739', 'tblTempVendorCDR_20' ) start [2025-02-04 16:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401739', 'tblTempVendorCDR_20' ) end [2025-02-04 16:58:27] Production.INFO: ProcessCDR(1,14401739,1,1,2) [2025-02-04 16:58:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:58:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:58:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:58:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401739', 'tblTempUsageDetail_20' ) start [2025-02-04 16:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401739', 'tblTempUsageDetail_20' ) end [2025-02-04 16:58:32] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:58:32] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:58:32] Production.INFO: ==11469== Releasing lock... [2025-02-04 16:58:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:58:32] Production.INFO: 65.75 MB #Memory Used# [2025-02-04 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 13:59:05 [end_date_ymd] => 2025-02-04 16:59:05 [RateCDR] => 1 ) [2025-02-04 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 13:59:05' and `end` < '2025-02-04 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 16:59:21] Production.INFO: count ==5051 [2025-02-04 16:59:22] Production.ERROR: pbx CDR StartTime 2025-02-04 13:59:05 - End Time 2025-02-04 16:59:05 [2025-02-04 16:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401744', 'tblTempUsageDetail_20' ) start [2025-02-04 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401744', 'tblTempUsageDetail_20' ) end [2025-02-04 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401744', 'tblTempVendorCDR_20' ) start [2025-02-04 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401744', 'tblTempVendorCDR_20' ) end [2025-02-04 16:59:23] Production.INFO: ProcessCDR(1,14401744,1,1,2) [2025-02-04 16:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 16:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401744', 'tblTempUsageDetail_20' ) start [2025-02-04 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401744', 'tblTempUsageDetail_20' ) end [2025-02-04 16:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 16:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 16:59:26] Production.INFO: ==11542== Releasing lock... [2025-02-04 16:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 16:59:26] Production.INFO: 65.75 MB #Memory Used# [2025-02-04 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:00:06 [end_date_ymd] => 2025-02-04 17:00:06 [RateCDR] => 1 ) [2025-02-04 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-02-04 14:00:06' and `end` < '2025-02-04 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-02-04 17:00:20] Production.INFO: count ==5045 [2025-02-04 17:00:22] Production.ERROR: pbx CDR StartTime 2025-02-04 14:00:06 - End Time 2025-02-04 17:00:06 [2025-02-04 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401749', 'tblTempUsageDetail_20' ) start [2025-02-04 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401749', 'tblTempUsageDetail_20' ) end [2025-02-04 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401749', 'tblTempVendorCDR_20' ) start [2025-02-04 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401749', 'tblTempVendorCDR_20' ) end [2025-02-04 17:00:22] Production.INFO: ProcessCDR(1,14401749,1,1,2) [2025-02-04 17:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401749', 'tblTempUsageDetail_20' ) start [2025-02-04 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401749', 'tblTempUsageDetail_20' ) end [2025-02-04 17:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:00:27] Production.INFO: ==11621== Releasing lock... [2025-02-04 17:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:00:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-04 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:01:05 [end_date_ymd] => 2025-02-04 17:01:05 [RateCDR] => 1 ) [2025-02-04 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:01:05' and `end` < '2025-02-04 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:01:21] Production.INFO: count ==5028 [2025-02-04 17:01:23] Production.ERROR: pbx CDR StartTime 2025-02-04 14:01:05 - End Time 2025-02-04 17:01:05 [2025-02-04 17:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401755', 'tblTempUsageDetail_20' ) start [2025-02-04 17:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401755', 'tblTempUsageDetail_20' ) end [2025-02-04 17:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401755', 'tblTempVendorCDR_20' ) start [2025-02-04 17:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401755', 'tblTempVendorCDR_20' ) end [2025-02-04 17:01:23] Production.INFO: ProcessCDR(1,14401755,1,1,2) [2025-02-04 17:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401755', 'tblTempUsageDetail_20' ) start [2025-02-04 17:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401755', 'tblTempUsageDetail_20' ) end [2025-02-04 17:01:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:01:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:01:28] Production.INFO: ==11729== Releasing lock... [2025-02-04 17:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:01:28] Production.INFO: 65.75 MB #Memory Used# [2025-02-04 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:02:05 [end_date_ymd] => 2025-02-04 17:02:05 [RateCDR] => 1 ) [2025-02-04 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:02:05' and `end` < '2025-02-04 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:02:21] Production.INFO: count ==5013 [2025-02-04 17:02:23] Production.ERROR: pbx CDR StartTime 2025-02-04 14:02:05 - End Time 2025-02-04 17:02:05 [2025-02-04 17:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401760', 'tblTempUsageDetail_20' ) start [2025-02-04 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401760', 'tblTempUsageDetail_20' ) end [2025-02-04 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401760', 'tblTempVendorCDR_20' ) start [2025-02-04 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401760', 'tblTempVendorCDR_20' ) end [2025-02-04 17:02:23] Production.INFO: ProcessCDR(1,14401760,1,1,2) [2025-02-04 17:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401760', 'tblTempUsageDetail_20' ) start [2025-02-04 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401760', 'tblTempUsageDetail_20' ) end [2025-02-04 17:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:02:27] Production.INFO: ==11824== Releasing lock... [2025-02-04 17:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:02:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-04 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:03:05 [end_date_ymd] => 2025-02-04 17:03:05 [RateCDR] => 1 ) [2025-02-04 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:03:05' and `end` < '2025-02-04 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:03:20] Production.INFO: count ==5013 [2025-02-04 17:03:22] Production.ERROR: pbx CDR StartTime 2025-02-04 14:03:05 - End Time 2025-02-04 17:03:05 [2025-02-04 17:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401765', 'tblTempUsageDetail_20' ) start [2025-02-04 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401765', 'tblTempUsageDetail_20' ) end [2025-02-04 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401765', 'tblTempVendorCDR_20' ) start [2025-02-04 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401765', 'tblTempVendorCDR_20' ) end [2025-02-04 17:03:22] Production.INFO: ProcessCDR(1,14401765,1,1,2) [2025-02-04 17:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401765', 'tblTempUsageDetail_20' ) start [2025-02-04 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401765', 'tblTempUsageDetail_20' ) end [2025-02-04 17:03:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:03:27] Production.INFO: ==11903== Releasing lock... [2025-02-04 17:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:03:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-04 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:04:05 [end_date_ymd] => 2025-02-04 17:04:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 14:04:05' and `end` < '2025-02-04 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-02-04 17:04:20] Production.INFO: count ==5021 [2025-02-04 17:04:22] Production.ERROR: pbx CDR StartTime 2025-02-04 14:04:05 - End Time 2025-02-04 17:04:05 [2025-02-04 17:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401770', 'tblTempUsageDetail_20' ) start [2025-02-04 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401770', 'tblTempUsageDetail_20' ) end [2025-02-04 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401770', 'tblTempVendorCDR_20' ) start [2025-02-04 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401770', 'tblTempVendorCDR_20' ) end [2025-02-04 17:04:23] Production.INFO: ProcessCDR(1,14401770,1,1,2) [2025-02-04 17:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401770', 'tblTempUsageDetail_20' ) start [2025-02-04 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401770', 'tblTempUsageDetail_20' ) end [2025-02-04 17:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:04:27] Production.INFO: ==11976== Releasing lock... [2025-02-04 17:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:04:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-04 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:05:05 [end_date_ymd] => 2025-02-04 17:05:05 [RateCDR] => 1 ) [2025-02-04 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:05:05' and `end` < '2025-02-04 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:05:19] Production.INFO: count ==5007 [2025-02-04 17:05:21] Production.ERROR: pbx CDR StartTime 2025-02-04 14:05:05 - End Time 2025-02-04 17:05:05 [2025-02-04 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401775', 'tblTempUsageDetail_20' ) start [2025-02-04 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401775', 'tblTempUsageDetail_20' ) end [2025-02-04 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401775', 'tblTempVendorCDR_20' ) start [2025-02-04 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401775', 'tblTempVendorCDR_20' ) end [2025-02-04 17:05:21] Production.INFO: ProcessCDR(1,14401775,1,1,2) [2025-02-04 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401775', 'tblTempUsageDetail_20' ) start [2025-02-04 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401775', 'tblTempUsageDetail_20' ) end [2025-02-04 17:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:05:26] Production.INFO: ==12048== Releasing lock... [2025-02-04 17:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:05:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-04 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:06:05 [end_date_ymd] => 2025-02-04 17:06:05 [RateCDR] => 1 ) [2025-02-04 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:06:05' and `end` < '2025-02-04 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:06:19] Production.INFO: count ==4989 [2025-02-04 17:06:21] Production.ERROR: pbx CDR StartTime 2025-02-04 14:06:05 - End Time 2025-02-04 17:06:05 [2025-02-04 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401780', 'tblTempUsageDetail_20' ) start [2025-02-04 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401780', 'tblTempUsageDetail_20' ) end [2025-02-04 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401780', 'tblTempVendorCDR_20' ) start [2025-02-04 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401780', 'tblTempVendorCDR_20' ) end [2025-02-04 17:06:21] Production.INFO: ProcessCDR(1,14401780,1,1,2) [2025-02-04 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401780', 'tblTempUsageDetail_20' ) start [2025-02-04 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401780', 'tblTempUsageDetail_20' ) end [2025-02-04 17:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:06:25] Production.INFO: ==12124== Releasing lock... [2025-02-04 17:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:06:25] Production.INFO: 65.25 MB #Memory Used# [2025-02-04 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:07:05 [end_date_ymd] => 2025-02-04 17:07:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 14:07:05' and `end` < '2025-02-04 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-02-04 17:07:21] Production.INFO: count ==4984 [2025-02-04 17:07:23] Production.ERROR: pbx CDR StartTime 2025-02-04 14:07:05 - End Time 2025-02-04 17:07:05 [2025-02-04 17:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401785', 'tblTempUsageDetail_20' ) start [2025-02-04 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401785', 'tblTempUsageDetail_20' ) end [2025-02-04 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401785', 'tblTempVendorCDR_20' ) start [2025-02-04 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401785', 'tblTempVendorCDR_20' ) end [2025-02-04 17:07:23] Production.INFO: ProcessCDR(1,14401785,1,1,2) [2025-02-04 17:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401785', 'tblTempUsageDetail_20' ) start [2025-02-04 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401785', 'tblTempUsageDetail_20' ) end [2025-02-04 17:07:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:07:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:07:27] Production.INFO: ==12203== Releasing lock... [2025-02-04 17:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:07:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-04 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:08:05 [end_date_ymd] => 2025-02-04 17:08:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 14:08:05' and `end` < '2025-02-04 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-02-04 17:08:21] Production.INFO: count ==4990 [2025-02-04 17:08:23] Production.ERROR: pbx CDR StartTime 2025-02-04 14:08:05 - End Time 2025-02-04 17:08:05 [2025-02-04 17:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401790', 'tblTempUsageDetail_20' ) start [2025-02-04 17:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401790', 'tblTempUsageDetail_20' ) end [2025-02-04 17:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401790', 'tblTempVendorCDR_20' ) start [2025-02-04 17:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401790', 'tblTempVendorCDR_20' ) end [2025-02-04 17:08:23] Production.INFO: ProcessCDR(1,14401790,1,1,2) [2025-02-04 17:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401790', 'tblTempUsageDetail_20' ) start [2025-02-04 17:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401790', 'tblTempUsageDetail_20' ) end [2025-02-04 17:08:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:08:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:08:29] Production.INFO: ==12280== Releasing lock... [2025-02-04 17:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:08:29] Production.INFO: 65.25 MB #Memory Used# [2025-02-04 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:09:05 [end_date_ymd] => 2025-02-04 17:09:05 [RateCDR] => 1 ) [2025-02-04 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:09:05' and `end` < '2025-02-04 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:09:19] Production.INFO: count ==4980 [2025-02-04 17:09:21] Production.ERROR: pbx CDR StartTime 2025-02-04 14:09:05 - End Time 2025-02-04 17:09:05 [2025-02-04 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401795', 'tblTempUsageDetail_20' ) start [2025-02-04 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401795', 'tblTempUsageDetail_20' ) end [2025-02-04 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401795', 'tblTempVendorCDR_20' ) start [2025-02-04 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401795', 'tblTempVendorCDR_20' ) end [2025-02-04 17:09:21] Production.INFO: ProcessCDR(1,14401795,1,1,2) [2025-02-04 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401795', 'tblTempUsageDetail_20' ) start [2025-02-04 17:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401795', 'tblTempUsageDetail_20' ) end [2025-02-04 17:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:09:25] Production.INFO: ==12356== Releasing lock... [2025-02-04 17:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:09:25] Production.INFO: 65.25 MB #Memory Used# [2025-02-04 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:10:06 [end_date_ymd] => 2025-02-04 17:10:06 [RateCDR] => 1 ) [2025-02-04 17:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:10:06' and `end` < '2025-02-04 17:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:10:20] Production.INFO: count ==4971 [2025-02-04 17:10:22] Production.ERROR: pbx CDR StartTime 2025-02-04 14:10:06 - End Time 2025-02-04 17:10:06 [2025-02-04 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401801', 'tblTempUsageDetail_20' ) start [2025-02-04 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401801', 'tblTempUsageDetail_20' ) end [2025-02-04 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401801', 'tblTempVendorCDR_20' ) start [2025-02-04 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401801', 'tblTempVendorCDR_20' ) end [2025-02-04 17:10:22] Production.INFO: ProcessCDR(1,14401801,1,1,2) [2025-02-04 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401801', 'tblTempUsageDetail_20' ) start [2025-02-04 17:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401801', 'tblTempUsageDetail_20' ) end [2025-02-04 17:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:10:25] Production.INFO: ==12433== Releasing lock... [2025-02-04 17:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:10:25] Production.INFO: 65.25 MB #Memory Used# [2025-02-04 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:11:05 [end_date_ymd] => 2025-02-04 17:11:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 14:11:05' and `end` < '2025-02-04 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-02-04 17:11:22] Production.INFO: count ==4983 [2025-02-04 17:11:24] Production.ERROR: pbx CDR StartTime 2025-02-04 14:11:05 - End Time 2025-02-04 17:11:05 [2025-02-04 17:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401806', 'tblTempUsageDetail_20' ) start [2025-02-04 17:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401806', 'tblTempUsageDetail_20' ) end [2025-02-04 17:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401806', 'tblTempVendorCDR_20' ) start [2025-02-04 17:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401806', 'tblTempVendorCDR_20' ) end [2025-02-04 17:11:24] Production.INFO: ProcessCDR(1,14401806,1,1,2) [2025-02-04 17:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401806', 'tblTempUsageDetail_20' ) start [2025-02-04 17:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401806', 'tblTempUsageDetail_20' ) end [2025-02-04 17:11:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:11:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:11:29] Production.INFO: ==12514== Releasing lock... [2025-02-04 17:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:11:29] Production.INFO: 65.25 MB #Memory Used# [2025-02-04 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:12:05 [end_date_ymd] => 2025-02-04 17:12:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 14:12:05' and `end` < '2025-02-04 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-02-04 17:12:22] Production.INFO: count ==4983 [2025-02-04 17:12:24] Production.ERROR: pbx CDR StartTime 2025-02-04 14:12:05 - End Time 2025-02-04 17:12:05 [2025-02-04 17:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401811', 'tblTempUsageDetail_20' ) start [2025-02-04 17:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401811', 'tblTempUsageDetail_20' ) end [2025-02-04 17:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401811', 'tblTempVendorCDR_20' ) start [2025-02-04 17:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401811', 'tblTempVendorCDR_20' ) end [2025-02-04 17:12:24] Production.INFO: ProcessCDR(1,14401811,1,1,2) [2025-02-04 17:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401811', 'tblTempUsageDetail_20' ) start [2025-02-04 17:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401811', 'tblTempUsageDetail_20' ) end [2025-02-04 17:12:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:12:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:12:29] Production.INFO: ==12589== Releasing lock... [2025-02-04 17:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:12:29] Production.INFO: 65.25 MB #Memory Used# [2025-02-04 17:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:13:04 [end_date_ymd] => 2025-02-04 17:13:04 [RateCDR] => 1 ) [2025-02-04 17:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:13:04' and `end` < '2025-02-04 17:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:13:19] Production.INFO: count ==4957 [2025-02-04 17:13:21] Production.ERROR: pbx CDR StartTime 2025-02-04 14:13:04 - End Time 2025-02-04 17:13:04 [2025-02-04 17:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401816', 'tblTempUsageDetail_20' ) start [2025-02-04 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401816', 'tblTempUsageDetail_20' ) end [2025-02-04 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401816', 'tblTempVendorCDR_20' ) start [2025-02-04 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401816', 'tblTempVendorCDR_20' ) end [2025-02-04 17:13:21] Production.INFO: ProcessCDR(1,14401816,1,1,2) [2025-02-04 17:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401816', 'tblTempUsageDetail_20' ) start [2025-02-04 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401816', 'tblTempUsageDetail_20' ) end [2025-02-04 17:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:13:26] Production.INFO: ==12662== Releasing lock... [2025-02-04 17:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:13:26] Production.INFO: 65 MB #Memory Used# [2025-02-04 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:14:05 [end_date_ymd] => 2025-02-04 17:14:05 [RateCDR] => 1 ) [2025-02-04 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:14:05' and `end` < '2025-02-04 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:14:20] Production.INFO: count ==4966 [2025-02-04 17:14:22] Production.ERROR: pbx CDR StartTime 2025-02-04 14:14:05 - End Time 2025-02-04 17:14:05 [2025-02-04 17:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401821', 'tblTempUsageDetail_20' ) start [2025-02-04 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401821', 'tblTempUsageDetail_20' ) end [2025-02-04 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401821', 'tblTempVendorCDR_20' ) start [2025-02-04 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401821', 'tblTempVendorCDR_20' ) end [2025-02-04 17:14:22] Production.INFO: ProcessCDR(1,14401821,1,1,2) [2025-02-04 17:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401821', 'tblTempUsageDetail_20' ) start [2025-02-04 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401821', 'tblTempUsageDetail_20' ) end [2025-02-04 17:14:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:14:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:14:27] Production.INFO: ==12739== Releasing lock... [2025-02-04 17:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:14:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-04 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:15:05 [end_date_ymd] => 2025-02-04 17:15:05 [RateCDR] => 1 ) [2025-02-04 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:15:05' and `end` < '2025-02-04 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:15:20] Production.INFO: count ==4967 [2025-02-04 17:15:22] Production.ERROR: pbx CDR StartTime 2025-02-04 14:15:05 - End Time 2025-02-04 17:15:05 [2025-02-04 17:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401826', 'tblTempUsageDetail_20' ) start [2025-02-04 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401826', 'tblTempUsageDetail_20' ) end [2025-02-04 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401826', 'tblTempVendorCDR_20' ) start [2025-02-04 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401826', 'tblTempVendorCDR_20' ) end [2025-02-04 17:15:22] Production.INFO: ProcessCDR(1,14401826,1,1,2) [2025-02-04 17:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401826', 'tblTempUsageDetail_20' ) start [2025-02-04 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401826', 'tblTempUsageDetail_20' ) end [2025-02-04 17:15:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:15:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:15:27] Production.INFO: ==12814== Releasing lock... [2025-02-04 17:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:15:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-04 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:16:05 [end_date_ymd] => 2025-02-04 17:16:05 [RateCDR] => 1 ) [2025-02-04 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:16:05' and `end` < '2025-02-04 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:16:20] Production.INFO: count ==4963 [2025-02-04 17:16:22] Production.ERROR: pbx CDR StartTime 2025-02-04 14:16:05 - End Time 2025-02-04 17:16:05 [2025-02-04 17:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401831', 'tblTempUsageDetail_20' ) start [2025-02-04 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401831', 'tblTempUsageDetail_20' ) end [2025-02-04 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401831', 'tblTempVendorCDR_20' ) start [2025-02-04 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401831', 'tblTempVendorCDR_20' ) end [2025-02-04 17:16:22] Production.INFO: ProcessCDR(1,14401831,1,1,2) [2025-02-04 17:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401831', 'tblTempUsageDetail_20' ) start [2025-02-04 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401831', 'tblTempUsageDetail_20' ) end [2025-02-04 17:16:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:16:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:16:27] Production.INFO: ==12891== Releasing lock... [2025-02-04 17:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:16:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-04 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:17:06 [end_date_ymd] => 2025-02-04 17:17:06 [RateCDR] => 1 ) [2025-02-04 17:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:17:06' and `end` < '2025-02-04 17:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:17:19] Production.INFO: count ==4988 [2025-02-04 17:17:21] Production.ERROR: pbx CDR StartTime 2025-02-04 14:17:06 - End Time 2025-02-04 17:17:06 [2025-02-04 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401836', 'tblTempUsageDetail_20' ) start [2025-02-04 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401836', 'tblTempUsageDetail_20' ) end [2025-02-04 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401836', 'tblTempVendorCDR_20' ) start [2025-02-04 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401836', 'tblTempVendorCDR_20' ) end [2025-02-04 17:17:22] Production.INFO: ProcessCDR(1,14401836,1,1,2) [2025-02-04 17:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401836', 'tblTempUsageDetail_20' ) start [2025-02-04 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401836', 'tblTempUsageDetail_20' ) end [2025-02-04 17:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:17:26] Production.INFO: ==13005== Releasing lock... [2025-02-04 17:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:17:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-04 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:18:05 [end_date_ymd] => 2025-02-04 17:18:05 [RateCDR] => 1 ) [2025-02-04 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:18:05' and `end` < '2025-02-04 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:18:19] Production.INFO: count ==4972 [2025-02-04 17:18:21] Production.ERROR: pbx CDR StartTime 2025-02-04 14:18:05 - End Time 2025-02-04 17:18:05 [2025-02-04 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401841', 'tblTempUsageDetail_20' ) start [2025-02-04 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401841', 'tblTempUsageDetail_20' ) end [2025-02-04 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401841', 'tblTempVendorCDR_20' ) start [2025-02-04 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401841', 'tblTempVendorCDR_20' ) end [2025-02-04 17:18:21] Production.INFO: ProcessCDR(1,14401841,1,1,2) [2025-02-04 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401841', 'tblTempUsageDetail_20' ) start [2025-02-04 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401841', 'tblTempUsageDetail_20' ) end [2025-02-04 17:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:18:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:18:26] Production.INFO: ==13078== Releasing lock... [2025-02-04 17:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:18:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-04 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:19:05 [end_date_ymd] => 2025-02-04 17:19:05 [RateCDR] => 1 ) [2025-02-04 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:19:05' and `end` < '2025-02-04 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:19:19] Production.INFO: count ==4919 [2025-02-04 17:19:21] Production.ERROR: pbx CDR StartTime 2025-02-04 14:19:05 - End Time 2025-02-04 17:19:05 [2025-02-04 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401846', 'tblTempUsageDetail_20' ) start [2025-02-04 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401846', 'tblTempUsageDetail_20' ) end [2025-02-04 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401846', 'tblTempVendorCDR_20' ) start [2025-02-04 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401846', 'tblTempVendorCDR_20' ) end [2025-02-04 17:19:21] Production.INFO: ProcessCDR(1,14401846,1,1,2) [2025-02-04 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401846', 'tblTempUsageDetail_20' ) start [2025-02-04 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401846', 'tblTempUsageDetail_20' ) end [2025-02-04 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:19:26] Production.INFO: ==13152== Releasing lock... [2025-02-04 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:19:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-04 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:20:05 [end_date_ymd] => 2025-02-04 17:20:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 14:20:05' and `end` < '2025-02-04 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-02-04 17:20:19] Production.INFO: count ==4887 [2025-02-04 17:20:21] Production.ERROR: pbx CDR StartTime 2025-02-04 14:20:05 - End Time 2025-02-04 17:20:05 [2025-02-04 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401852', 'tblTempUsageDetail_20' ) start [2025-02-04 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401852', 'tblTempUsageDetail_20' ) end [2025-02-04 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401852', 'tblTempVendorCDR_20' ) start [2025-02-04 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401852', 'tblTempVendorCDR_20' ) end [2025-02-04 17:20:21] Production.INFO: ProcessCDR(1,14401852,1,1,2) [2025-02-04 17:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401852', 'tblTempUsageDetail_20' ) start [2025-02-04 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401852', 'tblTempUsageDetail_20' ) end [2025-02-04 17:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:20:24] Production.INFO: ==13233== Releasing lock... [2025-02-04 17:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:20:24] Production.INFO: 64.5 MB #Memory Used# [2025-02-04 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:21:05 [end_date_ymd] => 2025-02-04 17:21:05 [RateCDR] => 1 ) [2025-02-04 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:21:05' and `end` < '2025-02-04 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:21:20] Production.INFO: count ==4827 [2025-02-04 17:21:22] Production.ERROR: pbx CDR StartTime 2025-02-04 14:21:05 - End Time 2025-02-04 17:21:05 [2025-02-04 17:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401857', 'tblTempUsageDetail_20' ) start [2025-02-04 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401857', 'tblTempUsageDetail_20' ) end [2025-02-04 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401857', 'tblTempVendorCDR_20' ) start [2025-02-04 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401857', 'tblTempVendorCDR_20' ) end [2025-02-04 17:21:22] Production.INFO: ProcessCDR(1,14401857,1,1,2) [2025-02-04 17:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401857', 'tblTempUsageDetail_20' ) start [2025-02-04 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401857', 'tblTempUsageDetail_20' ) end [2025-02-04 17:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:21:26] Production.INFO: ==13316== Releasing lock... [2025-02-04 17:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:21:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-04 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:22:05 [end_date_ymd] => 2025-02-04 17:22:05 [RateCDR] => 1 ) [2025-02-04 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:22:05' and `end` < '2025-02-04 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:22:19] Production.INFO: count ==4756 [2025-02-04 17:22:21] Production.ERROR: pbx CDR StartTime 2025-02-04 14:22:05 - End Time 2025-02-04 17:22:05 [2025-02-04 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401862', 'tblTempUsageDetail_20' ) start [2025-02-04 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401862', 'tblTempUsageDetail_20' ) end [2025-02-04 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401862', 'tblTempVendorCDR_20' ) start [2025-02-04 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401862', 'tblTempVendorCDR_20' ) end [2025-02-04 17:22:21] Production.INFO: ProcessCDR(1,14401862,1,1,2) [2025-02-04 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401862', 'tblTempUsageDetail_20' ) start [2025-02-04 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401862', 'tblTempUsageDetail_20' ) end [2025-02-04 17:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:22:26] Production.INFO: ==13394== Releasing lock... [2025-02-04 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:22:26] Production.INFO: 63.5 MB #Memory Used# [2025-02-04 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:23:05 [end_date_ymd] => 2025-02-04 17:23:05 [RateCDR] => 1 ) [2025-02-04 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:23:05' and `end` < '2025-02-04 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:23:19] Production.INFO: count ==4701 [2025-02-04 17:23:21] Production.ERROR: pbx CDR StartTime 2025-02-04 14:23:05 - End Time 2025-02-04 17:23:05 [2025-02-04 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401867', 'tblTempUsageDetail_20' ) start [2025-02-04 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401867', 'tblTempUsageDetail_20' ) end [2025-02-04 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401867', 'tblTempVendorCDR_20' ) start [2025-02-04 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401867', 'tblTempVendorCDR_20' ) end [2025-02-04 17:23:21] Production.INFO: ProcessCDR(1,14401867,1,1,2) [2025-02-04 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401867', 'tblTempUsageDetail_20' ) start [2025-02-04 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401867', 'tblTempUsageDetail_20' ) end [2025-02-04 17:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:23:26] Production.INFO: ==13468== Releasing lock... [2025-02-04 17:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:23:26] Production.INFO: 63.25 MB #Memory Used# [2025-02-04 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:24:05 [end_date_ymd] => 2025-02-04 17:24:05 [RateCDR] => 1 ) [2025-02-04 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:24:05' and `end` < '2025-02-04 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:24:20] Production.INFO: count ==4664 [2025-02-04 17:24:21] Production.ERROR: pbx CDR StartTime 2025-02-04 14:24:05 - End Time 2025-02-04 17:24:05 [2025-02-04 17:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401872', 'tblTempUsageDetail_20' ) start [2025-02-04 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401872', 'tblTempUsageDetail_20' ) end [2025-02-04 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401872', 'tblTempVendorCDR_20' ) start [2025-02-04 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401872', 'tblTempVendorCDR_20' ) end [2025-02-04 17:24:22] Production.INFO: ProcessCDR(1,14401872,1,1,2) [2025-02-04 17:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401872', 'tblTempUsageDetail_20' ) start [2025-02-04 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401872', 'tblTempUsageDetail_20' ) end [2025-02-04 17:24:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:24:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:24:26] Production.INFO: ==13543== Releasing lock... [2025-02-04 17:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:24:26] Production.INFO: 63 MB #Memory Used# [2025-02-04 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:25:05 [end_date_ymd] => 2025-02-04 17:25:05 [RateCDR] => 1 ) [2025-02-04 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:25:05' and `end` < '2025-02-04 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:25:19] Production.INFO: count ==4643 [2025-02-04 17:25:21] Production.ERROR: pbx CDR StartTime 2025-02-04 14:25:05 - End Time 2025-02-04 17:25:05 [2025-02-04 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401877', 'tblTempUsageDetail_20' ) start [2025-02-04 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401877', 'tblTempUsageDetail_20' ) end [2025-02-04 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401877', 'tblTempVendorCDR_20' ) start [2025-02-04 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401877', 'tblTempVendorCDR_20' ) end [2025-02-04 17:25:21] Production.INFO: ProcessCDR(1,14401877,1,1,2) [2025-02-04 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401877', 'tblTempUsageDetail_20' ) start [2025-02-04 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401877', 'tblTempUsageDetail_20' ) end [2025-02-04 17:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:25:24] Production.INFO: ==13615== Releasing lock... [2025-02-04 17:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:25:24] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 17:26:16] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:26:16 [end_date_ymd] => 2025-02-04 17:26:16 [RateCDR] => 1 ) [2025-02-04 17:26: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-02-04 14:26:16' and `end` < '2025-02-04 17:26: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-02-04 17:26:30] Production.INFO: count ==4645 [2025-02-04 17:27:25] Production.ERROR: pbx CDR StartTime 2025-02-04 14:26:16 - End Time 2025-02-04 17:26:16 [2025-02-04 17:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401882', 'tblTempUsageDetail_20' ) start [2025-02-04 17:27:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401882', 'tblTempUsageDetail_20' ) end [2025-02-04 17:27:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401882', 'tblTempVendorCDR_20' ) start [2025-02-04 17:27:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401882', 'tblTempVendorCDR_20' ) end [2025-02-04 17:27:32] Production.INFO: ProcessCDR(1,14401882,1,1,2) [2025-02-04 17:27:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:27:46] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:27:46] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:28:04] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:28:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401882', 'tblTempUsageDetail_20' ) start [2025-02-04 17:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401882', 'tblTempUsageDetail_20' ) end [2025-02-04 17:28:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:28:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:28:28] Production.INFO: ==13695== Releasing lock... [2025-02-04 17:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:28:28] Production.INFO: 62.75 MB #Memory Used# [2025-02-04 17:29:16] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:29:16 [end_date_ymd] => 2025-02-04 17:29:16 [RateCDR] => 1 ) [2025-02-04 17:29: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-02-04 14:29:16' and `end` < '2025-02-04 17:29: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-02-04 17:29:30] Production.INFO: count ==4577 [2025-02-04 17:30:13] Production.ERROR: pbx CDR StartTime 2025-02-04 14:29:16 - End Time 2025-02-04 17:29:16 [2025-02-04 17:30:13] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:30:13] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401893', 'tblTempUsageDetail_20' ) start [2025-02-04 17:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401893', 'tblTempUsageDetail_20' ) end [2025-02-04 17:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401893', 'tblTempVendorCDR_20' ) start [2025-02-04 17:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401893', 'tblTempVendorCDR_20' ) end [2025-02-04 17:30:26] Production.INFO: ProcessCDR(1,14401893,1,1,2) [2025-02-04 17:30:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:30:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:30:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:30:59] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:30:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401893', 'tblTempUsageDetail_20' ) start [2025-02-04 17:30:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401893', 'tblTempUsageDetail_20' ) end [2025-02-04 17:30:59] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:30:59] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:30:59] Production.INFO: ==13907== Releasing lock... [2025-02-04 17:30:59] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:30:59] Production.INFO: 62.25 MB #Memory Used# [2025-02-04 17:31:13] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:31:13 [end_date_ymd] => 2025-02-04 17:31:13 [RateCDR] => 1 ) [2025-02-04 17:31:13] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:31:13' and `end` < '2025-02-04 17:31:13' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:31:26] Production.INFO: count ==4541 [2025-02-04 17:31:40] Production.ERROR: pbx CDR StartTime 2025-02-04 14:31:13 - End Time 2025-02-04 17:31:13 [2025-02-04 17:31:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:31:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401901', 'tblTempUsageDetail_20' ) start [2025-02-04 17:31:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401901', 'tblTempUsageDetail_20' ) end [2025-02-04 17:31:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401901', 'tblTempVendorCDR_20' ) start [2025-02-04 17:31:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401901', 'tblTempVendorCDR_20' ) end [2025-02-04 17:31:41] Production.INFO: ProcessCDR(1,14401901,1,1,2) [2025-02-04 17:31:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:31:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:31:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:31:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:31:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401901', 'tblTempUsageDetail_20' ) start [2025-02-04 17:31:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401901', 'tblTempUsageDetail_20' ) end [2025-02-04 17:31:44] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:31:44] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:31:44] Production.INFO: ==14048== Releasing lock... [2025-02-04 17:31:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:31:44] Production.INFO: 62 MB #Memory Used# [2025-02-04 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:32:05 [end_date_ymd] => 2025-02-04 17:32:05 [RateCDR] => 1 ) [2025-02-04 17:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:32:05' and `end` < '2025-02-04 17:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:32:19] Production.INFO: count ==4535 [2025-02-04 17:32:20] Production.ERROR: pbx CDR StartTime 2025-02-04 14:32:05 - End Time 2025-02-04 17:32:05 [2025-02-04 17:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401906', 'tblTempUsageDetail_20' ) start [2025-02-04 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401906', 'tblTempUsageDetail_20' ) end [2025-02-04 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401906', 'tblTempVendorCDR_20' ) start [2025-02-04 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401906', 'tblTempVendorCDR_20' ) end [2025-02-04 17:32:20] Production.INFO: ProcessCDR(1,14401906,1,1,2) [2025-02-04 17:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401906', 'tblTempUsageDetail_20' ) start [2025-02-04 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401906', 'tblTempUsageDetail_20' ) end [2025-02-04 17:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:32:25] Production.INFO: ==14168== Releasing lock... [2025-02-04 17:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:32:25] Production.INFO: 62 MB #Memory Used# [2025-02-04 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:33:05 [end_date_ymd] => 2025-02-04 17:33:05 [RateCDR] => 1 ) [2025-02-04 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:33:05' and `end` < '2025-02-04 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:33:19] Production.INFO: count ==4526 [2025-02-04 17:33:21] Production.ERROR: pbx CDR StartTime 2025-02-04 14:33:05 - End Time 2025-02-04 17:33:05 [2025-02-04 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401911', 'tblTempUsageDetail_20' ) start [2025-02-04 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401911', 'tblTempUsageDetail_20' ) end [2025-02-04 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401911', 'tblTempVendorCDR_20' ) start [2025-02-04 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401911', 'tblTempVendorCDR_20' ) end [2025-02-04 17:33:21] Production.INFO: ProcessCDR(1,14401911,1,1,2) [2025-02-04 17:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401911', 'tblTempUsageDetail_20' ) start [2025-02-04 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401911', 'tblTempUsageDetail_20' ) end [2025-02-04 17:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:33:25] Production.INFO: ==14247== Releasing lock... [2025-02-04 17:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:33:25] Production.INFO: 61.75 MB #Memory Used# [2025-02-04 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:34:05 [end_date_ymd] => 2025-02-04 17:34:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 14:34:05' and `end` < '2025-02-04 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-02-04 17:34:23] Production.INFO: count ==4547 [2025-02-04 17:34:25] Production.ERROR: pbx CDR StartTime 2025-02-04 14:34:05 - End Time 2025-02-04 17:34:05 [2025-02-04 17:34:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401916', 'tblTempUsageDetail_20' ) start [2025-02-04 17:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401916', 'tblTempUsageDetail_20' ) end [2025-02-04 17:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401916', 'tblTempVendorCDR_20' ) start [2025-02-04 17:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401916', 'tblTempVendorCDR_20' ) end [2025-02-04 17:34:25] Production.INFO: ProcessCDR(1,14401916,1,1,2) [2025-02-04 17:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401916', 'tblTempUsageDetail_20' ) start [2025-02-04 17:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401916', 'tblTempUsageDetail_20' ) end [2025-02-04 17:34:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:34:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:34:30] Production.INFO: ==14326== Releasing lock... [2025-02-04 17:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:34:30] Production.INFO: 62 MB #Memory Used# [2025-02-04 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:35:05 [end_date_ymd] => 2025-02-04 17:35:05 [RateCDR] => 1 ) [2025-02-04 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:35:05' and `end` < '2025-02-04 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:35:24] Production.INFO: count ==4543 [2025-02-04 17:35:26] Production.ERROR: pbx CDR StartTime 2025-02-04 14:35:05 - End Time 2025-02-04 17:35:05 [2025-02-04 17:35:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401921', 'tblTempUsageDetail_20' ) start [2025-02-04 17:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401921', 'tblTempUsageDetail_20' ) end [2025-02-04 17:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401921', 'tblTempVendorCDR_20' ) start [2025-02-04 17:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401921', 'tblTempVendorCDR_20' ) end [2025-02-04 17:35:26] Production.INFO: ProcessCDR(1,14401921,1,1,2) [2025-02-04 17:35:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:35:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401921', 'tblTempUsageDetail_20' ) start [2025-02-04 17:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401921', 'tblTempUsageDetail_20' ) end [2025-02-04 17:35:31] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:35:31] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:35:31] Production.INFO: ==14403== Releasing lock... [2025-02-04 17:35:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:35:31] Production.INFO: 62 MB #Memory Used# [2025-02-04 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:36:05 [end_date_ymd] => 2025-02-04 17:36:05 [RateCDR] => 1 ) [2025-02-04 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:36:05' and `end` < '2025-02-04 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:36:19] Production.INFO: count ==4531 [2025-02-04 17:36:20] Production.ERROR: pbx CDR StartTime 2025-02-04 14:36:05 - End Time 2025-02-04 17:36:05 [2025-02-04 17:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401926', 'tblTempUsageDetail_20' ) start [2025-02-04 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401926', 'tblTempUsageDetail_20' ) end [2025-02-04 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401926', 'tblTempVendorCDR_20' ) start [2025-02-04 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401926', 'tblTempVendorCDR_20' ) end [2025-02-04 17:36:20] Production.INFO: ProcessCDR(1,14401926,1,1,2) [2025-02-04 17:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401926', 'tblTempUsageDetail_20' ) start [2025-02-04 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401926', 'tblTempUsageDetail_20' ) end [2025-02-04 17:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:36:25] Production.INFO: ==14484== Releasing lock... [2025-02-04 17:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:36:25] Production.INFO: 62 MB #Memory Used# [2025-02-04 17:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:37:06 [end_date_ymd] => 2025-02-04 17:37:06 [RateCDR] => 1 ) [2025-02-04 17:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:37:06' and `end` < '2025-02-04 17:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:37:21] Production.INFO: count ==4491 [2025-02-04 17:37:23] Production.ERROR: pbx CDR StartTime 2025-02-04 14:37:06 - End Time 2025-02-04 17:37:06 [2025-02-04 17:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401931', 'tblTempUsageDetail_20' ) start [2025-02-04 17:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401931', 'tblTempUsageDetail_20' ) end [2025-02-04 17:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401931', 'tblTempVendorCDR_20' ) start [2025-02-04 17:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401931', 'tblTempVendorCDR_20' ) end [2025-02-04 17:37:23] Production.INFO: ProcessCDR(1,14401931,1,1,2) [2025-02-04 17:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401931', 'tblTempUsageDetail_20' ) start [2025-02-04 17:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401931', 'tblTempUsageDetail_20' ) end [2025-02-04 17:37:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:37:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:37:28] Production.INFO: ==14601== Releasing lock... [2025-02-04 17:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:37:28] Production.INFO: 61.5 MB #Memory Used# [2025-02-04 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:38:05 [end_date_ymd] => 2025-02-04 17:38:05 [RateCDR] => 1 ) [2025-02-04 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:38:05' and `end` < '2025-02-04 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:38:19] Production.INFO: count ==4457 [2025-02-04 17:38:20] Production.ERROR: pbx CDR StartTime 2025-02-04 14:38:05 - End Time 2025-02-04 17:38:05 [2025-02-04 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401936', 'tblTempUsageDetail_20' ) start [2025-02-04 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401936', 'tblTempUsageDetail_20' ) end [2025-02-04 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401936', 'tblTempVendorCDR_20' ) start [2025-02-04 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401936', 'tblTempVendorCDR_20' ) end [2025-02-04 17:38:20] Production.INFO: ProcessCDR(1,14401936,1,1,2) [2025-02-04 17:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401936', 'tblTempUsageDetail_20' ) start [2025-02-04 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401936', 'tblTempUsageDetail_20' ) end [2025-02-04 17:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:38:25] Production.INFO: ==14713== Releasing lock... [2025-02-04 17:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:38:25] Production.INFO: 61.25 MB #Memory Used# [2025-02-04 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:39:05 [end_date_ymd] => 2025-02-04 17:39:05 [RateCDR] => 1 ) [2025-02-04 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:39:05' and `end` < '2025-02-04 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:39:19] Production.INFO: count ==4394 [2025-02-04 17:39:21] Production.ERROR: pbx CDR StartTime 2025-02-04 14:39:05 - End Time 2025-02-04 17:39:05 [2025-02-04 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401941', 'tblTempUsageDetail_20' ) start [2025-02-04 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401941', 'tblTempUsageDetail_20' ) end [2025-02-04 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401941', 'tblTempVendorCDR_20' ) start [2025-02-04 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401941', 'tblTempVendorCDR_20' ) end [2025-02-04 17:39:21] Production.INFO: ProcessCDR(1,14401941,1,1,2) [2025-02-04 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401941', 'tblTempUsageDetail_20' ) start [2025-02-04 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401941', 'tblTempUsageDetail_20' ) end [2025-02-04 17:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:39:25] Production.INFO: ==14788== Releasing lock... [2025-02-04 17:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:39:25] Production.INFO: 61 MB #Memory Used# [2025-02-04 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:40:05 [end_date_ymd] => 2025-02-04 17:40:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 14:40:05' and `end` < '2025-02-04 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-02-04 17:40:20] Production.INFO: count ==4346 [2025-02-04 17:40:21] Production.ERROR: pbx CDR StartTime 2025-02-04 14:40:05 - End Time 2025-02-04 17:40:05 [2025-02-04 17:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401946', 'tblTempUsageDetail_20' ) start [2025-02-04 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401946', 'tblTempUsageDetail_20' ) end [2025-02-04 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401946', 'tblTempVendorCDR_20' ) start [2025-02-04 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401946', 'tblTempVendorCDR_20' ) end [2025-02-04 17:40:22] Production.INFO: ProcessCDR(1,14401946,1,1,2) [2025-02-04 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401946', 'tblTempUsageDetail_20' ) start [2025-02-04 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401946', 'tblTempUsageDetail_20' ) end [2025-02-04 17:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:40:26] Production.INFO: ==14866== Releasing lock... [2025-02-04 17:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:40:26] Production.INFO: 60.5 MB #Memory Used# [2025-02-04 17:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:41:06 [end_date_ymd] => 2025-02-04 17:41:06 [RateCDR] => 1 ) [2025-02-04 17:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:41:06' and `end` < '2025-02-04 17:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:41:21] Production.INFO: count ==4311 [2025-02-04 17:41:23] Production.ERROR: pbx CDR StartTime 2025-02-04 14:41:06 - End Time 2025-02-04 17:41:06 [2025-02-04 17:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401952', 'tblTempUsageDetail_20' ) start [2025-02-04 17:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401952', 'tblTempUsageDetail_20' ) end [2025-02-04 17:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401952', 'tblTempVendorCDR_20' ) start [2025-02-04 17:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401952', 'tblTempVendorCDR_20' ) end [2025-02-04 17:41:23] Production.INFO: ProcessCDR(1,14401952,1,1,2) [2025-02-04 17:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401952', 'tblTempUsageDetail_20' ) start [2025-02-04 17:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401952', 'tblTempUsageDetail_20' ) end [2025-02-04 17:41:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:41:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:41:28] Production.INFO: ==14943== Releasing lock... [2025-02-04 17:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:41:28] Production.INFO: 60.25 MB #Memory Used# [2025-02-04 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:42:05 [end_date_ymd] => 2025-02-04 17:42:05 [RateCDR] => 1 ) [2025-02-04 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:42:05' and `end` < '2025-02-04 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:42:22] Production.INFO: count ==4311 [2025-02-04 17:42:23] Production.ERROR: pbx CDR StartTime 2025-02-04 14:42:05 - End Time 2025-02-04 17:42:05 [2025-02-04 17:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401957', 'tblTempUsageDetail_20' ) start [2025-02-04 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401957', 'tblTempUsageDetail_20' ) end [2025-02-04 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401957', 'tblTempVendorCDR_20' ) start [2025-02-04 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401957', 'tblTempVendorCDR_20' ) end [2025-02-04 17:42:23] Production.INFO: ProcessCDR(1,14401957,1,1,2) [2025-02-04 17:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401957', 'tblTempUsageDetail_20' ) start [2025-02-04 17:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401957', 'tblTempUsageDetail_20' ) end [2025-02-04 17:42:29] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:42:29] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:42:29] Production.INFO: ==15024== Releasing lock... [2025-02-04 17:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:42:29] Production.INFO: 60.25 MB #Memory Used# [2025-02-04 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:43:05 [end_date_ymd] => 2025-02-04 17:43:05 [RateCDR] => 1 ) [2025-02-04 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:43:05' and `end` < '2025-02-04 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:43:18] Production.INFO: count ==4313 [2025-02-04 17:43:20] Production.ERROR: pbx CDR StartTime 2025-02-04 14:43:05 - End Time 2025-02-04 17:43:05 [2025-02-04 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401962', 'tblTempUsageDetail_20' ) start [2025-02-04 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401962', 'tblTempUsageDetail_20' ) end [2025-02-04 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401962', 'tblTempVendorCDR_20' ) start [2025-02-04 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401962', 'tblTempVendorCDR_20' ) end [2025-02-04 17:43:20] Production.INFO: ProcessCDR(1,14401962,1,1,2) [2025-02-04 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401962', 'tblTempUsageDetail_20' ) start [2025-02-04 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401962', 'tblTempUsageDetail_20' ) end [2025-02-04 17:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:43:25] Production.INFO: ==15102== Releasing lock... [2025-02-04 17:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:43:25] Production.INFO: 60.25 MB #Memory Used# [2025-02-04 17:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:44:06 [end_date_ymd] => 2025-02-04 17:44:06 [RateCDR] => 1 ) [2025-02-04 17:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:44:06' and `end` < '2025-02-04 17:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:44:20] Production.INFO: count ==4307 [2025-02-04 17:44:21] Production.ERROR: pbx CDR StartTime 2025-02-04 14:44:06 - End Time 2025-02-04 17:44:06 [2025-02-04 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401967', 'tblTempUsageDetail_20' ) start [2025-02-04 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401967', 'tblTempUsageDetail_20' ) end [2025-02-04 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401967', 'tblTempVendorCDR_20' ) start [2025-02-04 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401967', 'tblTempVendorCDR_20' ) end [2025-02-04 17:44:21] Production.INFO: ProcessCDR(1,14401967,1,1,2) [2025-02-04 17:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401967', 'tblTempUsageDetail_20' ) start [2025-02-04 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401967', 'tblTempUsageDetail_20' ) end [2025-02-04 17:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:44:26] Production.INFO: ==15177== Releasing lock... [2025-02-04 17:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:44:26] Production.INFO: 60.25 MB #Memory Used# [2025-02-04 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:45:05 [end_date_ymd] => 2025-02-04 17:45:05 [RateCDR] => 1 ) [2025-02-04 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:45:05' and `end` < '2025-02-04 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:45:26] Production.INFO: count ==4305 [2025-02-04 17:45:28] Production.ERROR: pbx CDR StartTime 2025-02-04 14:45:05 - End Time 2025-02-04 17:45:05 [2025-02-04 17:45:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401972', 'tblTempUsageDetail_20' ) start [2025-02-04 17:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401972', 'tblTempUsageDetail_20' ) end [2025-02-04 17:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401972', 'tblTempVendorCDR_20' ) start [2025-02-04 17:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401972', 'tblTempVendorCDR_20' ) end [2025-02-04 17:45:28] Production.INFO: ProcessCDR(1,14401972,1,1,2) [2025-02-04 17:45:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:45:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:45:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:45:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401972', 'tblTempUsageDetail_20' ) start [2025-02-04 17:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401972', 'tblTempUsageDetail_20' ) end [2025-02-04 17:45:33] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:45:34] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:45:34] Production.INFO: ==15253== Releasing lock... [2025-02-04 17:45:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:45:34] Production.INFO: 60.25 MB #Memory Used# [2025-02-04 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:46:06 [end_date_ymd] => 2025-02-04 17:46:06 [RateCDR] => 1 ) [2025-02-04 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-02-04 14:46:06' and `end` < '2025-02-04 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-02-04 17:46:23] Production.INFO: count ==4292 [2025-02-04 17:46:25] Production.ERROR: pbx CDR StartTime 2025-02-04 14:46:06 - End Time 2025-02-04 17:46:06 [2025-02-04 17:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401977', 'tblTempUsageDetail_20' ) start [2025-02-04 17:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401977', 'tblTempUsageDetail_20' ) end [2025-02-04 17:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401977', 'tblTempVendorCDR_20' ) start [2025-02-04 17:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401977', 'tblTempVendorCDR_20' ) end [2025-02-04 17:46:25] Production.INFO: ProcessCDR(1,14401977,1,1,2) [2025-02-04 17:46:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401977', 'tblTempUsageDetail_20' ) start [2025-02-04 17:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401977', 'tblTempUsageDetail_20' ) end [2025-02-04 17:46:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:46:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:46:28] Production.INFO: ==15329== Releasing lock... [2025-02-04 17:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:46:28] Production.INFO: 60 MB #Memory Used# [2025-02-04 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:47:05 [end_date_ymd] => 2025-02-04 17:47:05 [RateCDR] => 1 ) [2025-02-04 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:47:05' and `end` < '2025-02-04 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:47:20] Production.INFO: count ==4266 [2025-02-04 17:47:22] Production.ERROR: pbx CDR StartTime 2025-02-04 14:47:05 - End Time 2025-02-04 17:47:05 [2025-02-04 17:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401982', 'tblTempUsageDetail_20' ) start [2025-02-04 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401982', 'tblTempUsageDetail_20' ) end [2025-02-04 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401982', 'tblTempVendorCDR_20' ) start [2025-02-04 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401982', 'tblTempVendorCDR_20' ) end [2025-02-04 17:47:22] Production.INFO: ProcessCDR(1,14401982,1,1,2) [2025-02-04 17:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401982', 'tblTempUsageDetail_20' ) start [2025-02-04 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401982', 'tblTempUsageDetail_20' ) end [2025-02-04 17:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:47:26] Production.INFO: ==15411== Releasing lock... [2025-02-04 17:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:47:26] Production.INFO: 60 MB #Memory Used# [2025-02-04 17:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:48:06 [end_date_ymd] => 2025-02-04 17:48:06 [RateCDR] => 1 ) [2025-02-04 17:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:48:06' and `end` < '2025-02-04 17:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:48:19] Production.INFO: count ==4264 [2025-02-04 17:48:21] Production.ERROR: pbx CDR StartTime 2025-02-04 14:48:06 - End Time 2025-02-04 17:48:06 [2025-02-04 17:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401987', 'tblTempUsageDetail_20' ) start [2025-02-04 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401987', 'tblTempUsageDetail_20' ) end [2025-02-04 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401987', 'tblTempVendorCDR_20' ) start [2025-02-04 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401987', 'tblTempVendorCDR_20' ) end [2025-02-04 17:48:21] Production.INFO: ProcessCDR(1,14401987,1,1,2) [2025-02-04 17:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401987', 'tblTempUsageDetail_20' ) start [2025-02-04 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401987', 'tblTempUsageDetail_20' ) end [2025-02-04 17:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:48:24] Production.INFO: ==15535== Releasing lock... [2025-02-04 17:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:48:24] Production.INFO: 60 MB #Memory Used# [2025-02-04 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:49:05 [end_date_ymd] => 2025-02-04 17:49:05 [RateCDR] => 1 ) [2025-02-04 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:49:05' and `end` < '2025-02-04 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:49:18] Production.INFO: count ==4256 [2025-02-04 17:49:20] Production.ERROR: pbx CDR StartTime 2025-02-04 14:49:05 - End Time 2025-02-04 17:49:05 [2025-02-04 17:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401992', 'tblTempUsageDetail_20' ) start [2025-02-04 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401992', 'tblTempUsageDetail_20' ) end [2025-02-04 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401992', 'tblTempVendorCDR_20' ) start [2025-02-04 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401992', 'tblTempVendorCDR_20' ) end [2025-02-04 17:49:20] Production.INFO: ProcessCDR(1,14401992,1,1,2) [2025-02-04 17:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401992', 'tblTempUsageDetail_20' ) start [2025-02-04 17:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401992', 'tblTempUsageDetail_20' ) end [2025-02-04 17:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:49:24] Production.INFO: ==15613== Releasing lock... [2025-02-04 17:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:49:24] Production.INFO: 59.75 MB #Memory Used# [2025-02-04 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:50:06 [end_date_ymd] => 2025-02-04 17:50:06 [RateCDR] => 1 ) [2025-02-04 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:50:06' and `end` < '2025-02-04 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:50:21] Production.INFO: count ==4232 [2025-02-04 17:50:22] Production.ERROR: pbx CDR StartTime 2025-02-04 14:50:06 - End Time 2025-02-04 17:50:06 [2025-02-04 17:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401997', 'tblTempUsageDetail_20' ) start [2025-02-04 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14401997', 'tblTempUsageDetail_20' ) end [2025-02-04 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401997', 'tblTempVendorCDR_20' ) start [2025-02-04 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14401997', 'tblTempVendorCDR_20' ) end [2025-02-04 17:50:22] Production.INFO: ProcessCDR(1,14401997,1,1,2) [2025-02-04 17:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14401997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14401997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14401997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14401997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401997', 'tblTempUsageDetail_20' ) start [2025-02-04 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14401997', 'tblTempUsageDetail_20' ) end [2025-02-04 17:50:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:50:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:50:27] Production.INFO: ==15695== Releasing lock... [2025-02-04 17:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:50:27] Production.INFO: 59.75 MB #Memory Used# [2025-02-04 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:51:05 [end_date_ymd] => 2025-02-04 17:51:05 [RateCDR] => 1 ) [2025-02-04 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:51:05' and `end` < '2025-02-04 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:51:20] Production.INFO: count ==4185 [2025-02-04 17:51:21] Production.ERROR: pbx CDR StartTime 2025-02-04 14:51:05 - End Time 2025-02-04 17:51:05 [2025-02-04 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402003', 'tblTempUsageDetail_20' ) start [2025-02-04 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402003', 'tblTempUsageDetail_20' ) end [2025-02-04 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402003', 'tblTempVendorCDR_20' ) start [2025-02-04 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402003', 'tblTempVendorCDR_20' ) end [2025-02-04 17:51:21] Production.INFO: ProcessCDR(1,14402003,1,1,2) [2025-02-04 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402003', 'tblTempUsageDetail_20' ) start [2025-02-04 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402003', 'tblTempUsageDetail_20' ) end [2025-02-04 17:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:51:26] Production.INFO: ==15774== Releasing lock... [2025-02-04 17:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:51:26] Production.INFO: 59.25 MB #Memory Used# [2025-02-04 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:52:05 [end_date_ymd] => 2025-02-04 17:52:05 [RateCDR] => 1 ) [2025-02-04 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:52:05' and `end` < '2025-02-04 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:52:18] Production.INFO: count ==4147 [2025-02-04 17:52:20] Production.ERROR: pbx CDR StartTime 2025-02-04 14:52:05 - End Time 2025-02-04 17:52:05 [2025-02-04 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402008', 'tblTempUsageDetail_20' ) start [2025-02-04 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402008', 'tblTempUsageDetail_20' ) end [2025-02-04 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402008', 'tblTempVendorCDR_20' ) start [2025-02-04 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402008', 'tblTempVendorCDR_20' ) end [2025-02-04 17:52:20] Production.INFO: ProcessCDR(1,14402008,1,1,2) [2025-02-04 17:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402008', 'tblTempUsageDetail_20' ) start [2025-02-04 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402008', 'tblTempUsageDetail_20' ) end [2025-02-04 17:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:52:24] Production.INFO: ==15859== Releasing lock... [2025-02-04 17:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:52:24] Production.INFO: 59 MB #Memory Used# [2025-02-04 17:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:53:06 [end_date_ymd] => 2025-02-04 17:53:06 [RateCDR] => 1 ) [2025-02-04 17:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:53:06' and `end` < '2025-02-04 17:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:53:20] Production.INFO: count ==4126 [2025-02-04 17:53:21] Production.ERROR: pbx CDR StartTime 2025-02-04 14:53:06 - End Time 2025-02-04 17:53:06 [2025-02-04 17:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402013', 'tblTempUsageDetail_20' ) start [2025-02-04 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402013', 'tblTempUsageDetail_20' ) end [2025-02-04 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402013', 'tblTempVendorCDR_20' ) start [2025-02-04 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402013', 'tblTempVendorCDR_20' ) end [2025-02-04 17:53:21] Production.INFO: ProcessCDR(1,14402013,1,1,2) [2025-02-04 17:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402013', 'tblTempUsageDetail_20' ) start [2025-02-04 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402013', 'tblTempUsageDetail_20' ) end [2025-02-04 17:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:53:26] Production.INFO: ==15941== Releasing lock... [2025-02-04 17:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:53:26] Production.INFO: 58.75 MB #Memory Used# [2025-02-04 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:54:05 [end_date_ymd] => 2025-02-04 17:54:05 [RateCDR] => 1 ) [2025-02-04 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:54:05' and `end` < '2025-02-04 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:54:19] Production.INFO: count ==4121 [2025-02-04 17:54:20] Production.ERROR: pbx CDR StartTime 2025-02-04 14:54:05 - End Time 2025-02-04 17:54:05 [2025-02-04 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402018', 'tblTempUsageDetail_20' ) start [2025-02-04 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402018', 'tblTempUsageDetail_20' ) end [2025-02-04 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402018', 'tblTempVendorCDR_20' ) start [2025-02-04 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402018', 'tblTempVendorCDR_20' ) end [2025-02-04 17:54:20] Production.INFO: ProcessCDR(1,14402018,1,1,2) [2025-02-04 17:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402018', 'tblTempUsageDetail_20' ) start [2025-02-04 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402018', 'tblTempUsageDetail_20' ) end [2025-02-04 17:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:54:25] Production.INFO: ==16018== Releasing lock... [2025-02-04 17:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:54:25] Production.INFO: 58.75 MB #Memory Used# [2025-02-04 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:55:05 [end_date_ymd] => 2025-02-04 17:55:05 [RateCDR] => 1 ) [2025-02-04 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:55:05' and `end` < '2025-02-04 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:55:19] Production.INFO: count ==4106 [2025-02-04 17:55:20] Production.ERROR: pbx CDR StartTime 2025-02-04 14:55:05 - End Time 2025-02-04 17:55:05 [2025-02-04 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402023', 'tblTempUsageDetail_20' ) start [2025-02-04 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402023', 'tblTempUsageDetail_20' ) end [2025-02-04 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402023', 'tblTempVendorCDR_20' ) start [2025-02-04 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402023', 'tblTempVendorCDR_20' ) end [2025-02-04 17:55:20] Production.INFO: ProcessCDR(1,14402023,1,1,2) [2025-02-04 17:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402023', 'tblTempUsageDetail_20' ) start [2025-02-04 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402023', 'tblTempUsageDetail_20' ) end [2025-02-04 17:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:55:25] Production.INFO: ==16098== Releasing lock... [2025-02-04 17:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:55:25] Production.INFO: 58.75 MB #Memory Used# [2025-02-04 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:56:05 [end_date_ymd] => 2025-02-04 17:56:05 [RateCDR] => 1 ) [2025-02-04 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:56:05' and `end` < '2025-02-04 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:56:21] Production.INFO: count ==4084 [2025-02-04 17:56:22] Production.ERROR: pbx CDR StartTime 2025-02-04 14:56:05 - End Time 2025-02-04 17:56:05 [2025-02-04 17:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402028', 'tblTempUsageDetail_20' ) start [2025-02-04 17:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402028', 'tblTempUsageDetail_20' ) end [2025-02-04 17:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402028', 'tblTempVendorCDR_20' ) start [2025-02-04 17:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402028', 'tblTempVendorCDR_20' ) end [2025-02-04 17:56:23] Production.INFO: ProcessCDR(1,14402028,1,1,2) [2025-02-04 17:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402028', 'tblTempUsageDetail_20' ) start [2025-02-04 17:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402028', 'tblTempUsageDetail_20' ) end [2025-02-04 17:56:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:56:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:56:27] Production.INFO: ==16178== Releasing lock... [2025-02-04 17:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:56:27] Production.INFO: 58.5 MB #Memory Used# [2025-02-04 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:57:05 [end_date_ymd] => 2025-02-04 17:57:05 [RateCDR] => 1 ) [2025-02-04 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:57:05' and `end` < '2025-02-04 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:57:20] Production.INFO: count ==4071 [2025-02-04 17:57:22] Production.ERROR: pbx CDR StartTime 2025-02-04 14:57:05 - End Time 2025-02-04 17:57:05 [2025-02-04 17:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402033', 'tblTempUsageDetail_20' ) start [2025-02-04 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402033', 'tblTempUsageDetail_20' ) end [2025-02-04 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402033', 'tblTempVendorCDR_20' ) start [2025-02-04 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402033', 'tblTempVendorCDR_20' ) end [2025-02-04 17:57:22] Production.INFO: ProcessCDR(1,14402033,1,1,2) [2025-02-04 17:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402033', 'tblTempUsageDetail_20' ) start [2025-02-04 17:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402033', 'tblTempUsageDetail_20' ) end [2025-02-04 17:57:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:57:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:57:27] Production.INFO: ==16259== Releasing lock... [2025-02-04 17:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:57:27] Production.INFO: 58.5 MB #Memory Used# [2025-02-04 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:58:05 [end_date_ymd] => 2025-02-04 17:58:05 [RateCDR] => 1 ) [2025-02-04 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:58:05' and `end` < '2025-02-04 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:58:19] Production.INFO: count ==4058 [2025-02-04 17:58:21] Production.ERROR: pbx CDR StartTime 2025-02-04 14:58:05 - End Time 2025-02-04 17:58:05 [2025-02-04 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402038', 'tblTempUsageDetail_20' ) start [2025-02-04 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402038', 'tblTempUsageDetail_20' ) end [2025-02-04 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402038', 'tblTempVendorCDR_20' ) start [2025-02-04 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402038', 'tblTempVendorCDR_20' ) end [2025-02-04 17:58:21] Production.INFO: ProcessCDR(1,14402038,1,1,2) [2025-02-04 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402038', 'tblTempUsageDetail_20' ) start [2025-02-04 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402038', 'tblTempUsageDetail_20' ) end [2025-02-04 17:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:58:26] Production.INFO: ==16338== Releasing lock... [2025-02-04 17:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:58:26] Production.INFO: 58.5 MB #Memory Used# [2025-02-04 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 14:59:05 [end_date_ymd] => 2025-02-04 17:59:05 [RateCDR] => 1 ) [2025-02-04 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 14:59:05' and `end` < '2025-02-04 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 17:59:19] Production.INFO: count ==4057 [2025-02-04 17:59:20] Production.ERROR: pbx CDR StartTime 2025-02-04 14:59:05 - End Time 2025-02-04 17:59:05 [2025-02-04 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402043', 'tblTempUsageDetail_20' ) start [2025-02-04 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402043', 'tblTempUsageDetail_20' ) end [2025-02-04 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402043', 'tblTempVendorCDR_20' ) start [2025-02-04 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402043', 'tblTempVendorCDR_20' ) end [2025-02-04 17:59:20] Production.INFO: ProcessCDR(1,14402043,1,1,2) [2025-02-04 17:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 17:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402043', 'tblTempUsageDetail_20' ) start [2025-02-04 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402043', 'tblTempUsageDetail_20' ) end [2025-02-04 17:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 17:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 17:59:25] Production.INFO: ==16418== Releasing lock... [2025-02-04 17:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 17:59:25] Production.INFO: 58.25 MB #Memory Used# [2025-02-04 18:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:00:07 [end_date_ymd] => 2025-02-04 18:00:07 [RateCDR] => 1 ) [2025-02-04 18:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:00:07' and `end` < '2025-02-04 18:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:00:20] Production.INFO: count ==4057 [2025-02-04 18:00:22] Production.ERROR: pbx CDR StartTime 2025-02-04 15:00:07 - End Time 2025-02-04 18:00:07 [2025-02-04 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402049', 'tblTempUsageDetail_20' ) start [2025-02-04 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402049', 'tblTempUsageDetail_20' ) end [2025-02-04 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402049', 'tblTempVendorCDR_20' ) start [2025-02-04 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402049', 'tblTempVendorCDR_20' ) end [2025-02-04 18:00:22] Production.INFO: ProcessCDR(1,14402049,1,1,2) [2025-02-04 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402049', 'tblTempUsageDetail_20' ) start [2025-02-04 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402049', 'tblTempUsageDetail_20' ) end [2025-02-04 18:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:00:25] Production.INFO: ==16503== Releasing lock... [2025-02-04 18:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:00:25] Production.INFO: 58.25 MB #Memory Used# [2025-02-04 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:01:05 [end_date_ymd] => 2025-02-04 18:01:05 [RateCDR] => 1 ) [2025-02-04 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:01:05' and `end` < '2025-02-04 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:01:19] Production.INFO: count ==4042 [2025-02-04 18:01:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:01:05 - End Time 2025-02-04 18:01:05 [2025-02-04 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402054', 'tblTempUsageDetail_20' ) start [2025-02-04 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402054', 'tblTempUsageDetail_20' ) end [2025-02-04 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402054', 'tblTempVendorCDR_20' ) start [2025-02-04 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402054', 'tblTempVendorCDR_20' ) end [2025-02-04 18:01:21] Production.INFO: ProcessCDR(1,14402054,1,1,2) [2025-02-04 18:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402054', 'tblTempUsageDetail_20' ) start [2025-02-04 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402054', 'tblTempUsageDetail_20' ) end [2025-02-04 18:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:01:24] Production.INFO: ==16597== Releasing lock... [2025-02-04 18:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:01:24] Production.INFO: 58.25 MB #Memory Used# [2025-02-04 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:02:06 [end_date_ymd] => 2025-02-04 18:02:06 [RateCDR] => 1 ) [2025-02-04 18:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:02:06' and `end` < '2025-02-04 18:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:02:19] Production.INFO: count ==4027 [2025-02-04 18:02:21] Production.ERROR: pbx CDR StartTime 2025-02-04 15:02:06 - End Time 2025-02-04 18:02:06 [2025-02-04 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402059', 'tblTempUsageDetail_20' ) start [2025-02-04 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402059', 'tblTempUsageDetail_20' ) end [2025-02-04 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402059', 'tblTempVendorCDR_20' ) start [2025-02-04 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402059', 'tblTempVendorCDR_20' ) end [2025-02-04 18:02:21] Production.INFO: ProcessCDR(1,14402059,1,1,2) [2025-02-04 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402059', 'tblTempUsageDetail_20' ) start [2025-02-04 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402059', 'tblTempUsageDetail_20' ) end [2025-02-04 18:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:02:25] Production.INFO: ==16682== Releasing lock... [2025-02-04 18:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:02:25] Production.INFO: 58 MB #Memory Used# [2025-02-04 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:03:05 [end_date_ymd] => 2025-02-04 18:03:05 [RateCDR] => 1 ) [2025-02-04 18:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:03:05' and `end` < '2025-02-04 18:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:03:19] Production.INFO: count ==4008 [2025-02-04 18:03:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:03:05 - End Time 2025-02-04 18:03:05 [2025-02-04 18:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402064', 'tblTempUsageDetail_20' ) start [2025-02-04 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402064', 'tblTempUsageDetail_20' ) end [2025-02-04 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402064', 'tblTempVendorCDR_20' ) start [2025-02-04 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402064', 'tblTempVendorCDR_20' ) end [2025-02-04 18:03:20] Production.INFO: ProcessCDR(1,14402064,1,1,2) [2025-02-04 18:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402064', 'tblTempUsageDetail_20' ) start [2025-02-04 18:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402064', 'tblTempUsageDetail_20' ) end [2025-02-04 18:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:03:23] Production.INFO: ==16801== Releasing lock... [2025-02-04 18:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:03:23] Production.INFO: 58 MB #Memory Used# [2025-02-04 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:04:05 [end_date_ymd] => 2025-02-04 18:04:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 15:04:05' and `end` < '2025-02-04 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-02-04 18:04:19] Production.INFO: count ==3994 [2025-02-04 18:04:21] Production.ERROR: pbx CDR StartTime 2025-02-04 15:04:05 - End Time 2025-02-04 18:04:05 [2025-02-04 18:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402069', 'tblTempUsageDetail_20' ) start [2025-02-04 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402069', 'tblTempUsageDetail_20' ) end [2025-02-04 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402069', 'tblTempVendorCDR_20' ) start [2025-02-04 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402069', 'tblTempVendorCDR_20' ) end [2025-02-04 18:04:21] Production.INFO: ProcessCDR(1,14402069,1,1,2) [2025-02-04 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402069', 'tblTempUsageDetail_20' ) start [2025-02-04 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402069', 'tblTempUsageDetail_20' ) end [2025-02-04 18:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:04:24] Production.INFO: ==16883== Releasing lock... [2025-02-04 18:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:04:24] Production.INFO: 58 MB #Memory Used# [2025-02-04 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:05:05 [end_date_ymd] => 2025-02-04 18:05:05 [RateCDR] => 1 ) [2025-02-04 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:05:05' and `end` < '2025-02-04 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:05:19] Production.INFO: count ==3983 [2025-02-04 18:05:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:05:05 - End Time 2025-02-04 18:05:05 [2025-02-04 18:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402074', 'tblTempUsageDetail_20' ) start [2025-02-04 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402074', 'tblTempUsageDetail_20' ) end [2025-02-04 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402074', 'tblTempVendorCDR_20' ) start [2025-02-04 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402074', 'tblTempVendorCDR_20' ) end [2025-02-04 18:05:20] Production.INFO: ProcessCDR(1,14402074,1,1,2) [2025-02-04 18:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402074', 'tblTempUsageDetail_20' ) start [2025-02-04 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402074', 'tblTempUsageDetail_20' ) end [2025-02-04 18:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:05:23] Production.INFO: ==16964== Releasing lock... [2025-02-04 18:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:05:23] Production.INFO: 58.25 MB #Memory Used# [2025-02-04 18:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:06:06 [end_date_ymd] => 2025-02-04 18:06:06 [RateCDR] => 1 ) [2025-02-04 18:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:06:06' and `end` < '2025-02-04 18:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:06:19] Production.INFO: count ==3964 [2025-02-04 18:06:21] Production.ERROR: pbx CDR StartTime 2025-02-04 15:06:06 - End Time 2025-02-04 18:06:06 [2025-02-04 18:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402079', 'tblTempUsageDetail_20' ) start [2025-02-04 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402079', 'tblTempUsageDetail_20' ) end [2025-02-04 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402079', 'tblTempVendorCDR_20' ) start [2025-02-04 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402079', 'tblTempVendorCDR_20' ) end [2025-02-04 18:06:21] Production.INFO: ProcessCDR(1,14402079,1,1,2) [2025-02-04 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402079', 'tblTempUsageDetail_20' ) start [2025-02-04 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402079', 'tblTempUsageDetail_20' ) end [2025-02-04 18:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:06:25] Production.INFO: ==17044== Releasing lock... [2025-02-04 18:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:06:25] Production.INFO: 57.5 MB #Memory Used# [2025-02-04 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:07:05 [end_date_ymd] => 2025-02-04 18:07:05 [RateCDR] => 1 ) [2025-02-04 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:07:05' and `end` < '2025-02-04 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:07:19] Production.INFO: count ==3963 [2025-02-04 18:07:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:07:05 - End Time 2025-02-04 18:07:05 [2025-02-04 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402084', 'tblTempUsageDetail_20' ) start [2025-02-04 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402084', 'tblTempUsageDetail_20' ) end [2025-02-04 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402084', 'tblTempVendorCDR_20' ) start [2025-02-04 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402084', 'tblTempVendorCDR_20' ) end [2025-02-04 18:07:20] Production.INFO: ProcessCDR(1,14402084,1,1,2) [2025-02-04 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402084', 'tblTempUsageDetail_20' ) start [2025-02-04 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402084', 'tblTempUsageDetail_20' ) end [2025-02-04 18:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:07:25] Production.INFO: ==17122== Releasing lock... [2025-02-04 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:07:25] Production.INFO: 57.75 MB #Memory Used# [2025-02-04 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:08:05 [end_date_ymd] => 2025-02-04 18:08:05 [RateCDR] => 1 ) [2025-02-04 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:08:05' and `end` < '2025-02-04 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:08:21] Production.INFO: count ==3979 [2025-02-04 18:08:23] Production.ERROR: pbx CDR StartTime 2025-02-04 15:08:05 - End Time 2025-02-04 18:08:05 [2025-02-04 18:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402089', 'tblTempUsageDetail_20' ) start [2025-02-04 18:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402089', 'tblTempUsageDetail_20' ) end [2025-02-04 18:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402089', 'tblTempVendorCDR_20' ) start [2025-02-04 18:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402089', 'tblTempVendorCDR_20' ) end [2025-02-04 18:08:23] Production.INFO: ProcessCDR(1,14402089,1,1,2) [2025-02-04 18:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402089', 'tblTempUsageDetail_20' ) start [2025-02-04 18:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402089', 'tblTempUsageDetail_20' ) end [2025-02-04 18:08:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:08:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:08:28] Production.INFO: ==17200== Releasing lock... [2025-02-04 18:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:08:28] Production.INFO: 57.75 MB #Memory Used# [2025-02-04 18:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:09:04 [end_date_ymd] => 2025-02-04 18:09:04 [RateCDR] => 1 ) [2025-02-04 18:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:09:04' and `end` < '2025-02-04 18:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:09:18] Production.INFO: count ==3977 [2025-02-04 18:09:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:09:04 - End Time 2025-02-04 18:09:04 [2025-02-04 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402094', 'tblTempUsageDetail_20' ) start [2025-02-04 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402094', 'tblTempUsageDetail_20' ) end [2025-02-04 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402094', 'tblTempVendorCDR_20' ) start [2025-02-04 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402094', 'tblTempVendorCDR_20' ) end [2025-02-04 18:09:20] Production.INFO: ProcessCDR(1,14402094,1,1,2) [2025-02-04 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402094', 'tblTempUsageDetail_20' ) start [2025-02-04 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402094', 'tblTempUsageDetail_20' ) end [2025-02-04 18:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:09:24] Production.INFO: ==17278== Releasing lock... [2025-02-04 18:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:09:24] Production.INFO: 57.75 MB #Memory Used# [2025-02-04 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:10:06 [end_date_ymd] => 2025-02-04 18:10:06 [RateCDR] => 1 ) [2025-02-04 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:10:06' and `end` < '2025-02-04 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:10:19] Production.INFO: count ==3966 [2025-02-04 18:10:21] Production.ERROR: pbx CDR StartTime 2025-02-04 15:10:06 - End Time 2025-02-04 18:10:06 [2025-02-04 18:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402100', 'tblTempUsageDetail_20' ) start [2025-02-04 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402100', 'tblTempUsageDetail_20' ) end [2025-02-04 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402100', 'tblTempVendorCDR_20' ) start [2025-02-04 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402100', 'tblTempVendorCDR_20' ) end [2025-02-04 18:10:21] Production.INFO: ProcessCDR(1,14402100,1,1,2) [2025-02-04 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402100', 'tblTempUsageDetail_20' ) start [2025-02-04 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402100', 'tblTempUsageDetail_20' ) end [2025-02-04 18:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:10:24] Production.INFO: ==17365== Releasing lock... [2025-02-04 18:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:10:24] Production.INFO: 57.5 MB #Memory Used# [2025-02-04 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:11:05 [end_date_ymd] => 2025-02-04 18:11:05 [RateCDR] => 1 ) [2025-02-04 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:11:05' and `end` < '2025-02-04 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:11:19] Production.INFO: count ==3938 [2025-02-04 18:11:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:11:05 - End Time 2025-02-04 18:11:05 [2025-02-04 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402105', 'tblTempUsageDetail_20' ) start [2025-02-04 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402105', 'tblTempUsageDetail_20' ) end [2025-02-04 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402105', 'tblTempVendorCDR_20' ) start [2025-02-04 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402105', 'tblTempVendorCDR_20' ) end [2025-02-04 18:11:20] Production.INFO: ProcessCDR(1,14402105,1,1,2) [2025-02-04 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402105', 'tblTempUsageDetail_20' ) start [2025-02-04 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402105', 'tblTempUsageDetail_20' ) end [2025-02-04 18:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:11:25] Production.INFO: ==17447== Releasing lock... [2025-02-04 18:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:11:25] Production.INFO: 57.5 MB #Memory Used# [2025-02-04 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:12:05 [end_date_ymd] => 2025-02-04 18:12:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 15:12:05' and `end` < '2025-02-04 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-02-04 18:12:19] Production.INFO: count ==3937 [2025-02-04 18:12:21] Production.ERROR: pbx CDR StartTime 2025-02-04 15:12:05 - End Time 2025-02-04 18:12:05 [2025-02-04 18:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402110', 'tblTempUsageDetail_20' ) start [2025-02-04 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402110', 'tblTempUsageDetail_20' ) end [2025-02-04 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402110', 'tblTempVendorCDR_20' ) start [2025-02-04 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402110', 'tblTempVendorCDR_20' ) end [2025-02-04 18:12:21] Production.INFO: ProcessCDR(1,14402110,1,1,2) [2025-02-04 18:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402110', 'tblTempUsageDetail_20' ) start [2025-02-04 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402110', 'tblTempUsageDetail_20' ) end [2025-02-04 18:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:12:24] Production.INFO: ==17527== Releasing lock... [2025-02-04 18:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:12:24] Production.INFO: 57.75 MB #Memory Used# [2025-02-04 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:13:05 [end_date_ymd] => 2025-02-04 18:13:05 [RateCDR] => 1 ) [2025-02-04 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:13:05' and `end` < '2025-02-04 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:13:19] Production.INFO: count ==3967 [2025-02-04 18:13:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:13:05 - End Time 2025-02-04 18:13:05 [2025-02-04 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402115', 'tblTempUsageDetail_20' ) start [2025-02-04 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402115', 'tblTempUsageDetail_20' ) end [2025-02-04 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402115', 'tblTempVendorCDR_20' ) start [2025-02-04 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402115', 'tblTempVendorCDR_20' ) end [2025-02-04 18:13:20] Production.INFO: ProcessCDR(1,14402115,1,1,2) [2025-02-04 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402115', 'tblTempUsageDetail_20' ) start [2025-02-04 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402115', 'tblTempUsageDetail_20' ) end [2025-02-04 18:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:13:23] Production.INFO: ==17605== Releasing lock... [2025-02-04 18:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:13:23] Production.INFO: 57.75 MB #Memory Used# [2025-02-04 18:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:14:04 [end_date_ymd] => 2025-02-04 18:14:04 [RateCDR] => 1 ) [2025-02-04 18: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-02-04 15:14:04' and `end` < '2025-02-04 18: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-02-04 18:14:18] Production.INFO: count ==3969 [2025-02-04 18:14:19] Production.ERROR: pbx CDR StartTime 2025-02-04 15:14:04 - End Time 2025-02-04 18:14:04 [2025-02-04 18:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402120', 'tblTempUsageDetail_20' ) start [2025-02-04 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402120', 'tblTempUsageDetail_20' ) end [2025-02-04 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402120', 'tblTempVendorCDR_20' ) start [2025-02-04 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402120', 'tblTempVendorCDR_20' ) end [2025-02-04 18:14:19] Production.INFO: ProcessCDR(1,14402120,1,1,2) [2025-02-04 18:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402120', 'tblTempUsageDetail_20' ) start [2025-02-04 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402120', 'tblTempUsageDetail_20' ) end [2025-02-04 18:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:14:23] Production.INFO: ==17684== Releasing lock... [2025-02-04 18:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:14:23] Production.INFO: 58 MB #Memory Used# [2025-02-04 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:15:05 [end_date_ymd] => 2025-02-04 18:15:05 [RateCDR] => 1 ) [2025-02-04 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:15:05' and `end` < '2025-02-04 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:15:19] Production.INFO: count ==3975 [2025-02-04 18:15:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:15:05 - End Time 2025-02-04 18:15:05 [2025-02-04 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402125', 'tblTempUsageDetail_20' ) start [2025-02-04 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402125', 'tblTempUsageDetail_20' ) end [2025-02-04 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402125', 'tblTempVendorCDR_20' ) start [2025-02-04 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402125', 'tblTempVendorCDR_20' ) end [2025-02-04 18:15:20] Production.INFO: ProcessCDR(1,14402125,1,1,2) [2025-02-04 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402125', 'tblTempUsageDetail_20' ) start [2025-02-04 18:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402125', 'tblTempUsageDetail_20' ) end [2025-02-04 18:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:15:23] Production.INFO: ==17769== Releasing lock... [2025-02-04 18:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:15:23] Production.INFO: 57.75 MB #Memory Used# [2025-02-04 18:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:16:04 [end_date_ymd] => 2025-02-04 18:16:04 [RateCDR] => 1 ) [2025-02-04 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-02-04 15:16:04' and `end` < '2025-02-04 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-02-04 18:16:18] Production.INFO: count ==3975 [2025-02-04 18:16:19] Production.ERROR: pbx CDR StartTime 2025-02-04 15:16:04 - End Time 2025-02-04 18:16:04 [2025-02-04 18:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402130', 'tblTempUsageDetail_20' ) start [2025-02-04 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402130', 'tblTempUsageDetail_20' ) end [2025-02-04 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402130', 'tblTempVendorCDR_20' ) start [2025-02-04 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402130', 'tblTempVendorCDR_20' ) end [2025-02-04 18:16:20] Production.INFO: ProcessCDR(1,14402130,1,1,2) [2025-02-04 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402130', 'tblTempUsageDetail_20' ) start [2025-02-04 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402130', 'tblTempUsageDetail_20' ) end [2025-02-04 18:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:16:24] Production.INFO: ==17850== Releasing lock... [2025-02-04 18:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:16:24] Production.INFO: 57.75 MB #Memory Used# [2025-02-04 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:17:05 [end_date_ymd] => 2025-02-04 18:17:05 [RateCDR] => 1 ) [2025-02-04 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:17:05' and `end` < '2025-02-04 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:17:19] Production.INFO: count ==3975 [2025-02-04 18:17:21] Production.ERROR: pbx CDR StartTime 2025-02-04 15:17:05 - End Time 2025-02-04 18:17:05 [2025-02-04 18:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402135', 'tblTempUsageDetail_20' ) start [2025-02-04 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402135', 'tblTempUsageDetail_20' ) end [2025-02-04 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402135', 'tblTempVendorCDR_20' ) start [2025-02-04 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402135', 'tblTempVendorCDR_20' ) end [2025-02-04 18:17:21] Production.INFO: ProcessCDR(1,14402135,1,1,2) [2025-02-04 18:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402135', 'tblTempUsageDetail_20' ) start [2025-02-04 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402135', 'tblTempUsageDetail_20' ) end [2025-02-04 18:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:17:26] Production.INFO: ==17931== Releasing lock... [2025-02-04 18:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:17:26] Production.INFO: 57.75 MB #Memory Used# [2025-02-04 18:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:18:06 [end_date_ymd] => 2025-02-04 18:18:06 [RateCDR] => 1 ) [2025-02-04 18:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:18:06' and `end` < '2025-02-04 18:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:18:21] Production.INFO: count ==3980 [2025-02-04 18:18:22] Production.ERROR: pbx CDR StartTime 2025-02-04 15:18:06 - End Time 2025-02-04 18:18:06 [2025-02-04 18:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402140', 'tblTempUsageDetail_20' ) start [2025-02-04 18:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402140', 'tblTempUsageDetail_20' ) end [2025-02-04 18:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402140', 'tblTempVendorCDR_20' ) start [2025-02-04 18:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402140', 'tblTempVendorCDR_20' ) end [2025-02-04 18:18:22] Production.INFO: ProcessCDR(1,14402140,1,1,2) [2025-02-04 18:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402140', 'tblTempUsageDetail_20' ) start [2025-02-04 18:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402140', 'tblTempUsageDetail_20' ) end [2025-02-04 18:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:18:27] Production.INFO: ==18006== Releasing lock... [2025-02-04 18:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:18:27] Production.INFO: 58 MB #Memory Used# [2025-02-04 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:19:05 [end_date_ymd] => 2025-02-04 18:19:05 [RateCDR] => 1 ) [2025-02-04 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:19:05' and `end` < '2025-02-04 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:19:19] Production.INFO: count ==3981 [2025-02-04 18:19:21] Production.ERROR: pbx CDR StartTime 2025-02-04 15:19:05 - End Time 2025-02-04 18:19:05 [2025-02-04 18:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402145', 'tblTempUsageDetail_20' ) start [2025-02-04 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402145', 'tblTempUsageDetail_20' ) end [2025-02-04 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402145', 'tblTempVendorCDR_20' ) start [2025-02-04 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402145', 'tblTempVendorCDR_20' ) end [2025-02-04 18:19:21] Production.INFO: ProcessCDR(1,14402145,1,1,2) [2025-02-04 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402145', 'tblTempUsageDetail_20' ) start [2025-02-04 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402145', 'tblTempUsageDetail_20' ) end [2025-02-04 18:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:19:26] Production.INFO: ==18125== Releasing lock... [2025-02-04 18:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:19:26] Production.INFO: 57.75 MB #Memory Used# [2025-02-04 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:20:06 [end_date_ymd] => 2025-02-04 18:20:06 [RateCDR] => 1 ) [2025-02-04 18:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:20:06' and `end` < '2025-02-04 18:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:20:20] Production.INFO: count ==3968 [2025-02-04 18:20:21] Production.ERROR: pbx CDR StartTime 2025-02-04 15:20:06 - End Time 2025-02-04 18:20:06 [2025-02-04 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402150', 'tblTempUsageDetail_20' ) start [2025-02-04 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402150', 'tblTempUsageDetail_20' ) end [2025-02-04 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402150', 'tblTempVendorCDR_20' ) start [2025-02-04 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402150', 'tblTempVendorCDR_20' ) end [2025-02-04 18:20:21] Production.INFO: ProcessCDR(1,14402150,1,1,2) [2025-02-04 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402150', 'tblTempUsageDetail_20' ) start [2025-02-04 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402150', 'tblTempUsageDetail_20' ) end [2025-02-04 18:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:20:24] Production.INFO: ==18208== Releasing lock... [2025-02-04 18:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:20:24] Production.INFO: 57.75 MB #Memory Used# [2025-02-04 18:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:21:04 [end_date_ymd] => 2025-02-04 18:21:04 [RateCDR] => 1 ) [2025-02-04 18:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:21:04' and `end` < '2025-02-04 18:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:21:19] Production.INFO: count ==3947 [2025-02-04 18:21:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:21:04 - End Time 2025-02-04 18:21:04 [2025-02-04 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402156', 'tblTempUsageDetail_20' ) start [2025-02-04 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402156', 'tblTempUsageDetail_20' ) end [2025-02-04 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402156', 'tblTempVendorCDR_20' ) start [2025-02-04 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402156', 'tblTempVendorCDR_20' ) end [2025-02-04 18:21:20] Production.INFO: ProcessCDR(1,14402156,1,1,2) [2025-02-04 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402156', 'tblTempUsageDetail_20' ) start [2025-02-04 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402156', 'tblTempUsageDetail_20' ) end [2025-02-04 18:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:21:23] Production.INFO: ==18287== Releasing lock... [2025-02-04 18:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:21:23] Production.INFO: 57.5 MB #Memory Used# [2025-02-04 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:22:05 [end_date_ymd] => 2025-02-04 18:22:05 [RateCDR] => 1 ) [2025-02-04 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:22:05' and `end` < '2025-02-04 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:22:19] Production.INFO: count ==3944 [2025-02-04 18:22:21] Production.ERROR: pbx CDR StartTime 2025-02-04 15:22:05 - End Time 2025-02-04 18:22:05 [2025-02-04 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402161', 'tblTempUsageDetail_20' ) start [2025-02-04 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402161', 'tblTempUsageDetail_20' ) end [2025-02-04 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402161', 'tblTempVendorCDR_20' ) start [2025-02-04 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402161', 'tblTempVendorCDR_20' ) end [2025-02-04 18:22:21] Production.INFO: ProcessCDR(1,14402161,1,1,2) [2025-02-04 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402161', 'tblTempUsageDetail_20' ) start [2025-02-04 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402161', 'tblTempUsageDetail_20' ) end [2025-02-04 18:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:22:24] Production.INFO: ==18364== Releasing lock... [2025-02-04 18:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:22:24] Production.INFO: 57.5 MB #Memory Used# [2025-02-04 18:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:23:04 [end_date_ymd] => 2025-02-04 18:23:04 [RateCDR] => 1 ) [2025-02-04 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-02-04 15:23:04' and `end` < '2025-02-04 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-02-04 18:23:19] Production.INFO: count ==3937 [2025-02-04 18:23:21] Production.ERROR: pbx CDR StartTime 2025-02-04 15:23:04 - End Time 2025-02-04 18:23:04 [2025-02-04 18:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402166', 'tblTempUsageDetail_20' ) start [2025-02-04 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402166', 'tblTempUsageDetail_20' ) end [2025-02-04 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402166', 'tblTempVendorCDR_20' ) start [2025-02-04 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402166', 'tblTempVendorCDR_20' ) end [2025-02-04 18:23:21] Production.INFO: ProcessCDR(1,14402166,1,1,2) [2025-02-04 18:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402166', 'tblTempUsageDetail_20' ) start [2025-02-04 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402166', 'tblTempUsageDetail_20' ) end [2025-02-04 18:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:23:25] Production.INFO: ==18447== Releasing lock... [2025-02-04 18:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:23:25] Production.INFO: 57.5 MB #Memory Used# [2025-02-04 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:24:06 [end_date_ymd] => 2025-02-04 18:24:06 [RateCDR] => 1 ) [2025-02-04 18:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:24:06' and `end` < '2025-02-04 18:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:24:19] Production.INFO: count ==3942 [2025-02-04 18:24:21] Production.ERROR: pbx CDR StartTime 2025-02-04 15:24:06 - End Time 2025-02-04 18:24:06 [2025-02-04 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402171', 'tblTempUsageDetail_20' ) start [2025-02-04 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402171', 'tblTempUsageDetail_20' ) end [2025-02-04 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402171', 'tblTempVendorCDR_20' ) start [2025-02-04 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402171', 'tblTempVendorCDR_20' ) end [2025-02-04 18:24:21] Production.INFO: ProcessCDR(1,14402171,1,1,2) [2025-02-04 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402171', 'tblTempUsageDetail_20' ) start [2025-02-04 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402171', 'tblTempUsageDetail_20' ) end [2025-02-04 18:24:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:24:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:24:26] Production.INFO: ==18528== Releasing lock... [2025-02-04 18:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:24:26] Production.INFO: 57.5 MB #Memory Used# [2025-02-04 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:25:05 [end_date_ymd] => 2025-02-04 18:25:05 [RateCDR] => 1 ) [2025-02-04 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:25:05' and `end` < '2025-02-04 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-02-04 18:25:19] Production.INFO: count ==3942 [2025-02-04 18:25:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:25:05 - End Time 2025-02-04 18:25:05 [2025-02-04 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402176', 'tblTempUsageDetail_20' ) start [2025-02-04 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402176', 'tblTempUsageDetail_20' ) end [2025-02-04 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402176', 'tblTempVendorCDR_20' ) start [2025-02-04 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402176', 'tblTempVendorCDR_20' ) end [2025-02-04 18:25:20] Production.INFO: ProcessCDR(1,14402176,1,1,2) [2025-02-04 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402176', 'tblTempUsageDetail_20' ) start [2025-02-04 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402176', 'tblTempUsageDetail_20' ) end [2025-02-04 18:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:25:25] Production.INFO: ==18605== Releasing lock... [2025-02-04 18:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:25:25] Production.INFO: 57.5 MB #Memory Used# [2025-02-04 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:26:05 [end_date_ymd] => 2025-02-04 18:26:05 [RateCDR] => 1 ) [2025-02-04 18:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:26:05' and `end` < '2025-02-04 18:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:26:18] Production.INFO: count ==3937 [2025-02-04 18:26:19] Production.ERROR: pbx CDR StartTime 2025-02-04 15:26:05 - End Time 2025-02-04 18:26:05 [2025-02-04 18:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402181', 'tblTempUsageDetail_20' ) start [2025-02-04 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402181', 'tblTempUsageDetail_20' ) end [2025-02-04 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402181', 'tblTempVendorCDR_20' ) start [2025-02-04 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402181', 'tblTempVendorCDR_20' ) end [2025-02-04 18:26:20] Production.INFO: ProcessCDR(1,14402181,1,1,2) [2025-02-04 18:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402181', 'tblTempUsageDetail_20' ) start [2025-02-04 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402181', 'tblTempUsageDetail_20' ) end [2025-02-04 18:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:26:24] Production.INFO: ==18684== Releasing lock... [2025-02-04 18:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:26:24] Production.INFO: 57.5 MB #Memory Used# [2025-02-04 18:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:27:06 [end_date_ymd] => 2025-02-04 18:27:06 [RateCDR] => 1 ) [2025-02-04 18:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:27:06' and `end` < '2025-02-04 18:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:27:19] Production.INFO: count ==3924 [2025-02-04 18:27:21] Production.ERROR: pbx CDR StartTime 2025-02-04 15:27:06 - End Time 2025-02-04 18:27:06 [2025-02-04 18:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402186', 'tblTempUsageDetail_20' ) start [2025-02-04 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402186', 'tblTempUsageDetail_20' ) end [2025-02-04 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402186', 'tblTempVendorCDR_20' ) start [2025-02-04 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402186', 'tblTempVendorCDR_20' ) end [2025-02-04 18:27:21] Production.INFO: ProcessCDR(1,14402186,1,1,2) [2025-02-04 18:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402186', 'tblTempUsageDetail_20' ) start [2025-02-04 18:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402186', 'tblTempUsageDetail_20' ) end [2025-02-04 18:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:27:25] Production.INFO: ==18765== Releasing lock... [2025-02-04 18:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:27:25] Production.INFO: 57.25 MB #Memory Used# [2025-02-04 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:28:05 [end_date_ymd] => 2025-02-04 18:28:05 [RateCDR] => 1 ) [2025-02-04 18:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:28:05' and `end` < '2025-02-04 18:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:28:18] Production.INFO: count ==3923 [2025-02-04 18:28:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:28:05 - End Time 2025-02-04 18:28:05 [2025-02-04 18:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402191', 'tblTempUsageDetail_20' ) start [2025-02-04 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402191', 'tblTempUsageDetail_20' ) end [2025-02-04 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402191', 'tblTempVendorCDR_20' ) start [2025-02-04 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402191', 'tblTempVendorCDR_20' ) end [2025-02-04 18:28:20] Production.INFO: ProcessCDR(1,14402191,1,1,2) [2025-02-04 18:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402191', 'tblTempUsageDetail_20' ) start [2025-02-04 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402191', 'tblTempUsageDetail_20' ) end [2025-02-04 18:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:28:23] Production.INFO: ==18841== Releasing lock... [2025-02-04 18:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:28:23] Production.INFO: 57.25 MB #Memory Used# [2025-02-04 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:29:05 [end_date_ymd] => 2025-02-04 18:29:05 [RateCDR] => 1 ) [2025-02-04 18:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:29:05' and `end` < '2025-02-04 18:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:29:19] Production.INFO: count ==3910 [2025-02-04 18:29:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:29:05 - End Time 2025-02-04 18:29:05 [2025-02-04 18:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402196', 'tblTempUsageDetail_20' ) start [2025-02-04 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402196', 'tblTempUsageDetail_20' ) end [2025-02-04 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402196', 'tblTempVendorCDR_20' ) start [2025-02-04 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402196', 'tblTempVendorCDR_20' ) end [2025-02-04 18:29:20] Production.INFO: ProcessCDR(1,14402196,1,1,2) [2025-02-04 18:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402196', 'tblTempUsageDetail_20' ) start [2025-02-04 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402196', 'tblTempUsageDetail_20' ) end [2025-02-04 18:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:29:24] Production.INFO: ==18922== Releasing lock... [2025-02-04 18:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:29:24] Production.INFO: 57.5 MB #Memory Used# [2025-02-04 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:30:06 [end_date_ymd] => 2025-02-04 18:30:06 [RateCDR] => 1 ) [2025-02-04 18:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:30:06' and `end` < '2025-02-04 18:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:30:19] Production.INFO: count ==3907 [2025-02-04 18:30:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:30:06 - End Time 2025-02-04 18:30:06 [2025-02-04 18:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402201', 'tblTempUsageDetail_20' ) start [2025-02-04 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402201', 'tblTempUsageDetail_20' ) end [2025-02-04 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402201', 'tblTempVendorCDR_20' ) start [2025-02-04 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402201', 'tblTempVendorCDR_20' ) end [2025-02-04 18:30:20] Production.INFO: ProcessCDR(1,14402201,1,1,2) [2025-02-04 18:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402201', 'tblTempUsageDetail_20' ) start [2025-02-04 18:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402201', 'tblTempUsageDetail_20' ) end [2025-02-04 18:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:30:24] Production.INFO: ==19002== Releasing lock... [2025-02-04 18:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:30:24] Production.INFO: 57.25 MB #Memory Used# [2025-02-04 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:31:05 [end_date_ymd] => 2025-02-04 18:31:05 [RateCDR] => 1 ) [2025-02-04 18:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:31:05' and `end` < '2025-02-04 18:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:31:18] Production.INFO: count ==3870 [2025-02-04 18:31:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:31:05 - End Time 2025-02-04 18:31:05 [2025-02-04 18:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402207', 'tblTempUsageDetail_20' ) start [2025-02-04 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402207', 'tblTempUsageDetail_20' ) end [2025-02-04 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402207', 'tblTempVendorCDR_20' ) start [2025-02-04 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402207', 'tblTempVendorCDR_20' ) end [2025-02-04 18:31:20] Production.INFO: ProcessCDR(1,14402207,1,1,2) [2025-02-04 18:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402207', 'tblTempUsageDetail_20' ) start [2025-02-04 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402207', 'tblTempUsageDetail_20' ) end [2025-02-04 18:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:31:24] Production.INFO: ==19087== Releasing lock... [2025-02-04 18:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:31:24] Production.INFO: 57 MB #Memory Used# [2025-02-04 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:32:05 [end_date_ymd] => 2025-02-04 18:32:05 [RateCDR] => 1 ) [2025-02-04 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:32:05' and `end` < '2025-02-04 18:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:32:19] Production.INFO: count ==3867 [2025-02-04 18:32:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:32:05 - End Time 2025-02-04 18:32:05 [2025-02-04 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402212', 'tblTempUsageDetail_20' ) start [2025-02-04 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402212', 'tblTempUsageDetail_20' ) end [2025-02-04 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402212', 'tblTempVendorCDR_20' ) start [2025-02-04 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402212', 'tblTempVendorCDR_20' ) end [2025-02-04 18:32:20] Production.INFO: ProcessCDR(1,14402212,1,1,2) [2025-02-04 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402212', 'tblTempUsageDetail_20' ) start [2025-02-04 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402212', 'tblTempUsageDetail_20' ) end [2025-02-04 18:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:32:25] Production.INFO: ==19164== Releasing lock... [2025-02-04 18:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:32:25] Production.INFO: 56.75 MB #Memory Used# [2025-02-04 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:33:05 [end_date_ymd] => 2025-02-04 18:33:05 [RateCDR] => 1 ) [2025-02-04 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:33:05' and `end` < '2025-02-04 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:33:19] Production.INFO: count ==3864 [2025-02-04 18:33:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:33:05 - End Time 2025-02-04 18:33:05 [2025-02-04 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402217', 'tblTempUsageDetail_20' ) start [2025-02-04 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402217', 'tblTempUsageDetail_20' ) end [2025-02-04 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402217', 'tblTempVendorCDR_20' ) start [2025-02-04 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402217', 'tblTempVendorCDR_20' ) end [2025-02-04 18:33:20] Production.INFO: ProcessCDR(1,14402217,1,1,2) [2025-02-04 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402217', 'tblTempUsageDetail_20' ) start [2025-02-04 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402217', 'tblTempUsageDetail_20' ) end [2025-02-04 18:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:33:23] Production.INFO: ==19242== Releasing lock... [2025-02-04 18:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:33:23] Production.INFO: 56.75 MB #Memory Used# [2025-02-04 18:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:34:05 [end_date_ymd] => 2025-02-04 18:34:05 [RateCDR] => 1 ) [2025-02-04 18:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:34:05' and `end` < '2025-02-04 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:34:19] Production.INFO: count ==3853 [2025-02-04 18:34:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:34:05 - End Time 2025-02-04 18:34:05 [2025-02-04 18:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402222', 'tblTempUsageDetail_20' ) start [2025-02-04 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402222', 'tblTempUsageDetail_20' ) end [2025-02-04 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402222', 'tblTempVendorCDR_20' ) start [2025-02-04 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402222', 'tblTempVendorCDR_20' ) end [2025-02-04 18:34:20] Production.INFO: ProcessCDR(1,14402222,1,1,2) [2025-02-04 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402222', 'tblTempUsageDetail_20' ) start [2025-02-04 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402222', 'tblTempUsageDetail_20' ) end [2025-02-04 18:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:34:23] Production.INFO: ==19364== Releasing lock... [2025-02-04 18:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:34:23] Production.INFO: 57 MB #Memory Used# [2025-02-04 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:35:05 [end_date_ymd] => 2025-02-04 18:35:05 [RateCDR] => 1 ) [2025-02-04 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:35:05' and `end` < '2025-02-04 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:35:19] Production.INFO: count ==3840 [2025-02-04 18:35:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:35:05 - End Time 2025-02-04 18:35:05 [2025-02-04 18:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402227', 'tblTempUsageDetail_20' ) start [2025-02-04 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402227', 'tblTempUsageDetail_20' ) end [2025-02-04 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402227', 'tblTempVendorCDR_20' ) start [2025-02-04 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402227', 'tblTempVendorCDR_20' ) end [2025-02-04 18:35:20] Production.INFO: ProcessCDR(1,14402227,1,1,2) [2025-02-04 18:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402227', 'tblTempUsageDetail_20' ) start [2025-02-04 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402227', 'tblTempUsageDetail_20' ) end [2025-02-04 18:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:35:23] Production.INFO: ==19438== Releasing lock... [2025-02-04 18:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:35:23] Production.INFO: 56.75 MB #Memory Used# [2025-02-04 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:36:05 [end_date_ymd] => 2025-02-04 18:36:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 15:36:05' and `end` < '2025-02-04 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-02-04 18:36:19] Production.INFO: count ==3828 [2025-02-04 18:36:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:36:05 - End Time 2025-02-04 18:36:05 [2025-02-04 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402232', 'tblTempUsageDetail_20' ) start [2025-02-04 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402232', 'tblTempUsageDetail_20' ) end [2025-02-04 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402232', 'tblTempVendorCDR_20' ) start [2025-02-04 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402232', 'tblTempVendorCDR_20' ) end [2025-02-04 18:36:21] Production.INFO: ProcessCDR(1,14402232,1,1,2) [2025-02-04 18:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402232', 'tblTempUsageDetail_20' ) start [2025-02-04 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402232', 'tblTempUsageDetail_20' ) end [2025-02-04 18:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:36:25] Production.INFO: ==19521== Releasing lock... [2025-02-04 18:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:36:25] Production.INFO: 56.75 MB #Memory Used# [2025-02-04 18:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:37:04 [end_date_ymd] => 2025-02-04 18:37:04 [RateCDR] => 1 ) [2025-02-04 18:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:37:04' and `end` < '2025-02-04 18:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:37:18] Production.INFO: count ==3804 [2025-02-04 18:37:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:37:04 - End Time 2025-02-04 18:37:04 [2025-02-04 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402237', 'tblTempUsageDetail_20' ) start [2025-02-04 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402237', 'tblTempUsageDetail_20' ) end [2025-02-04 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402237', 'tblTempVendorCDR_20' ) start [2025-02-04 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402237', 'tblTempVendorCDR_20' ) end [2025-02-04 18:37:20] Production.INFO: ProcessCDR(1,14402237,1,1,2) [2025-02-04 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402237', 'tblTempUsageDetail_20' ) start [2025-02-04 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402237', 'tblTempUsageDetail_20' ) end [2025-02-04 18:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:37:23] Production.INFO: ==19599== Releasing lock... [2025-02-04 18:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:37:23] Production.INFO: 56.5 MB #Memory Used# [2025-02-04 18:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:38:04 [end_date_ymd] => 2025-02-04 18:38:04 [RateCDR] => 1 ) [2025-02-04 18:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:38:04' and `end` < '2025-02-04 18:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:38:19] Production.INFO: count ==3794 [2025-02-04 18:38:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:38:04 - End Time 2025-02-04 18:38:04 [2025-02-04 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402242', 'tblTempUsageDetail_20' ) start [2025-02-04 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402242', 'tblTempUsageDetail_20' ) end [2025-02-04 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402242', 'tblTempVendorCDR_20' ) start [2025-02-04 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402242', 'tblTempVendorCDR_20' ) end [2025-02-04 18:38:20] Production.INFO: ProcessCDR(1,14402242,1,1,2) [2025-02-04 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402242', 'tblTempUsageDetail_20' ) start [2025-02-04 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402242', 'tblTempUsageDetail_20' ) end [2025-02-04 18:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:38:25] Production.INFO: ==19678== Releasing lock... [2025-02-04 18:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:38:25] Production.INFO: 56.5 MB #Memory Used# [2025-02-04 18:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:39:04 [end_date_ymd] => 2025-02-04 18:39:04 [RateCDR] => 1 ) [2025-02-04 18:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:39:04' and `end` < '2025-02-04 18:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:39:25] Production.INFO: count ==3769 [2025-02-04 18:39:26] Production.ERROR: pbx CDR StartTime 2025-02-04 15:39:04 - End Time 2025-02-04 18:39:04 [2025-02-04 18:39:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402247', 'tblTempUsageDetail_20' ) start [2025-02-04 18:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402247', 'tblTempUsageDetail_20' ) end [2025-02-04 18:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402247', 'tblTempVendorCDR_20' ) start [2025-02-04 18:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402247', 'tblTempVendorCDR_20' ) end [2025-02-04 18:39:26] Production.INFO: ProcessCDR(1,14402247,1,1,2) [2025-02-04 18:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:39:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:39:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:39:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402247', 'tblTempUsageDetail_20' ) start [2025-02-04 18:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402247', 'tblTempUsageDetail_20' ) end [2025-02-04 18:39:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:39:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:39:30] Production.INFO: ==19754== Releasing lock... [2025-02-04 18:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:39:30] Production.INFO: 56 MB #Memory Used# [2025-02-04 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:40:05 [end_date_ymd] => 2025-02-04 18:40:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 15:40:05' and `end` < '2025-02-04 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-02-04 18:40:24] Production.INFO: count ==3765 [2025-02-04 18:40:25] Production.ERROR: pbx CDR StartTime 2025-02-04 15:40:05 - End Time 2025-02-04 18:40:05 [2025-02-04 18:40:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402253', 'tblTempUsageDetail_20' ) start [2025-02-04 18:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402253', 'tblTempUsageDetail_20' ) end [2025-02-04 18:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402253', 'tblTempVendorCDR_20' ) start [2025-02-04 18:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402253', 'tblTempVendorCDR_20' ) end [2025-02-04 18:40:25] Production.INFO: ProcessCDR(1,14402253,1,1,2) [2025-02-04 18:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402253', 'tblTempUsageDetail_20' ) start [2025-02-04 18:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402253', 'tblTempUsageDetail_20' ) end [2025-02-04 18:40:30] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:40:30] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:40:30] Production.INFO: ==19835== Releasing lock... [2025-02-04 18:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:40:30] Production.INFO: 56 MB #Memory Used# [2025-02-04 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:41:05 [end_date_ymd] => 2025-02-04 18:41:05 [RateCDR] => 1 ) [2025-02-04 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:41:05' and `end` < '2025-02-04 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:41:18] Production.INFO: count ==3689 [2025-02-04 18:41:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:41:05 - End Time 2025-02-04 18:41:05 [2025-02-04 18:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402258', 'tblTempUsageDetail_20' ) start [2025-02-04 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402258', 'tblTempUsageDetail_20' ) end [2025-02-04 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402258', 'tblTempVendorCDR_20' ) start [2025-02-04 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402258', 'tblTempVendorCDR_20' ) end [2025-02-04 18:41:20] Production.INFO: ProcessCDR(1,14402258,1,1,2) [2025-02-04 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402258', 'tblTempUsageDetail_20' ) start [2025-02-04 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402258', 'tblTempUsageDetail_20' ) end [2025-02-04 18:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:41:23] Production.INFO: ==19917== Releasing lock... [2025-02-04 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:41:23] Production.INFO: 55.75 MB #Memory Used# [2025-02-04 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:42:05 [end_date_ymd] => 2025-02-04 18:42:05 [RateCDR] => 1 ) [2025-02-04 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:42:05' and `end` < '2025-02-04 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:42:18] Production.INFO: count ==3685 [2025-02-04 18:42:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:42:05 - End Time 2025-02-04 18:42:05 [2025-02-04 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402263', 'tblTempUsageDetail_20' ) start [2025-02-04 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402263', 'tblTempUsageDetail_20' ) end [2025-02-04 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402263', 'tblTempVendorCDR_20' ) start [2025-02-04 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402263', 'tblTempVendorCDR_20' ) end [2025-02-04 18:42:20] Production.INFO: ProcessCDR(1,14402263,1,1,2) [2025-02-04 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402263', 'tblTempUsageDetail_20' ) start [2025-02-04 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402263', 'tblTempUsageDetail_20' ) end [2025-02-04 18:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:42:23] Production.INFO: ==19997== Releasing lock... [2025-02-04 18:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:42:23] Production.INFO: 56 MB #Memory Used# [2025-02-04 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:43:05 [end_date_ymd] => 2025-02-04 18:43:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 15:43:05' and `end` < '2025-02-04 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-02-04 18:43:19] Production.INFO: count ==3671 [2025-02-04 18:43:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:43:05 - End Time 2025-02-04 18:43:05 [2025-02-04 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402268', 'tblTempUsageDetail_20' ) start [2025-02-04 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402268', 'tblTempUsageDetail_20' ) end [2025-02-04 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402268', 'tblTempVendorCDR_20' ) start [2025-02-04 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402268', 'tblTempVendorCDR_20' ) end [2025-02-04 18:43:20] Production.INFO: ProcessCDR(1,14402268,1,1,2) [2025-02-04 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402268', 'tblTempUsageDetail_20' ) start [2025-02-04 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402268', 'tblTempUsageDetail_20' ) end [2025-02-04 18:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:43:24] Production.INFO: ==20081== Releasing lock... [2025-02-04 18:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:43:24] Production.INFO: 55.5 MB #Memory Used# [2025-02-04 18:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:44:04 [end_date_ymd] => 2025-02-04 18:44:04 [RateCDR] => 1 ) [2025-02-04 18: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-02-04 15:44:04' and `end` < '2025-02-04 18:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:44:18] Production.INFO: count ==3654 [2025-02-04 18:44:19] Production.ERROR: pbx CDR StartTime 2025-02-04 15:44:04 - End Time 2025-02-04 18:44:04 [2025-02-04 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402273', 'tblTempUsageDetail_20' ) start [2025-02-04 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402273', 'tblTempUsageDetail_20' ) end [2025-02-04 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402273', 'tblTempVendorCDR_20' ) start [2025-02-04 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402273', 'tblTempVendorCDR_20' ) end [2025-02-04 18:44:19] Production.INFO: ProcessCDR(1,14402273,1,1,2) [2025-02-04 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402273', 'tblTempUsageDetail_20' ) start [2025-02-04 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402273', 'tblTempUsageDetail_20' ) end [2025-02-04 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:44:24] Production.INFO: ==20157== Releasing lock... [2025-02-04 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:44:24] Production.INFO: 55.75 MB #Memory Used# [2025-02-04 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:45:05 [end_date_ymd] => 2025-02-04 18:45:05 [RateCDR] => 1 ) [2025-02-04 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:45:05' and `end` < '2025-02-04 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:45:19] Production.INFO: count ==3635 [2025-02-04 18:45:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:45:05 - End Time 2025-02-04 18:45:05 [2025-02-04 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402278', 'tblTempUsageDetail_20' ) start [2025-02-04 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402278', 'tblTempUsageDetail_20' ) end [2025-02-04 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402278', 'tblTempVendorCDR_20' ) start [2025-02-04 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402278', 'tblTempVendorCDR_20' ) end [2025-02-04 18:45:20] Production.INFO: ProcessCDR(1,14402278,1,1,2) [2025-02-04 18:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402278', 'tblTempUsageDetail_20' ) start [2025-02-04 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402278', 'tblTempUsageDetail_20' ) end [2025-02-04 18:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:45:23] Production.INFO: ==20231== Releasing lock... [2025-02-04 18:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:45:23] Production.INFO: 55.25 MB #Memory Used# [2025-02-04 18:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:46:04 [end_date_ymd] => 2025-02-04 18:46:04 [RateCDR] => 1 ) [2025-02-04 18: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-02-04 15:46:04' and `end` < '2025-02-04 18: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-02-04 18:46:18] Production.INFO: count ==3606 [2025-02-04 18:46:19] Production.ERROR: pbx CDR StartTime 2025-02-04 15:46:04 - End Time 2025-02-04 18:46:04 [2025-02-04 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402283', 'tblTempUsageDetail_20' ) start [2025-02-04 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402283', 'tblTempUsageDetail_20' ) end [2025-02-04 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402283', 'tblTempVendorCDR_20' ) start [2025-02-04 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402283', 'tblTempVendorCDR_20' ) end [2025-02-04 18:46:19] Production.INFO: ProcessCDR(1,14402283,1,1,2) [2025-02-04 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402283', 'tblTempUsageDetail_20' ) start [2025-02-04 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402283', 'tblTempUsageDetail_20' ) end [2025-02-04 18:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:46:22] Production.INFO: ==20307== Releasing lock... [2025-02-04 18:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:46:22] Production.INFO: 55.75 MB #Memory Used# [2025-02-04 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:47:05 [end_date_ymd] => 2025-02-04 18:47:05 [RateCDR] => 1 ) [2025-02-04 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:47:05' and `end` < '2025-02-04 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:47:18] Production.INFO: count ==3601 [2025-02-04 18:47:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:47:05 - End Time 2025-02-04 18:47:05 [2025-02-04 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402288', 'tblTempUsageDetail_20' ) start [2025-02-04 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402288', 'tblTempUsageDetail_20' ) end [2025-02-04 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402288', 'tblTempVendorCDR_20' ) start [2025-02-04 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402288', 'tblTempVendorCDR_20' ) end [2025-02-04 18:47:20] Production.INFO: ProcessCDR(1,14402288,1,1,2) [2025-02-04 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402288', 'tblTempUsageDetail_20' ) start [2025-02-04 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402288', 'tblTempUsageDetail_20' ) end [2025-02-04 18:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:47:25] Production.INFO: ==20387== Releasing lock... [2025-02-04 18:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:47:25] Production.INFO: 55.25 MB #Memory Used# [2025-02-04 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:48:05 [end_date_ymd] => 2025-02-04 18:48:05 [RateCDR] => 1 ) [2025-02-04 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:48:05' and `end` < '2025-02-04 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:48:19] Production.INFO: count ==3591 [2025-02-04 18:48:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:48:05 - End Time 2025-02-04 18:48:05 [2025-02-04 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402293', 'tblTempUsageDetail_20' ) start [2025-02-04 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402293', 'tblTempUsageDetail_20' ) end [2025-02-04 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402293', 'tblTempVendorCDR_20' ) start [2025-02-04 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402293', 'tblTempVendorCDR_20' ) end [2025-02-04 18:48:20] Production.INFO: ProcessCDR(1,14402293,1,1,2) [2025-02-04 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402293', 'tblTempUsageDetail_20' ) start [2025-02-04 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402293', 'tblTempUsageDetail_20' ) end [2025-02-04 18:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:48:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:48:25] Production.INFO: ==20464== Releasing lock... [2025-02-04 18:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:48:25] Production.INFO: 55.25 MB #Memory Used# [2025-02-04 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:49:05 [end_date_ymd] => 2025-02-04 18:49:05 [RateCDR] => 1 ) [2025-02-04 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:49:05' and `end` < '2025-02-04 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:49:19] Production.INFO: count ==3578 [2025-02-04 18:49:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:49:05 - End Time 2025-02-04 18:49:05 [2025-02-04 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402298', 'tblTempUsageDetail_20' ) start [2025-02-04 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402298', 'tblTempUsageDetail_20' ) end [2025-02-04 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402298', 'tblTempVendorCDR_20' ) start [2025-02-04 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402298', 'tblTempVendorCDR_20' ) end [2025-02-04 18:49:20] Production.INFO: ProcessCDR(1,14402298,1,1,2) [2025-02-04 18:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402298', 'tblTempUsageDetail_20' ) start [2025-02-04 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402298', 'tblTempUsageDetail_20' ) end [2025-02-04 18:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:49:25] Production.INFO: ==20541== Releasing lock... [2025-02-04 18:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:49:25] Production.INFO: 55.5 MB #Memory Used# [2025-02-04 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:50:06 [end_date_ymd] => 2025-02-04 18:50:06 [RateCDR] => 1 ) [2025-02-04 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:50:06' and `end` < '2025-02-04 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:50:19] Production.INFO: count ==3559 [2025-02-04 18:50:21] Production.ERROR: pbx CDR StartTime 2025-02-04 15:50:06 - End Time 2025-02-04 18:50:06 [2025-02-04 18:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402304', 'tblTempUsageDetail_20' ) start [2025-02-04 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402304', 'tblTempUsageDetail_20' ) end [2025-02-04 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402304', 'tblTempVendorCDR_20' ) start [2025-02-04 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402304', 'tblTempVendorCDR_20' ) end [2025-02-04 18:50:21] Production.INFO: ProcessCDR(1,14402304,1,1,2) [2025-02-04 18:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402304', 'tblTempUsageDetail_20' ) start [2025-02-04 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402304', 'tblTempUsageDetail_20' ) end [2025-02-04 18:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:50:24] Production.INFO: ==20654== Releasing lock... [2025-02-04 18:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:50:24] Production.INFO: 55 MB #Memory Used# [2025-02-04 18:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:51:04 [end_date_ymd] => 2025-02-04 18:51:04 [RateCDR] => 1 ) [2025-02-04 18:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:51:04' and `end` < '2025-02-04 18:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:51:20] Production.INFO: count ==3535 [2025-02-04 18:51:21] Production.ERROR: pbx CDR StartTime 2025-02-04 15:51:04 - End Time 2025-02-04 18:51:04 [2025-02-04 18:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402309', 'tblTempUsageDetail_20' ) start [2025-02-04 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402309', 'tblTempUsageDetail_20' ) end [2025-02-04 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402309', 'tblTempVendorCDR_20' ) start [2025-02-04 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402309', 'tblTempVendorCDR_20' ) end [2025-02-04 18:51:21] Production.INFO: ProcessCDR(1,14402309,1,1,2) [2025-02-04 18:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402309', 'tblTempUsageDetail_20' ) start [2025-02-04 18:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402309', 'tblTempUsageDetail_20' ) end [2025-02-04 18:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:51:26] Production.INFO: ==20732== Releasing lock... [2025-02-04 18:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:51:26] Production.INFO: 54.5 MB #Memory Used# [2025-02-04 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:52:05 [end_date_ymd] => 2025-02-04 18:52:05 [RateCDR] => 1 ) [2025-02-04 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:52:05' and `end` < '2025-02-04 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:52:18] Production.INFO: count ==3530 [2025-02-04 18:52:19] Production.ERROR: pbx CDR StartTime 2025-02-04 15:52:05 - End Time 2025-02-04 18:52:05 [2025-02-04 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402314', 'tblTempUsageDetail_20' ) start [2025-02-04 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402314', 'tblTempUsageDetail_20' ) end [2025-02-04 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402314', 'tblTempVendorCDR_20' ) start [2025-02-04 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402314', 'tblTempVendorCDR_20' ) end [2025-02-04 18:52:19] Production.INFO: ProcessCDR(1,14402314,1,1,2) [2025-02-04 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402314', 'tblTempUsageDetail_20' ) start [2025-02-04 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402314', 'tblTempUsageDetail_20' ) end [2025-02-04 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:52:24] Production.INFO: ==20808== Releasing lock... [2025-02-04 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:52:24] Production.INFO: 55 MB #Memory Used# [2025-02-04 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:53:05 [end_date_ymd] => 2025-02-04 18:53:05 [RateCDR] => 1 ) [2025-02-04 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:53:05' and `end` < '2025-02-04 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:53:20] Production.INFO: count ==3520 [2025-02-04 18:53:21] Production.ERROR: pbx CDR StartTime 2025-02-04 15:53:05 - End Time 2025-02-04 18:53:05 [2025-02-04 18:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402319', 'tblTempUsageDetail_20' ) start [2025-02-04 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402319', 'tblTempUsageDetail_20' ) end [2025-02-04 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402319', 'tblTempVendorCDR_20' ) start [2025-02-04 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402319', 'tblTempVendorCDR_20' ) end [2025-02-04 18:53:21] Production.INFO: ProcessCDR(1,14402319,1,1,2) [2025-02-04 18:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402319', 'tblTempUsageDetail_20' ) start [2025-02-04 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402319', 'tblTempUsageDetail_20' ) end [2025-02-04 18:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:53:25] Production.INFO: ==20884== Releasing lock... [2025-02-04 18:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:53:25] Production.INFO: 54.5 MB #Memory Used# [2025-02-04 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:54:05 [end_date_ymd] => 2025-02-04 18:54:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 15:54:05' and `end` < '2025-02-04 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-02-04 18:54:19] Production.INFO: count ==3516 [2025-02-04 18:54:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:54:05 - End Time 2025-02-04 18:54:05 [2025-02-04 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402324', 'tblTempUsageDetail_20' ) start [2025-02-04 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402324', 'tblTempUsageDetail_20' ) end [2025-02-04 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402324', 'tblTempVendorCDR_20' ) start [2025-02-04 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402324', 'tblTempVendorCDR_20' ) end [2025-02-04 18:54:20] Production.INFO: ProcessCDR(1,14402324,1,1,2) [2025-02-04 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402324', 'tblTempUsageDetail_20' ) start [2025-02-04 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402324', 'tblTempUsageDetail_20' ) end [2025-02-04 18:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:54:24] Production.INFO: ==20959== Releasing lock... [2025-02-04 18:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:54:24] Production.INFO: 55.25 MB #Memory Used# [2025-02-04 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:55:05 [end_date_ymd] => 2025-02-04 18:55:05 [RateCDR] => 1 ) [2025-02-04 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:55:05' and `end` < '2025-02-04 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:55:22] Production.INFO: count ==3509 [2025-02-04 18:55:23] Production.ERROR: pbx CDR StartTime 2025-02-04 15:55:05 - End Time 2025-02-04 18:55:05 [2025-02-04 18:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402329', 'tblTempUsageDetail_20' ) start [2025-02-04 18:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402329', 'tblTempUsageDetail_20' ) end [2025-02-04 18:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402329', 'tblTempVendorCDR_20' ) start [2025-02-04 18:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402329', 'tblTempVendorCDR_20' ) end [2025-02-04 18:55:23] Production.INFO: ProcessCDR(1,14402329,1,1,2) [2025-02-04 18:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402329', 'tblTempUsageDetail_20' ) start [2025-02-04 18:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402329', 'tblTempUsageDetail_20' ) end [2025-02-04 18:55:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:55:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:55:28] Production.INFO: ==21055== Releasing lock... [2025-02-04 18:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:55:28] Production.INFO: 54.25 MB #Memory Used# [2025-02-04 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:56:05 [end_date_ymd] => 2025-02-04 18:56:05 [RateCDR] => 1 ) [2025-02-04 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:56:05' and `end` < '2025-02-04 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:56:19] Production.INFO: count ==3499 [2025-02-04 18:56:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:56:05 - End Time 2025-02-04 18:56:05 [2025-02-04 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402334', 'tblTempUsageDetail_20' ) start [2025-02-04 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402334', 'tblTempUsageDetail_20' ) end [2025-02-04 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402334', 'tblTempVendorCDR_20' ) start [2025-02-04 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402334', 'tblTempVendorCDR_20' ) end [2025-02-04 18:56:21] Production.INFO: ProcessCDR(1,14402334,1,1,2) [2025-02-04 18:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402334', 'tblTempUsageDetail_20' ) start [2025-02-04 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402334', 'tblTempUsageDetail_20' ) end [2025-02-04 18:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:56:25] Production.INFO: ==21130== Releasing lock... [2025-02-04 18:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:56:25] Production.INFO: 54.75 MB #Memory Used# [2025-02-04 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:57:05 [end_date_ymd] => 2025-02-04 18:57:05 [RateCDR] => 1 ) [2025-02-04 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:57:05' and `end` < '2025-02-04 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:57:18] Production.INFO: count ==3497 [2025-02-04 18:57:19] Production.ERROR: pbx CDR StartTime 2025-02-04 15:57:05 - End Time 2025-02-04 18:57:05 [2025-02-04 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402339', 'tblTempUsageDetail_20' ) start [2025-02-04 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402339', 'tblTempUsageDetail_20' ) end [2025-02-04 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402339', 'tblTempVendorCDR_20' ) start [2025-02-04 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402339', 'tblTempVendorCDR_20' ) end [2025-02-04 18:57:20] Production.INFO: ProcessCDR(1,14402339,1,1,2) [2025-02-04 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402339', 'tblTempUsageDetail_20' ) start [2025-02-04 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402339', 'tblTempUsageDetail_20' ) end [2025-02-04 18:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:57:24] Production.INFO: ==21211== Releasing lock... [2025-02-04 18:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:57:24] Production.INFO: 54.75 MB #Memory Used# [2025-02-04 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:58:05 [end_date_ymd] => 2025-02-04 18:58:05 [RateCDR] => 1 ) [2025-02-04 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:58:05' and `end` < '2025-02-04 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:58:18] Production.INFO: count ==3477 [2025-02-04 18:58:19] Production.ERROR: pbx CDR StartTime 2025-02-04 15:58:05 - End Time 2025-02-04 18:58:05 [2025-02-04 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402344', 'tblTempUsageDetail_20' ) start [2025-02-04 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402344', 'tblTempUsageDetail_20' ) end [2025-02-04 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402344', 'tblTempVendorCDR_20' ) start [2025-02-04 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402344', 'tblTempVendorCDR_20' ) end [2025-02-04 18:58:19] Production.INFO: ProcessCDR(1,14402344,1,1,2) [2025-02-04 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402344', 'tblTempUsageDetail_20' ) start [2025-02-04 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402344', 'tblTempUsageDetail_20' ) end [2025-02-04 18:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:58:24] Production.INFO: ==21282== Releasing lock... [2025-02-04 18:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:58:24] Production.INFO: 54.25 MB #Memory Used# [2025-02-04 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 15:59:05 [end_date_ymd] => 2025-02-04 18:59:05 [RateCDR] => 1 ) [2025-02-04 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 15:59:05' and `end` < '2025-02-04 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 18:59:19] Production.INFO: count ==3473 [2025-02-04 18:59:20] Production.ERROR: pbx CDR StartTime 2025-02-04 15:59:05 - End Time 2025-02-04 18:59:05 [2025-02-04 18:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402349', 'tblTempUsageDetail_20' ) start [2025-02-04 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402349', 'tblTempUsageDetail_20' ) end [2025-02-04 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402349', 'tblTempVendorCDR_20' ) start [2025-02-04 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402349', 'tblTempVendorCDR_20' ) end [2025-02-04 18:59:20] Production.INFO: ProcessCDR(1,14402349,1,1,2) [2025-02-04 18:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 18:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402349', 'tblTempUsageDetail_20' ) start [2025-02-04 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402349', 'tblTempUsageDetail_20' ) end [2025-02-04 18:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 18:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 18:59:25] Production.INFO: ==21366== Releasing lock... [2025-02-04 18:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 18:59:25] Production.INFO: 54.75 MB #Memory Used# [2025-02-04 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:00:06 [end_date_ymd] => 2025-02-04 19:00:06 [RateCDR] => 1 ) [2025-02-04 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:00:06' and `end` < '2025-02-04 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:00:20] Production.INFO: count ==3463 [2025-02-04 19:00:21] Production.ERROR: pbx CDR StartTime 2025-02-04 16:00:06 - End Time 2025-02-04 19:00:06 [2025-02-04 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402354', 'tblTempUsageDetail_20' ) start [2025-02-04 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402354', 'tblTempUsageDetail_20' ) end [2025-02-04 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402354', 'tblTempVendorCDR_20' ) start [2025-02-04 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402354', 'tblTempVendorCDR_20' ) end [2025-02-04 19:00:21] Production.INFO: ProcessCDR(1,14402354,1,1,2) [2025-02-04 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402354', 'tblTempUsageDetail_20' ) start [2025-02-04 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402354', 'tblTempUsageDetail_20' ) end [2025-02-04 19:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:00:24] Production.INFO: ==21442== Releasing lock... [2025-02-04 19:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:00:24] Production.INFO: 54.5 MB #Memory Used# [2025-02-04 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:01:05 [end_date_ymd] => 2025-02-04 19:01:05 [RateCDR] => 1 ) [2025-02-04 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:01:05' and `end` < '2025-02-04 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:01:19] Production.INFO: count ==3419 [2025-02-04 19:01:20] Production.ERROR: pbx CDR StartTime 2025-02-04 16:01:05 - End Time 2025-02-04 19:01:05 [2025-02-04 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402360', 'tblTempUsageDetail_20' ) start [2025-02-04 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402360', 'tblTempUsageDetail_20' ) end [2025-02-04 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402360', 'tblTempVendorCDR_20' ) start [2025-02-04 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402360', 'tblTempVendorCDR_20' ) end [2025-02-04 19:01:20] Production.INFO: ProcessCDR(1,14402360,1,1,2) [2025-02-04 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402360', 'tblTempUsageDetail_20' ) start [2025-02-04 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402360', 'tblTempUsageDetail_20' ) end [2025-02-04 19:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:01:24] Production.INFO: ==21609== Releasing lock... [2025-02-04 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:01:24] Production.INFO: 53.5 MB #Memory Used# [2025-02-04 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:02:05 [end_date_ymd] => 2025-02-04 19:02:05 [RateCDR] => 1 ) [2025-02-04 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:02:05' and `end` < '2025-02-04 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:02:19] Production.INFO: count ==3415 [2025-02-04 19:02:20] Production.ERROR: pbx CDR StartTime 2025-02-04 16:02:05 - End Time 2025-02-04 19:02:05 [2025-02-04 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402365', 'tblTempUsageDetail_20' ) start [2025-02-04 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402365', 'tblTempUsageDetail_20' ) end [2025-02-04 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402365', 'tblTempVendorCDR_20' ) start [2025-02-04 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402365', 'tblTempVendorCDR_20' ) end [2025-02-04 19:02:20] Production.INFO: ProcessCDR(1,14402365,1,1,2) [2025-02-04 19:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402365', 'tblTempUsageDetail_20' ) start [2025-02-04 19:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402365', 'tblTempUsageDetail_20' ) end [2025-02-04 19:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:02:25] Production.INFO: ==21685== Releasing lock... [2025-02-04 19:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:02:25] Production.INFO: 54 MB #Memory Used# [2025-02-04 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:03:05 [end_date_ymd] => 2025-02-04 19:03:05 [RateCDR] => 1 ) [2025-02-04 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:03:05' and `end` < '2025-02-04 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:03:18] Production.INFO: count ==3406 [2025-02-04 19:03:20] Production.ERROR: pbx CDR StartTime 2025-02-04 16:03:05 - End Time 2025-02-04 19:03:05 [2025-02-04 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402370', 'tblTempUsageDetail_20' ) start [2025-02-04 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402370', 'tblTempUsageDetail_20' ) end [2025-02-04 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402370', 'tblTempVendorCDR_20' ) start [2025-02-04 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402370', 'tblTempVendorCDR_20' ) end [2025-02-04 19:03:20] Production.INFO: ProcessCDR(1,14402370,1,1,2) [2025-02-04 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402370', 'tblTempUsageDetail_20' ) start [2025-02-04 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402370', 'tblTempUsageDetail_20' ) end [2025-02-04 19:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:03:25] Production.INFO: ==21759== Releasing lock... [2025-02-04 19:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:03:25] Production.INFO: 54 MB #Memory Used# [2025-02-04 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:04:06 [end_date_ymd] => 2025-02-04 19:04:06 [RateCDR] => 1 ) [2025-02-04 19:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:04:06' and `end` < '2025-02-04 19:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:04:19] Production.INFO: count ==3400 [2025-02-04 19:04:20] Production.ERROR: pbx CDR StartTime 2025-02-04 16:04:06 - End Time 2025-02-04 19:04:06 [2025-02-04 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402375', 'tblTempUsageDetail_20' ) start [2025-02-04 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402375', 'tblTempUsageDetail_20' ) end [2025-02-04 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402375', 'tblTempVendorCDR_20' ) start [2025-02-04 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402375', 'tblTempVendorCDR_20' ) end [2025-02-04 19:04:20] Production.INFO: ProcessCDR(1,14402375,1,1,2) [2025-02-04 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402375', 'tblTempUsageDetail_20' ) start [2025-02-04 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402375', 'tblTempUsageDetail_20' ) end [2025-02-04 19:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:04:25] Production.INFO: ==21836== Releasing lock... [2025-02-04 19:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:04:25] Production.INFO: 53.25 MB #Memory Used# [2025-02-04 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:05:05 [end_date_ymd] => 2025-02-04 19:05:05 [RateCDR] => 1 ) [2025-02-04 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:05:05' and `end` < '2025-02-04 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:05:18] Production.INFO: count ==3382 [2025-02-04 19:05:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:05:05 - End Time 2025-02-04 19:05:05 [2025-02-04 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402380', 'tblTempUsageDetail_20' ) start [2025-02-04 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402380', 'tblTempUsageDetail_20' ) end [2025-02-04 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402380', 'tblTempVendorCDR_20' ) start [2025-02-04 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402380', 'tblTempVendorCDR_20' ) end [2025-02-04 19:05:19] Production.INFO: ProcessCDR(1,14402380,1,1,2) [2025-02-04 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402380', 'tblTempUsageDetail_20' ) start [2025-02-04 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402380', 'tblTempUsageDetail_20' ) end [2025-02-04 19:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:05:24] Production.INFO: ==22027== Releasing lock... [2025-02-04 19:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:05:24] Production.INFO: 53.5 MB #Memory Used# [2025-02-04 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:06:05 [end_date_ymd] => 2025-02-04 19:06:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 16:06:05' and `end` < '2025-02-04 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-02-04 19:06:19] Production.INFO: count ==3365 [2025-02-04 19:06:20] Production.ERROR: pbx CDR StartTime 2025-02-04 16:06:05 - End Time 2025-02-04 19:06:05 [2025-02-04 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402385', 'tblTempUsageDetail_20' ) start [2025-02-04 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402385', 'tblTempUsageDetail_20' ) end [2025-02-04 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402385', 'tblTempVendorCDR_20' ) start [2025-02-04 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402385', 'tblTempVendorCDR_20' ) end [2025-02-04 19:06:20] Production.INFO: ProcessCDR(1,14402385,1,1,2) [2025-02-04 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402385', 'tblTempUsageDetail_20' ) start [2025-02-04 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402385', 'tblTempUsageDetail_20' ) end [2025-02-04 19:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:06:23] Production.INFO: ==22100== Releasing lock... [2025-02-04 19:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:06:23] Production.INFO: 53.5 MB #Memory Used# [2025-02-04 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:07:05 [end_date_ymd] => 2025-02-04 19:07:05 [RateCDR] => 1 ) [2025-02-04 19:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:07:05' and `end` < '2025-02-04 19:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:07:19] Production.INFO: count ==3361 [2025-02-04 19:07:20] Production.ERROR: pbx CDR StartTime 2025-02-04 16:07:05 - End Time 2025-02-04 19:07:05 [2025-02-04 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402390', 'tblTempUsageDetail_20' ) start [2025-02-04 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402390', 'tblTempUsageDetail_20' ) end [2025-02-04 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402390', 'tblTempVendorCDR_20' ) start [2025-02-04 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402390', 'tblTempVendorCDR_20' ) end [2025-02-04 19:07:20] Production.INFO: ProcessCDR(1,14402390,1,1,2) [2025-02-04 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402390', 'tblTempUsageDetail_20' ) start [2025-02-04 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402390', 'tblTempUsageDetail_20' ) end [2025-02-04 19:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:07:24] Production.INFO: ==22176== Releasing lock... [2025-02-04 19:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:07:24] Production.INFO: 53.25 MB #Memory Used# [2025-02-04 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:08:05 [end_date_ymd] => 2025-02-04 19:08:05 [RateCDR] => 1 ) [2025-02-04 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:08:05' and `end` < '2025-02-04 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:08:19] Production.INFO: count ==3355 [2025-02-04 19:08:20] Production.ERROR: pbx CDR StartTime 2025-02-04 16:08:05 - End Time 2025-02-04 19:08:05 [2025-02-04 19:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402395', 'tblTempUsageDetail_20' ) start [2025-02-04 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402395', 'tblTempUsageDetail_20' ) end [2025-02-04 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402395', 'tblTempVendorCDR_20' ) start [2025-02-04 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402395', 'tblTempVendorCDR_20' ) end [2025-02-04 19:08:20] Production.INFO: ProcessCDR(1,14402395,1,1,2) [2025-02-04 19:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402395', 'tblTempUsageDetail_20' ) start [2025-02-04 19:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402395', 'tblTempUsageDetail_20' ) end [2025-02-04 19:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:08:26] Production.INFO: ==22328== Releasing lock... [2025-02-04 19:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:08:26] Production.INFO: 53 MB #Memory Used# [2025-02-04 19:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:09:06 [end_date_ymd] => 2025-02-04 19:09:06 [RateCDR] => 1 ) [2025-02-04 19:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:09:06' and `end` < '2025-02-04 19:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:09:19] Production.INFO: count ==3344 [2025-02-04 19:09:21] Production.ERROR: pbx CDR StartTime 2025-02-04 16:09:06 - End Time 2025-02-04 19:09:06 [2025-02-04 19:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402400', 'tblTempUsageDetail_20' ) start [2025-02-04 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402400', 'tblTempUsageDetail_20' ) end [2025-02-04 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402400', 'tblTempVendorCDR_20' ) start [2025-02-04 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402400', 'tblTempVendorCDR_20' ) end [2025-02-04 19:09:21] Production.INFO: ProcessCDR(1,14402400,1,1,2) [2025-02-04 19:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402400', 'tblTempUsageDetail_20' ) start [2025-02-04 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402400', 'tblTempUsageDetail_20' ) end [2025-02-04 19:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:09:24] Production.INFO: ==22404== Releasing lock... [2025-02-04 19:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:09:24] Production.INFO: 53 MB #Memory Used# [2025-02-04 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:10:06 [end_date_ymd] => 2025-02-04 19:10:06 [RateCDR] => 1 ) [2025-02-04 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:10:06' and `end` < '2025-02-04 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:10:19] Production.INFO: count ==3338 [2025-02-04 19:10:20] Production.ERROR: pbx CDR StartTime 2025-02-04 16:10:06 - End Time 2025-02-04 19:10:06 [2025-02-04 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402406', 'tblTempUsageDetail_20' ) start [2025-02-04 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402406', 'tblTempUsageDetail_20' ) end [2025-02-04 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402406', 'tblTempVendorCDR_20' ) start [2025-02-04 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402406', 'tblTempVendorCDR_20' ) end [2025-02-04 19:10:20] Production.INFO: ProcessCDR(1,14402406,1,1,2) [2025-02-04 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402406', 'tblTempUsageDetail_20' ) start [2025-02-04 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402406', 'tblTempUsageDetail_20' ) end [2025-02-04 19:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:10:23] Production.INFO: ==22482== Releasing lock... [2025-02-04 19:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:10:23] Production.INFO: 53 MB #Memory Used# [2025-02-04 19:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:11:04 [end_date_ymd] => 2025-02-04 19:11:04 [RateCDR] => 1 ) [2025-02-04 19: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-02-04 16:11:04' and `end` < '2025-02-04 19: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-02-04 19:11:18] Production.INFO: count ==3274 [2025-02-04 19:11:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:11:04 - End Time 2025-02-04 19:11:04 [2025-02-04 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402411', 'tblTempUsageDetail_20' ) start [2025-02-04 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402411', 'tblTempUsageDetail_20' ) end [2025-02-04 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402411', 'tblTempVendorCDR_20' ) start [2025-02-04 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402411', 'tblTempVendorCDR_20' ) end [2025-02-04 19:11:19] Production.INFO: ProcessCDR(1,14402411,1,1,2) [2025-02-04 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402411', 'tblTempUsageDetail_20' ) start [2025-02-04 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402411', 'tblTempUsageDetail_20' ) end [2025-02-04 19:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:11:22] Production.INFO: ==22565== Releasing lock... [2025-02-04 19:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:11:22] Production.INFO: 52.5 MB #Memory Used# [2025-02-04 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:12:05 [end_date_ymd] => 2025-02-04 19:12:05 [RateCDR] => 1 ) [2025-02-04 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:12:05' and `end` < '2025-02-04 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:12:19] Production.INFO: count ==3253 [2025-02-04 19:12:20] Production.ERROR: pbx CDR StartTime 2025-02-04 16:12:05 - End Time 2025-02-04 19:12:05 [2025-02-04 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402416', 'tblTempUsageDetail_20' ) start [2025-02-04 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402416', 'tblTempUsageDetail_20' ) end [2025-02-04 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402416', 'tblTempVendorCDR_20' ) start [2025-02-04 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402416', 'tblTempVendorCDR_20' ) end [2025-02-04 19:12:20] Production.INFO: ProcessCDR(1,14402416,1,1,2) [2025-02-04 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402416', 'tblTempUsageDetail_20' ) start [2025-02-04 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402416', 'tblTempUsageDetail_20' ) end [2025-02-04 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:12:24] Production.INFO: ==22721== Releasing lock... [2025-02-04 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:12:24] Production.INFO: 52.25 MB #Memory Used# [2025-02-04 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:13:05 [end_date_ymd] => 2025-02-04 19:13:05 [RateCDR] => 1 ) [2025-02-04 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:13:05' and `end` < '2025-02-04 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:13:18] Production.INFO: count ==3241 [2025-02-04 19:13:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:13:05 - End Time 2025-02-04 19:13:05 [2025-02-04 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402421', 'tblTempUsageDetail_20' ) start [2025-02-04 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402421', 'tblTempUsageDetail_20' ) end [2025-02-04 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402421', 'tblTempVendorCDR_20' ) start [2025-02-04 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402421', 'tblTempVendorCDR_20' ) end [2025-02-04 19:13:19] Production.INFO: ProcessCDR(1,14402421,1,1,2) [2025-02-04 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402421', 'tblTempUsageDetail_20' ) start [2025-02-04 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402421', 'tblTempUsageDetail_20' ) end [2025-02-04 19:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:13:24] Production.INFO: ==22795== Releasing lock... [2025-02-04 19:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:13:24] Production.INFO: 52.25 MB #Memory Used# [2025-02-04 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:14:05 [end_date_ymd] => 2025-02-04 19:14:05 [RateCDR] => 1 ) [2025-02-04 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:14:05' and `end` < '2025-02-04 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:14:18] Production.INFO: count ==3231 [2025-02-04 19:14:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:14:05 - End Time 2025-02-04 19:14:05 [2025-02-04 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402426', 'tblTempUsageDetail_20' ) start [2025-02-04 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402426', 'tblTempUsageDetail_20' ) end [2025-02-04 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402426', 'tblTempVendorCDR_20' ) start [2025-02-04 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402426', 'tblTempVendorCDR_20' ) end [2025-02-04 19:14:19] Production.INFO: ProcessCDR(1,14402426,1,1,2) [2025-02-04 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402426', 'tblTempUsageDetail_20' ) start [2025-02-04 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402426', 'tblTempUsageDetail_20' ) end [2025-02-04 19:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:14:22] Production.INFO: ==22873== Releasing lock... [2025-02-04 19:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:14:22] Production.INFO: 52.25 MB #Memory Used# [2025-02-04 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:15:05 [end_date_ymd] => 2025-02-04 19:15:05 [RateCDR] => 1 ) [2025-02-04 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:15:05' and `end` < '2025-02-04 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:15:18] Production.INFO: count ==3189 [2025-02-04 19:15:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:15:05 - End Time 2025-02-04 19:15:05 [2025-02-04 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402431', 'tblTempUsageDetail_20' ) start [2025-02-04 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402431', 'tblTempUsageDetail_20' ) end [2025-02-04 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402431', 'tblTempVendorCDR_20' ) start [2025-02-04 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402431', 'tblTempVendorCDR_20' ) end [2025-02-04 19:15:19] Production.INFO: ProcessCDR(1,14402431,1,1,2) [2025-02-04 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402431', 'tblTempUsageDetail_20' ) start [2025-02-04 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402431', 'tblTempUsageDetail_20' ) end [2025-02-04 19:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:15:22] Production.INFO: ==23027== Releasing lock... [2025-02-04 19:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:15:22] Production.INFO: 52 MB #Memory Used# [2025-02-04 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:16:05 [end_date_ymd] => 2025-02-04 19:16:05 [RateCDR] => 1 ) [2025-02-04 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:16:05' and `end` < '2025-02-04 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:16:19] Production.INFO: count ==3140 [2025-02-04 19:16:20] Production.ERROR: pbx CDR StartTime 2025-02-04 16:16:05 - End Time 2025-02-04 19:16:05 [2025-02-04 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402436', 'tblTempUsageDetail_20' ) start [2025-02-04 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402436', 'tblTempUsageDetail_20' ) end [2025-02-04 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402436', 'tblTempVendorCDR_20' ) start [2025-02-04 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402436', 'tblTempVendorCDR_20' ) end [2025-02-04 19:16:20] Production.INFO: ProcessCDR(1,14402436,1,1,2) [2025-02-04 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402436', 'tblTempUsageDetail_20' ) start [2025-02-04 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402436', 'tblTempUsageDetail_20' ) end [2025-02-04 19:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:16:23] Production.INFO: ==23105== Releasing lock... [2025-02-04 19:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:16:23] Production.INFO: 51.5 MB #Memory Used# [2025-02-04 19:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:17:06 [end_date_ymd] => 2025-02-04 19:17:06 [RateCDR] => 1 ) [2025-02-04 19:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:17:06' and `end` < '2025-02-04 19:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:17:19] Production.INFO: count ==3102 [2025-02-04 19:17:20] Production.ERROR: pbx CDR StartTime 2025-02-04 16:17:06 - End Time 2025-02-04 19:17:06 [2025-02-04 19:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402441', 'tblTempUsageDetail_20' ) start [2025-02-04 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402441', 'tblTempUsageDetail_20' ) end [2025-02-04 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402441', 'tblTempVendorCDR_20' ) start [2025-02-04 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402441', 'tblTempVendorCDR_20' ) end [2025-02-04 19:17:20] Production.INFO: ProcessCDR(1,14402441,1,1,2) [2025-02-04 19:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402441', 'tblTempUsageDetail_20' ) start [2025-02-04 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402441', 'tblTempUsageDetail_20' ) end [2025-02-04 19:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:17:23] Production.INFO: ==23184== Releasing lock... [2025-02-04 19:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:17:23] Production.INFO: 51.25 MB #Memory Used# [2025-02-04 19:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:18:06 [end_date_ymd] => 2025-02-04 19:18:06 [RateCDR] => 1 ) [2025-02-04 19:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:18:06' and `end` < '2025-02-04 19:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:18:20] Production.INFO: count ==3082 [2025-02-04 19:18:21] Production.ERROR: pbx CDR StartTime 2025-02-04 16:18:06 - End Time 2025-02-04 19:18:06 [2025-02-04 19:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402446', 'tblTempUsageDetail_20' ) start [2025-02-04 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402446', 'tblTempUsageDetail_20' ) end [2025-02-04 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402446', 'tblTempVendorCDR_20' ) start [2025-02-04 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402446', 'tblTempVendorCDR_20' ) end [2025-02-04 19:18:21] Production.INFO: ProcessCDR(1,14402446,1,1,2) [2025-02-04 19:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402446', 'tblTempUsageDetail_20' ) start [2025-02-04 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402446', 'tblTempUsageDetail_20' ) end [2025-02-04 19:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:18:24] Production.INFO: ==23263== Releasing lock... [2025-02-04 19:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:18:24] Production.INFO: 51 MB #Memory Used# [2025-02-04 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:19:05 [end_date_ymd] => 2025-02-04 19:19:05 [RateCDR] => 1 ) [2025-02-04 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:19:05' and `end` < '2025-02-04 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:19:18] Production.INFO: count ==3055 [2025-02-04 19:19:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:19:05 - End Time 2025-02-04 19:19:05 [2025-02-04 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402451', 'tblTempUsageDetail_20' ) start [2025-02-04 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402451', 'tblTempUsageDetail_20' ) end [2025-02-04 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402451', 'tblTempVendorCDR_20' ) start [2025-02-04 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402451', 'tblTempVendorCDR_20' ) end [2025-02-04 19:19:19] Production.INFO: ProcessCDR(1,14402451,1,1,2) [2025-02-04 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402451', 'tblTempUsageDetail_20' ) start [2025-02-04 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402451', 'tblTempUsageDetail_20' ) end [2025-02-04 19:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:19:22] Production.INFO: ==23340== Releasing lock... [2025-02-04 19:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:19:22] Production.INFO: 50.75 MB #Memory Used# [2025-02-04 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:20:06 [end_date_ymd] => 2025-02-04 19:20:06 [RateCDR] => 1 ) [2025-02-04 19:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:20:06' and `end` < '2025-02-04 19:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:20:19] Production.INFO: count ==3034 [2025-02-04 19:20:20] Production.ERROR: pbx CDR StartTime 2025-02-04 16:20:06 - End Time 2025-02-04 19:20:06 [2025-02-04 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402457', 'tblTempUsageDetail_20' ) start [2025-02-04 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402457', 'tblTempUsageDetail_20' ) end [2025-02-04 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402457', 'tblTempVendorCDR_20' ) start [2025-02-04 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402457', 'tblTempVendorCDR_20' ) end [2025-02-04 19:20:21] Production.INFO: ProcessCDR(1,14402457,1,1,2) [2025-02-04 19:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402457', 'tblTempUsageDetail_20' ) start [2025-02-04 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402457', 'tblTempUsageDetail_20' ) end [2025-02-04 19:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:20:25] Production.INFO: ==23420== Releasing lock... [2025-02-04 19:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:20:25] Production.INFO: 51.25 MB #Memory Used# [2025-02-04 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:21:05 [end_date_ymd] => 2025-02-04 19:21:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 16:21:05' and `end` < '2025-02-04 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-02-04 19:21:19] Production.INFO: count ==2950 [2025-02-04 19:21:20] Production.ERROR: pbx CDR StartTime 2025-02-04 16:21:05 - End Time 2025-02-04 19:21:05 [2025-02-04 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402462', 'tblTempUsageDetail_20' ) start [2025-02-04 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402462', 'tblTempUsageDetail_20' ) end [2025-02-04 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402462', 'tblTempVendorCDR_20' ) start [2025-02-04 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402462', 'tblTempVendorCDR_20' ) end [2025-02-04 19:21:20] Production.INFO: ProcessCDR(1,14402462,1,1,2) [2025-02-04 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402462', 'tblTempUsageDetail_20' ) start [2025-02-04 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402462', 'tblTempUsageDetail_20' ) end [2025-02-04 19:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:21:24] Production.INFO: ==23540== Releasing lock... [2025-02-04 19:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:21:24] Production.INFO: 49.75 MB #Memory Used# [2025-02-04 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:22:05 [end_date_ymd] => 2025-02-04 19:22:05 [RateCDR] => 1 ) [2025-02-04 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:22:05' and `end` < '2025-02-04 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:22:18] Production.INFO: count ==2929 [2025-02-04 19:22:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:22:05 - End Time 2025-02-04 19:22:05 [2025-02-04 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402467', 'tblTempUsageDetail_20' ) start [2025-02-04 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402467', 'tblTempUsageDetail_20' ) end [2025-02-04 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402467', 'tblTempVendorCDR_20' ) start [2025-02-04 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402467', 'tblTempVendorCDR_20' ) end [2025-02-04 19:22:19] Production.INFO: ProcessCDR(1,14402467,1,1,2) [2025-02-04 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402467', 'tblTempUsageDetail_20' ) start [2025-02-04 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402467', 'tblTempUsageDetail_20' ) end [2025-02-04 19:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:22:22] Production.INFO: ==23619== Releasing lock... [2025-02-04 19:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:22:22] Production.INFO: 49.75 MB #Memory Used# [2025-02-04 19:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:23:04 [end_date_ymd] => 2025-02-04 19:23:04 [RateCDR] => 1 ) [2025-02-04 19:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:23:04' and `end` < '2025-02-04 19:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:23:18] Production.INFO: count ==2896 [2025-02-04 19:23:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:23:04 - End Time 2025-02-04 19:23:04 [2025-02-04 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402472', 'tblTempUsageDetail_20' ) start [2025-02-04 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402472', 'tblTempUsageDetail_20' ) end [2025-02-04 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402472', 'tblTempVendorCDR_20' ) start [2025-02-04 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402472', 'tblTempVendorCDR_20' ) end [2025-02-04 19:23:19] Production.INFO: ProcessCDR(1,14402472,1,1,2) [2025-02-04 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402472', 'tblTempUsageDetail_20' ) start [2025-02-04 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402472', 'tblTempUsageDetail_20' ) end [2025-02-04 19:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:23:23] Production.INFO: ==23694== Releasing lock... [2025-02-04 19:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:23:23] Production.INFO: 49.5 MB #Memory Used# [2025-02-04 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:24:05 [end_date_ymd] => 2025-02-04 19:24:05 [RateCDR] => 1 ) [2025-02-04 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:24:05' and `end` < '2025-02-04 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:24:18] Production.INFO: count ==2877 [2025-02-04 19:24:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:24:05 - End Time 2025-02-04 19:24:05 [2025-02-04 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402477', 'tblTempUsageDetail_20' ) start [2025-02-04 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402477', 'tblTempUsageDetail_20' ) end [2025-02-04 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402477', 'tblTempVendorCDR_20' ) start [2025-02-04 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402477', 'tblTempVendorCDR_20' ) end [2025-02-04 19:24:19] Production.INFO: ProcessCDR(1,14402477,1,1,2) [2025-02-04 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402477', 'tblTempUsageDetail_20' ) start [2025-02-04 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402477', 'tblTempUsageDetail_20' ) end [2025-02-04 19:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:24:22] Production.INFO: ==23779== Releasing lock... [2025-02-04 19:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:24:22] Production.INFO: 49.5 MB #Memory Used# [2025-02-04 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:25:05 [end_date_ymd] => 2025-02-04 19:25:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 16:25:05' and `end` < '2025-02-04 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-02-04 19:25:19] Production.INFO: count ==2850 [2025-02-04 19:25:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:25:05 - End Time 2025-02-04 19:25:05 [2025-02-04 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402482', 'tblTempUsageDetail_20' ) start [2025-02-04 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402482', 'tblTempUsageDetail_20' ) end [2025-02-04 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402482', 'tblTempVendorCDR_20' ) start [2025-02-04 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402482', 'tblTempVendorCDR_20' ) end [2025-02-04 19:25:19] Production.INFO: ProcessCDR(1,14402482,1,1,2) [2025-02-04 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402482', 'tblTempUsageDetail_20' ) start [2025-02-04 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402482', 'tblTempUsageDetail_20' ) end [2025-02-04 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:25:24] Production.INFO: ==23853== Releasing lock... [2025-02-04 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:25:24] Production.INFO: 49.25 MB #Memory Used# [2025-02-04 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:26:05 [end_date_ymd] => 2025-02-04 19:26:05 [RateCDR] => 1 ) [2025-02-04 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:26:05' and `end` < '2025-02-04 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:26:18] Production.INFO: count ==2847 [2025-02-04 19:26:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:26:05 - End Time 2025-02-04 19:26:05 [2025-02-04 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402487', 'tblTempUsageDetail_20' ) start [2025-02-04 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402487', 'tblTempUsageDetail_20' ) end [2025-02-04 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402487', 'tblTempVendorCDR_20' ) start [2025-02-04 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402487', 'tblTempVendorCDR_20' ) end [2025-02-04 19:26:19] Production.INFO: ProcessCDR(1,14402487,1,1,2) [2025-02-04 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402487', 'tblTempUsageDetail_20' ) start [2025-02-04 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402487', 'tblTempUsageDetail_20' ) end [2025-02-04 19:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:26:22] Production.INFO: ==23940== Releasing lock... [2025-02-04 19:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:26:22] Production.INFO: 49.25 MB #Memory Used# [2025-02-04 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:27:05 [end_date_ymd] => 2025-02-04 19:27:05 [RateCDR] => 1 ) [2025-02-04 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:27:05' and `end` < '2025-02-04 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:27:19] Production.INFO: count ==2818 [2025-02-04 19:27:20] Production.ERROR: pbx CDR StartTime 2025-02-04 16:27:05 - End Time 2025-02-04 19:27:05 [2025-02-04 19:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402492', 'tblTempUsageDetail_20' ) start [2025-02-04 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402492', 'tblTempUsageDetail_20' ) end [2025-02-04 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402492', 'tblTempVendorCDR_20' ) start [2025-02-04 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402492', 'tblTempVendorCDR_20' ) end [2025-02-04 19:27:20] Production.INFO: ProcessCDR(1,14402492,1,1,2) [2025-02-04 19:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402492', 'tblTempUsageDetail_20' ) start [2025-02-04 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402492', 'tblTempUsageDetail_20' ) end [2025-02-04 19:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:27:24] Production.INFO: ==24013== Releasing lock... [2025-02-04 19:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:27:24] Production.INFO: 49.25 MB #Memory Used# [2025-02-04 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:28:05 [end_date_ymd] => 2025-02-04 19:28:05 [RateCDR] => 1 ) [2025-02-04 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:28:05' and `end` < '2025-02-04 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:28:18] Production.INFO: count ==2799 [2025-02-04 19:28:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:28:05 - End Time 2025-02-04 19:28:05 [2025-02-04 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402497', 'tblTempUsageDetail_20' ) start [2025-02-04 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402497', 'tblTempUsageDetail_20' ) end [2025-02-04 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402497', 'tblTempVendorCDR_20' ) start [2025-02-04 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402497', 'tblTempVendorCDR_20' ) end [2025-02-04 19:28:19] Production.INFO: ProcessCDR(1,14402497,1,1,2) [2025-02-04 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402497', 'tblTempUsageDetail_20' ) start [2025-02-04 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402497', 'tblTempUsageDetail_20' ) end [2025-02-04 19:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:28:22] Production.INFO: ==24096== Releasing lock... [2025-02-04 19:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:28:22] Production.INFO: 49 MB #Memory Used# [2025-02-04 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:29:05 [end_date_ymd] => 2025-02-04 19:29:05 [RateCDR] => 1 ) [2025-02-04 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:29:05' and `end` < '2025-02-04 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:29:18] Production.INFO: count ==2770 [2025-02-04 19:29:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:29:05 - End Time 2025-02-04 19:29:05 [2025-02-04 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402502', 'tblTempUsageDetail_20' ) start [2025-02-04 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402502', 'tblTempUsageDetail_20' ) end [2025-02-04 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402502', 'tblTempVendorCDR_20' ) start [2025-02-04 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402502', 'tblTempVendorCDR_20' ) end [2025-02-04 19:29:19] Production.INFO: ProcessCDR(1,14402502,1,1,2) [2025-02-04 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402502', 'tblTempUsageDetail_20' ) start [2025-02-04 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402502', 'tblTempUsageDetail_20' ) end [2025-02-04 19:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:29:24] Production.INFO: ==24177== Releasing lock... [2025-02-04 19:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:29:24] Production.INFO: 49 MB #Memory Used# [2025-02-04 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:30:05 [end_date_ymd] => 2025-02-04 19:30:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 16:30:05' and `end` < '2025-02-04 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-02-04 19:30:18] Production.INFO: count ==2745 [2025-02-04 19:30:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:30:05 - End Time 2025-02-04 19:30:05 [2025-02-04 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402507', 'tblTempUsageDetail_20' ) start [2025-02-04 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402507', 'tblTempUsageDetail_20' ) end [2025-02-04 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402507', 'tblTempVendorCDR_20' ) start [2025-02-04 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402507', 'tblTempVendorCDR_20' ) end [2025-02-04 19:30:19] Production.INFO: ProcessCDR(1,14402507,1,1,2) [2025-02-04 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402507', 'tblTempUsageDetail_20' ) start [2025-02-04 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402507', 'tblTempUsageDetail_20' ) end [2025-02-04 19:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:30:22] Production.INFO: ==24256== Releasing lock... [2025-02-04 19:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:30:22] Production.INFO: 48.75 MB #Memory Used# [2025-02-04 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:31:05 [end_date_ymd] => 2025-02-04 19:31:05 [RateCDR] => 1 ) [2025-02-04 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:31:05' and `end` < '2025-02-04 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:31:18] Production.INFO: count ==2683 [2025-02-04 19:31:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:31:05 - End Time 2025-02-04 19:31:05 [2025-02-04 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402513', 'tblTempUsageDetail_20' ) start [2025-02-04 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402513', 'tblTempUsageDetail_20' ) end [2025-02-04 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402513', 'tblTempVendorCDR_20' ) start [2025-02-04 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402513', 'tblTempVendorCDR_20' ) end [2025-02-04 19:31:19] Production.INFO: ProcessCDR(1,14402513,1,1,2) [2025-02-04 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402513', 'tblTempUsageDetail_20' ) start [2025-02-04 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402513', 'tblTempUsageDetail_20' ) end [2025-02-04 19:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:31:24] Production.INFO: ==24338== Releasing lock... [2025-02-04 19:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:31:24] Production.INFO: 48.25 MB #Memory Used# [2025-02-04 19:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:32:06 [end_date_ymd] => 2025-02-04 19:32:06 [RateCDR] => 1 ) [2025-02-04 19:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:32:06' and `end` < '2025-02-04 19:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:32:20] Production.INFO: count ==2656 [2025-02-04 19:32:21] Production.ERROR: pbx CDR StartTime 2025-02-04 16:32:06 - End Time 2025-02-04 19:32:06 [2025-02-04 19:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402518', 'tblTempUsageDetail_20' ) start [2025-02-04 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402518', 'tblTempUsageDetail_20' ) end [2025-02-04 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402518', 'tblTempVendorCDR_20' ) start [2025-02-04 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402518', 'tblTempVendorCDR_20' ) end [2025-02-04 19:32:21] Production.INFO: ProcessCDR(1,14402518,1,1,2) [2025-02-04 19:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402518', 'tblTempUsageDetail_20' ) start [2025-02-04 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402518', 'tblTempUsageDetail_20' ) end [2025-02-04 19:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:32:25] Production.INFO: ==24416== Releasing lock... [2025-02-04 19:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:32:25] Production.INFO: 48 MB #Memory Used# [2025-02-04 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:33:05 [end_date_ymd] => 2025-02-04 19:33:05 [RateCDR] => 1 ) [2025-02-04 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:33:05' and `end` < '2025-02-04 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:33:18] Production.INFO: count ==2650 [2025-02-04 19:33:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:33:05 - End Time 2025-02-04 19:33:05 [2025-02-04 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402523', 'tblTempUsageDetail_20' ) start [2025-02-04 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402523', 'tblTempUsageDetail_20' ) end [2025-02-04 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402523', 'tblTempVendorCDR_20' ) start [2025-02-04 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402523', 'tblTempVendorCDR_20' ) end [2025-02-04 19:33:19] Production.INFO: ProcessCDR(1,14402523,1,1,2) [2025-02-04 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402523', 'tblTempUsageDetail_20' ) start [2025-02-04 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402523', 'tblTempUsageDetail_20' ) end [2025-02-04 19:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:33:24] Production.INFO: ==24506== Releasing lock... [2025-02-04 19:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:33:24] Production.INFO: 48 MB #Memory Used# [2025-02-04 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:34:05 [end_date_ymd] => 2025-02-04 19:34:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 16:34:05' and `end` < '2025-02-04 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-02-04 19:34:19] Production.INFO: count ==2640 [2025-02-04 19:34:20] Production.ERROR: pbx CDR StartTime 2025-02-04 16:34:05 - End Time 2025-02-04 19:34:05 [2025-02-04 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402528', 'tblTempUsageDetail_20' ) start [2025-02-04 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402528', 'tblTempUsageDetail_20' ) end [2025-02-04 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402528', 'tblTempVendorCDR_20' ) start [2025-02-04 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402528', 'tblTempVendorCDR_20' ) end [2025-02-04 19:34:20] Production.INFO: ProcessCDR(1,14402528,1,1,2) [2025-02-04 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402528', 'tblTempUsageDetail_20' ) start [2025-02-04 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402528', 'tblTempUsageDetail_20' ) end [2025-02-04 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:34:23] Production.INFO: ==24587== Releasing lock... [2025-02-04 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:34:23] Production.INFO: 48 MB #Memory Used# [2025-02-04 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:35:05 [end_date_ymd] => 2025-02-04 19:35:05 [RateCDR] => 1 ) [2025-02-04 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:35:05' and `end` < '2025-02-04 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:35:18] Production.INFO: count ==2624 [2025-02-04 19:35:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:35:05 - End Time 2025-02-04 19:35:05 [2025-02-04 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402533', 'tblTempUsageDetail_20' ) start [2025-02-04 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402533', 'tblTempUsageDetail_20' ) end [2025-02-04 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402533', 'tblTempVendorCDR_20' ) start [2025-02-04 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402533', 'tblTempVendorCDR_20' ) end [2025-02-04 19:35:19] Production.INFO: ProcessCDR(1,14402533,1,1,2) [2025-02-04 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402533', 'tblTempUsageDetail_20' ) start [2025-02-04 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402533', 'tblTempUsageDetail_20' ) end [2025-02-04 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:35:23] Production.INFO: ==24681== Releasing lock... [2025-02-04 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:35:23] Production.INFO: 47.75 MB #Memory Used# [2025-02-04 19:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:36:06 [end_date_ymd] => 2025-02-04 19:36:06 [RateCDR] => 1 ) [2025-02-04 19:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:36:06' and `end` < '2025-02-04 19:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:36:19] Production.INFO: count ==2587 [2025-02-04 19:36:20] Production.ERROR: pbx CDR StartTime 2025-02-04 16:36:06 - End Time 2025-02-04 19:36:06 [2025-02-04 19:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402538', 'tblTempUsageDetail_20' ) start [2025-02-04 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402538', 'tblTempUsageDetail_20' ) end [2025-02-04 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402538', 'tblTempVendorCDR_20' ) start [2025-02-04 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402538', 'tblTempVendorCDR_20' ) end [2025-02-04 19:36:20] Production.INFO: ProcessCDR(1,14402538,1,1,2) [2025-02-04 19:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402538', 'tblTempUsageDetail_20' ) start [2025-02-04 19:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402538', 'tblTempUsageDetail_20' ) end [2025-02-04 19:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:36:25] Production.INFO: ==24810== Releasing lock... [2025-02-04 19:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:36:25] Production.INFO: 47.5 MB #Memory Used# [2025-02-04 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:37:05 [end_date_ymd] => 2025-02-04 19:37:05 [RateCDR] => 1 ) [2025-02-04 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:37:05' and `end` < '2025-02-04 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:37:18] Production.INFO: count ==2581 [2025-02-04 19:37:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:37:05 - End Time 2025-02-04 19:37:05 [2025-02-04 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402543', 'tblTempUsageDetail_20' ) start [2025-02-04 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402543', 'tblTempUsageDetail_20' ) end [2025-02-04 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402543', 'tblTempVendorCDR_20' ) start [2025-02-04 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402543', 'tblTempVendorCDR_20' ) end [2025-02-04 19:37:19] Production.INFO: ProcessCDR(1,14402543,1,1,2) [2025-02-04 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402543', 'tblTempUsageDetail_20' ) start [2025-02-04 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402543', 'tblTempUsageDetail_20' ) end [2025-02-04 19:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:37:24] Production.INFO: ==24897== Releasing lock... [2025-02-04 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:37:24] Production.INFO: 47.5 MB #Memory Used# [2025-02-04 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:38:05 [end_date_ymd] => 2025-02-04 19:38:05 [RateCDR] => 1 ) [2025-02-04 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:38:05' and `end` < '2025-02-04 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:38:18] Production.INFO: count ==2573 [2025-02-04 19:38:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:38:05 - End Time 2025-02-04 19:38:05 [2025-02-04 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402548', 'tblTempUsageDetail_20' ) start [2025-02-04 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402548', 'tblTempUsageDetail_20' ) end [2025-02-04 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402548', 'tblTempVendorCDR_20' ) start [2025-02-04 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402548', 'tblTempVendorCDR_20' ) end [2025-02-04 19:38:19] Production.INFO: ProcessCDR(1,14402548,1,1,2) [2025-02-04 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402548', 'tblTempUsageDetail_20' ) start [2025-02-04 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402548', 'tblTempUsageDetail_20' ) end [2025-02-04 19:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:38:24] Production.INFO: ==24993== Releasing lock... [2025-02-04 19:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:38:24] Production.INFO: 47.25 MB #Memory Used# [2025-02-04 19:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:39:06 [end_date_ymd] => 2025-02-04 19:39:06 [RateCDR] => 1 ) [2025-02-04 19:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:39:06' and `end` < '2025-02-04 19:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:39:19] Production.INFO: count ==2559 [2025-02-04 19:39:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:39:06 - End Time 2025-02-04 19:39:06 [2025-02-04 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402553', 'tblTempUsageDetail_20' ) start [2025-02-04 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402553', 'tblTempUsageDetail_20' ) end [2025-02-04 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402553', 'tblTempVendorCDR_20' ) start [2025-02-04 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402553', 'tblTempVendorCDR_20' ) end [2025-02-04 19:39:20] Production.INFO: ProcessCDR(1,14402553,1,1,2) [2025-02-04 19:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402553', 'tblTempUsageDetail_20' ) start [2025-02-04 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402553', 'tblTempUsageDetail_20' ) end [2025-02-04 19:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:39:24] Production.INFO: ==25089== Releasing lock... [2025-02-04 19:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:39:24] Production.INFO: 47.25 MB #Memory Used# [2025-02-04 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:40:06 [end_date_ymd] => 2025-02-04 19:40:06 [RateCDR] => 1 ) [2025-02-04 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-02-04 16:40:06' and `end` < '2025-02-04 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-02-04 19:40:20] Production.INFO: count ==2545 [2025-02-04 19:40:20] Production.ERROR: pbx CDR StartTime 2025-02-04 16:40:06 - End Time 2025-02-04 19:40:06 [2025-02-04 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402559', 'tblTempUsageDetail_20' ) start [2025-02-04 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402559', 'tblTempUsageDetail_20' ) end [2025-02-04 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402559', 'tblTempVendorCDR_20' ) start [2025-02-04 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402559', 'tblTempVendorCDR_20' ) end [2025-02-04 19:40:20] Production.INFO: ProcessCDR(1,14402559,1,1,2) [2025-02-04 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402559', 'tblTempUsageDetail_20' ) start [2025-02-04 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402559', 'tblTempUsageDetail_20' ) end [2025-02-04 19:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:40:23] Production.INFO: ==25180== Releasing lock... [2025-02-04 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:40:23] Production.INFO: 47.25 MB #Memory Used# [2025-02-04 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:41:05 [end_date_ymd] => 2025-02-04 19:41:05 [RateCDR] => 1 ) [2025-02-04 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:41:05' and `end` < '2025-02-04 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:41:19] Production.INFO: count ==2470 [2025-02-04 19:41:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:41:05 - End Time 2025-02-04 19:41:05 [2025-02-04 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402564', 'tblTempUsageDetail_20' ) start [2025-02-04 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402564', 'tblTempUsageDetail_20' ) end [2025-02-04 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402564', 'tblTempVendorCDR_20' ) start [2025-02-04 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402564', 'tblTempVendorCDR_20' ) end [2025-02-04 19:41:19] Production.INFO: ProcessCDR(1,14402564,1,1,2) [2025-02-04 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402564', 'tblTempUsageDetail_20' ) start [2025-02-04 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402564', 'tblTempUsageDetail_20' ) end [2025-02-04 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:41:23] Production.INFO: ==25273== Releasing lock... [2025-02-04 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:41:23] Production.INFO: 46.5 MB #Memory Used# [2025-02-04 19:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:42:04 [end_date_ymd] => 2025-02-04 19:42:04 [RateCDR] => 1 ) [2025-02-04 19: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-02-04 16:42:04' and `end` < '2025-02-04 19: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-02-04 19:42:18] Production.INFO: count ==2417 [2025-02-04 19:42:18] Production.ERROR: pbx CDR StartTime 2025-02-04 16:42:04 - End Time 2025-02-04 19:42:04 [2025-02-04 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402569', 'tblTempUsageDetail_20' ) start [2025-02-04 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402569', 'tblTempUsageDetail_20' ) end [2025-02-04 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402569', 'tblTempVendorCDR_20' ) start [2025-02-04 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402569', 'tblTempVendorCDR_20' ) end [2025-02-04 19:42:18] Production.INFO: ProcessCDR(1,14402569,1,1,2) [2025-02-04 19:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402569', 'tblTempUsageDetail_20' ) start [2025-02-04 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402569', 'tblTempUsageDetail_20' ) end [2025-02-04 19:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:42:21] Production.INFO: ==25361== Releasing lock... [2025-02-04 19:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:42:21] Production.INFO: 46.25 MB #Memory Used# [2025-02-04 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:43:05 [end_date_ymd] => 2025-02-04 19:43:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 16:43:05' and `end` < '2025-02-04 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-02-04 19:43:20] Production.INFO: count ==2389 [2025-02-04 19:43:21] Production.ERROR: pbx CDR StartTime 2025-02-04 16:43:05 - End Time 2025-02-04 19:43:05 [2025-02-04 19:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402574', 'tblTempUsageDetail_20' ) start [2025-02-04 19:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402574', 'tblTempUsageDetail_20' ) end [2025-02-04 19:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402574', 'tblTempVendorCDR_20' ) start [2025-02-04 19:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402574', 'tblTempVendorCDR_20' ) end [2025-02-04 19:43:21] Production.INFO: ProcessCDR(1,14402574,1,1,2) [2025-02-04 19:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402574', 'tblTempUsageDetail_20' ) start [2025-02-04 19:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402574', 'tblTempUsageDetail_20' ) end [2025-02-04 19:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:43:26] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:43:26] Production.INFO: ==25451== Releasing lock... [2025-02-04 19:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:43:26] Production.INFO: 46.25 MB #Memory Used# [2025-02-04 19:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:44:06 [end_date_ymd] => 2025-02-04 19:44:06 [RateCDR] => 1 ) [2025-02-04 19:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:44:06' and `end` < '2025-02-04 19:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:44:21] Production.INFO: count ==2355 [2025-02-04 19:44:21] Production.ERROR: pbx CDR StartTime 2025-02-04 16:44:06 - End Time 2025-02-04 19:44:06 [2025-02-04 19:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402579', 'tblTempUsageDetail_20' ) start [2025-02-04 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402579', 'tblTempUsageDetail_20' ) end [2025-02-04 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402579', 'tblTempVendorCDR_20' ) start [2025-02-04 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402579', 'tblTempVendorCDR_20' ) end [2025-02-04 19:44:21] Production.INFO: ProcessCDR(1,14402579,1,1,2) [2025-02-04 19:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402579', 'tblTempUsageDetail_20' ) start [2025-02-04 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402579', 'tblTempUsageDetail_20' ) end [2025-02-04 19:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:44:24] Production.INFO: ==25540== Releasing lock... [2025-02-04 19:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:44:24] Production.INFO: 45.75 MB #Memory Used# [2025-02-04 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:45:05 [end_date_ymd] => 2025-02-04 19:45:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 16:45:05' and `end` < '2025-02-04 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-02-04 19:45:18] Production.INFO: count ==2321 [2025-02-04 19:45:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:45:05 - End Time 2025-02-04 19:45:05 [2025-02-04 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402584', 'tblTempUsageDetail_20' ) start [2025-02-04 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402584', 'tblTempUsageDetail_20' ) end [2025-02-04 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402584', 'tblTempVendorCDR_20' ) start [2025-02-04 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402584', 'tblTempVendorCDR_20' ) end [2025-02-04 19:45:19] Production.INFO: ProcessCDR(1,14402584,1,1,2) [2025-02-04 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402584', 'tblTempUsageDetail_20' ) start [2025-02-04 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402584', 'tblTempUsageDetail_20' ) end [2025-02-04 19:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:45:23] Production.INFO: ==25637== Releasing lock... [2025-02-04 19:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:45:23] Production.INFO: 45.5 MB #Memory Used# [2025-02-04 19:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:46:06 [end_date_ymd] => 2025-02-04 19:46:06 [RateCDR] => 1 ) [2025-02-04 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-02-04 16:46:06' and `end` < '2025-02-04 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-02-04 19:46:20] Production.INFO: count ==2297 [2025-02-04 19:46:20] Production.ERROR: pbx CDR StartTime 2025-02-04 16:46:06 - End Time 2025-02-04 19:46:06 [2025-02-04 19:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402589', 'tblTempUsageDetail_20' ) start [2025-02-04 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402589', 'tblTempUsageDetail_20' ) end [2025-02-04 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402589', 'tblTempVendorCDR_20' ) start [2025-02-04 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402589', 'tblTempVendorCDR_20' ) end [2025-02-04 19:46:20] Production.INFO: ProcessCDR(1,14402589,1,1,2) [2025-02-04 19:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402589', 'tblTempUsageDetail_20' ) start [2025-02-04 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402589', 'tblTempUsageDetail_20' ) end [2025-02-04 19:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:46:23] Production.INFO: ==25727== Releasing lock... [2025-02-04 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:46:23] Production.INFO: 45.25 MB #Memory Used# [2025-02-04 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:47:05 [end_date_ymd] => 2025-02-04 19:47:05 [RateCDR] => 1 ) [2025-02-04 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:47:05' and `end` < '2025-02-04 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:47:18] Production.INFO: count ==2281 [2025-02-04 19:47:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:47:05 - End Time 2025-02-04 19:47:05 [2025-02-04 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402594', 'tblTempUsageDetail_20' ) start [2025-02-04 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402594', 'tblTempUsageDetail_20' ) end [2025-02-04 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402594', 'tblTempVendorCDR_20' ) start [2025-02-04 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402594', 'tblTempVendorCDR_20' ) end [2025-02-04 19:47:19] Production.INFO: ProcessCDR(1,14402594,1,1,2) [2025-02-04 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402594', 'tblTempUsageDetail_20' ) start [2025-02-04 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402594', 'tblTempUsageDetail_20' ) end [2025-02-04 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:47:22] Production.INFO: ==25828== Releasing lock... [2025-02-04 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:47:22] Production.INFO: 45.5 MB #Memory Used# [2025-02-04 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:48:05 [end_date_ymd] => 2025-02-04 19:48:05 [RateCDR] => 1 ) [2025-02-04 19:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:48:05' and `end` < '2025-02-04 19:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:48:19] Production.INFO: count ==2269 [2025-02-04 19:48:20] Production.ERROR: pbx CDR StartTime 2025-02-04 16:48:05 - End Time 2025-02-04 19:48:05 [2025-02-04 19:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402599', 'tblTempUsageDetail_20' ) start [2025-02-04 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402599', 'tblTempUsageDetail_20' ) end [2025-02-04 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402599', 'tblTempVendorCDR_20' ) start [2025-02-04 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402599', 'tblTempVendorCDR_20' ) end [2025-02-04 19:48:20] Production.INFO: ProcessCDR(1,14402599,1,1,2) [2025-02-04 19:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402599', 'tblTempUsageDetail_20' ) start [2025-02-04 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402599', 'tblTempUsageDetail_20' ) end [2025-02-04 19:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:48:23] Production.INFO: ==25922== Releasing lock... [2025-02-04 19:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:48:23] Production.INFO: 45.5 MB #Memory Used# [2025-02-04 19:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:49:04 [end_date_ymd] => 2025-02-04 19:49:04 [RateCDR] => 1 ) [2025-02-04 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-02-04 16:49:04' and `end` < '2025-02-04 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-02-04 19:49:17] Production.INFO: count ==2250 [2025-02-04 19:49:18] Production.ERROR: pbx CDR StartTime 2025-02-04 16:49:04 - End Time 2025-02-04 19:49:04 [2025-02-04 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402604', 'tblTempUsageDetail_20' ) start [2025-02-04 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402604', 'tblTempUsageDetail_20' ) end [2025-02-04 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402604', 'tblTempVendorCDR_20' ) start [2025-02-04 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402604', 'tblTempVendorCDR_20' ) end [2025-02-04 19:49:18] Production.INFO: ProcessCDR(1,14402604,1,1,2) [2025-02-04 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402604', 'tblTempUsageDetail_20' ) start [2025-02-04 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402604', 'tblTempUsageDetail_20' ) end [2025-02-04 19:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:49:21] Production.INFO: ==26022== Releasing lock... [2025-02-04 19:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:49:21] Production.INFO: 45 MB #Memory Used# [2025-02-04 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:50:06 [end_date_ymd] => 2025-02-04 19:50:06 [RateCDR] => 1 ) [2025-02-04 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:50:06' and `end` < '2025-02-04 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:50:19] Production.INFO: count ==2235 [2025-02-04 19:50:20] Production.ERROR: pbx CDR StartTime 2025-02-04 16:50:06 - End Time 2025-02-04 19:50:06 [2025-02-04 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402610', 'tblTempUsageDetail_20' ) start [2025-02-04 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402610', 'tblTempUsageDetail_20' ) end [2025-02-04 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402610', 'tblTempVendorCDR_20' ) start [2025-02-04 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402610', 'tblTempVendorCDR_20' ) end [2025-02-04 19:50:20] Production.INFO: ProcessCDR(1,14402610,1,1,2) [2025-02-04 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402610', 'tblTempUsageDetail_20' ) start [2025-02-04 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402610', 'tblTempUsageDetail_20' ) end [2025-02-04 19:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:50:23] Production.INFO: ==26121== Releasing lock... [2025-02-04 19:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:50:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-04 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:51:05 [end_date_ymd] => 2025-02-04 19:51:05 [RateCDR] => 1 ) [2025-02-04 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:51:05' and `end` < '2025-02-04 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:51:18] Production.INFO: count ==2132 [2025-02-04 19:51:18] Production.ERROR: pbx CDR StartTime 2025-02-04 16:51:05 - End Time 2025-02-04 19:51:05 [2025-02-04 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402611', 'tblTempUsageDetail_20' ) start [2025-02-04 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402611', 'tblTempUsageDetail_20' ) end [2025-02-04 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402611', 'tblTempVendorCDR_20' ) start [2025-02-04 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402611', 'tblTempVendorCDR_20' ) end [2025-02-04 19:51:18] Production.INFO: ProcessCDR(1,14402611,1,1,2) [2025-02-04 19:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402611', 'tblTempUsageDetail_20' ) start [2025-02-04 19:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402611', 'tblTempUsageDetail_20' ) end [2025-02-04 19:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:51:21] Production.INFO: ==26218== Releasing lock... [2025-02-04 19:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:51:21] Production.INFO: 44.25 MB #Memory Used# [2025-02-04 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:52:05 [end_date_ymd] => 2025-02-04 19:52:05 [RateCDR] => 1 ) [2025-02-04 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:52:05' and `end` < '2025-02-04 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:52:18] Production.INFO: count ==2106 [2025-02-04 19:52:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:52:05 - End Time 2025-02-04 19:52:05 [2025-02-04 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402620', 'tblTempUsageDetail_20' ) start [2025-02-04 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402620', 'tblTempUsageDetail_20' ) end [2025-02-04 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402620', 'tblTempVendorCDR_20' ) start [2025-02-04 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402620', 'tblTempVendorCDR_20' ) end [2025-02-04 19:52:19] Production.INFO: ProcessCDR(1,14402620,1,1,2) [2025-02-04 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402620', 'tblTempUsageDetail_20' ) start [2025-02-04 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402620', 'tblTempUsageDetail_20' ) end [2025-02-04 19:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:52:23] Production.INFO: ==26348== Releasing lock... [2025-02-04 19:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:52:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-04 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:53:05 [end_date_ymd] => 2025-02-04 19:53:05 [RateCDR] => 1 ) [2025-02-04 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:53:05' and `end` < '2025-02-04 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:53:18] Production.INFO: count ==2105 [2025-02-04 19:53:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:53:05 - End Time 2025-02-04 19:53:05 [2025-02-04 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402625', 'tblTempUsageDetail_20' ) start [2025-02-04 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402625', 'tblTempUsageDetail_20' ) end [2025-02-04 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402625', 'tblTempVendorCDR_20' ) start [2025-02-04 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402625', 'tblTempVendorCDR_20' ) end [2025-02-04 19:53:19] Production.INFO: ProcessCDR(1,14402625,1,1,2) [2025-02-04 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402625', 'tblTempUsageDetail_20' ) start [2025-02-04 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402625', 'tblTempUsageDetail_20' ) end [2025-02-04 19:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:53:22] Production.INFO: ==26446== Releasing lock... [2025-02-04 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:53:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-04 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:54:05 [end_date_ymd] => 2025-02-04 19:54:05 [RateCDR] => 1 ) [2025-02-04 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:54:05' and `end` < '2025-02-04 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:54:19] Production.INFO: count ==2117 [2025-02-04 19:54:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:54:05 - End Time 2025-02-04 19:54:05 [2025-02-04 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402630', 'tblTempUsageDetail_20' ) start [2025-02-04 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402630', 'tblTempUsageDetail_20' ) end [2025-02-04 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402630', 'tblTempVendorCDR_20' ) start [2025-02-04 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402630', 'tblTempVendorCDR_20' ) end [2025-02-04 19:54:19] Production.INFO: ProcessCDR(1,14402630,1,1,2) [2025-02-04 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402630', 'tblTempUsageDetail_20' ) start [2025-02-04 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402630', 'tblTempUsageDetail_20' ) end [2025-02-04 19:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:54:23] Production.INFO: ==26537== Releasing lock... [2025-02-04 19:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:54:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-04 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:55:05 [end_date_ymd] => 2025-02-04 19:55:05 [RateCDR] => 1 ) [2025-02-04 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:55:05' and `end` < '2025-02-04 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:55:18] Production.INFO: count ==2082 [2025-02-04 19:55:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:55:05 - End Time 2025-02-04 19:55:05 [2025-02-04 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402635', 'tblTempUsageDetail_20' ) start [2025-02-04 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402635', 'tblTempUsageDetail_20' ) end [2025-02-04 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402635', 'tblTempVendorCDR_20' ) start [2025-02-04 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402635', 'tblTempVendorCDR_20' ) end [2025-02-04 19:55:19] Production.INFO: ProcessCDR(1,14402635,1,1,2) [2025-02-04 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402635', 'tblTempUsageDetail_20' ) start [2025-02-04 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402635', 'tblTempUsageDetail_20' ) end [2025-02-04 19:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:55:22] Production.INFO: ==26633== Releasing lock... [2025-02-04 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:55:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-04 19:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:56:06 [end_date_ymd] => 2025-02-04 19:56:06 [RateCDR] => 1 ) [2025-02-04 19:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:56:06' and `end` < '2025-02-04 19:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:56:19] Production.INFO: count ==2071 [2025-02-04 19:56:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:56:06 - End Time 2025-02-04 19:56:06 [2025-02-04 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402640', 'tblTempUsageDetail_20' ) start [2025-02-04 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402640', 'tblTempUsageDetail_20' ) end [2025-02-04 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402640', 'tblTempVendorCDR_20' ) start [2025-02-04 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402640', 'tblTempVendorCDR_20' ) end [2025-02-04 19:56:19] Production.INFO: ProcessCDR(1,14402640,1,1,2) [2025-02-04 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402640', 'tblTempUsageDetail_20' ) start [2025-02-04 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402640', 'tblTempUsageDetail_20' ) end [2025-02-04 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:56:22] Production.INFO: ==26734== Releasing lock... [2025-02-04 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:56:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-04 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:57:05 [end_date_ymd] => 2025-02-04 19:57:05 [RateCDR] => 1 ) [2025-02-04 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:57:05' and `end` < '2025-02-04 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:57:18] Production.INFO: count ==2063 [2025-02-04 19:57:18] Production.ERROR: pbx CDR StartTime 2025-02-04 16:57:05 - End Time 2025-02-04 19:57:05 [2025-02-04 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402645', 'tblTempUsageDetail_20' ) start [2025-02-04 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402645', 'tblTempUsageDetail_20' ) end [2025-02-04 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402645', 'tblTempVendorCDR_20' ) start [2025-02-04 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402645', 'tblTempVendorCDR_20' ) end [2025-02-04 19:57:18] Production.INFO: ProcessCDR(1,14402645,1,1,2) [2025-02-04 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402645', 'tblTempUsageDetail_20' ) start [2025-02-04 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402645', 'tblTempUsageDetail_20' ) end [2025-02-04 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:57:22] Production.INFO: ==26837== Releasing lock... [2025-02-04 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:57:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-04 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:58:05 [end_date_ymd] => 2025-02-04 19:58:05 [RateCDR] => 1 ) [2025-02-04 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:58:05' and `end` < '2025-02-04 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:58:18] Production.INFO: count ==2042 [2025-02-04 19:58:19] Production.ERROR: pbx CDR StartTime 2025-02-04 16:58:05 - End Time 2025-02-04 19:58:05 [2025-02-04 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402650', 'tblTempUsageDetail_20' ) start [2025-02-04 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402650', 'tblTempUsageDetail_20' ) end [2025-02-04 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402650', 'tblTempVendorCDR_20' ) start [2025-02-04 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402650', 'tblTempVendorCDR_20' ) end [2025-02-04 19:58:19] Production.INFO: ProcessCDR(1,14402650,1,1,2) [2025-02-04 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402650', 'tblTempUsageDetail_20' ) start [2025-02-04 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402650', 'tblTempUsageDetail_20' ) end [2025-02-04 19:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:58:22] Production.INFO: ==26935== Releasing lock... [2025-02-04 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:58:22] Production.INFO: 43 MB #Memory Used# [2025-02-04 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 16:59:05 [end_date_ymd] => 2025-02-04 19:59:05 [RateCDR] => 1 ) [2025-02-04 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 16:59:05' and `end` < '2025-02-04 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 19:59:18] Production.INFO: count ==2028 [2025-02-04 19:59:18] Production.ERROR: pbx CDR StartTime 2025-02-04 16:59:05 - End Time 2025-02-04 19:59:05 [2025-02-04 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402655', 'tblTempUsageDetail_20' ) start [2025-02-04 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402655', 'tblTempUsageDetail_20' ) end [2025-02-04 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402655', 'tblTempVendorCDR_20' ) start [2025-02-04 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402655', 'tblTempVendorCDR_20' ) end [2025-02-04 19:59:19] Production.INFO: ProcessCDR(1,14402655,1,1,2) [2025-02-04 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402655', 'tblTempUsageDetail_20' ) start [2025-02-04 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402655', 'tblTempUsageDetail_20' ) end [2025-02-04 19:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 19:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 19:59:23] Production.INFO: ==27033== Releasing lock... [2025-02-04 19:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 19:59:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-04 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:00:06 [end_date_ymd] => 2025-02-04 20:00:06 [RateCDR] => 1 ) [2025-02-04 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:00:06' and `end` < '2025-02-04 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:00:19] Production.INFO: count ==2023 [2025-02-04 20:00:19] Production.ERROR: pbx CDR StartTime 2025-02-04 17:00:06 - End Time 2025-02-04 20:00:06 [2025-02-04 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402661', 'tblTempUsageDetail_20' ) start [2025-02-04 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402661', 'tblTempUsageDetail_20' ) end [2025-02-04 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402661', 'tblTempVendorCDR_20' ) start [2025-02-04 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402661', 'tblTempVendorCDR_20' ) end [2025-02-04 20:00:19] Production.INFO: ProcessCDR(1,14402661,1,1,2) [2025-02-04 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402661', 'tblTempUsageDetail_20' ) start [2025-02-04 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402661', 'tblTempUsageDetail_20' ) end [2025-02-04 20:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:00:24] Production.INFO: ==27134== Releasing lock... [2025-02-04 20:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:00:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-04 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:01:05 [end_date_ymd] => 2025-02-04 20:01:05 [RateCDR] => 1 ) [2025-02-04 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:01:05' and `end` < '2025-02-04 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:01:18] Production.INFO: count ==1965 [2025-02-04 20:01:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:01:05 - End Time 2025-02-04 20:01:05 [2025-02-04 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402666', 'tblTempUsageDetail_20' ) start [2025-02-04 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402666', 'tblTempUsageDetail_20' ) end [2025-02-04 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402666', 'tblTempVendorCDR_20' ) start [2025-02-04 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402666', 'tblTempVendorCDR_20' ) end [2025-02-04 20:01:18] Production.INFO: ProcessCDR(1,14402666,1,1,2) [2025-02-04 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402666', 'tblTempUsageDetail_20' ) start [2025-02-04 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402666', 'tblTempUsageDetail_20' ) end [2025-02-04 20:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:01:22] Production.INFO: ==27278== Releasing lock... [2025-02-04 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:01:22] Production.INFO: 43 MB #Memory Used# [2025-02-04 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:02:05 [end_date_ymd] => 2025-02-04 20:02:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 17:02:05' and `end` < '2025-02-04 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-02-04 20:02:18] Production.INFO: count ==1962 [2025-02-04 20:02:19] Production.ERROR: pbx CDR StartTime 2025-02-04 17:02:05 - End Time 2025-02-04 20:02:05 [2025-02-04 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402671', 'tblTempUsageDetail_20' ) start [2025-02-04 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402671', 'tblTempUsageDetail_20' ) end [2025-02-04 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402671', 'tblTempVendorCDR_20' ) start [2025-02-04 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402671', 'tblTempVendorCDR_20' ) end [2025-02-04 20:02:19] Production.INFO: ProcessCDR(1,14402671,1,1,2) [2025-02-04 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402671', 'tblTempUsageDetail_20' ) start [2025-02-04 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402671', 'tblTempUsageDetail_20' ) end [2025-02-04 20:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:02:22] Production.INFO: ==27382== Releasing lock... [2025-02-04 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:02:22] Production.INFO: 43 MB #Memory Used# [2025-02-04 20:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:03:04 [end_date_ymd] => 2025-02-04 20:03:04 [RateCDR] => 1 ) [2025-02-04 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-02-04 17:03:04' and `end` < '2025-02-04 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-02-04 20:03:17] Production.INFO: count ==1956 [2025-02-04 20:03:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:03:04 - End Time 2025-02-04 20:03:04 [2025-02-04 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402676', 'tblTempUsageDetail_20' ) start [2025-02-04 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402676', 'tblTempUsageDetail_20' ) end [2025-02-04 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402676', 'tblTempVendorCDR_20' ) start [2025-02-04 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402676', 'tblTempVendorCDR_20' ) end [2025-02-04 20:03:18] Production.INFO: ProcessCDR(1,14402676,1,1,2) [2025-02-04 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402676', 'tblTempUsageDetail_20' ) start [2025-02-04 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402676', 'tblTempUsageDetail_20' ) end [2025-02-04 20:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:03:21] Production.INFO: ==27478== Releasing lock... [2025-02-04 20:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:03:21] Production.INFO: 43 MB #Memory Used# [2025-02-04 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:04:05 [end_date_ymd] => 2025-02-04 20:04:05 [RateCDR] => 1 ) [2025-02-04 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:04:05' and `end` < '2025-02-04 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:04:18] Production.INFO: count ==1938 [2025-02-04 20:04:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:04:05 - End Time 2025-02-04 20:04:05 [2025-02-04 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402680', 'tblTempUsageDetail_20' ) start [2025-02-04 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402680', 'tblTempUsageDetail_20' ) end [2025-02-04 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402680', 'tblTempVendorCDR_20' ) start [2025-02-04 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402680', 'tblTempVendorCDR_20' ) end [2025-02-04 20:04:18] Production.INFO: ProcessCDR(1,14402680,1,1,2) [2025-02-04 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402680', 'tblTempUsageDetail_20' ) start [2025-02-04 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402680', 'tblTempUsageDetail_20' ) end [2025-02-04 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:04:22] Production.INFO: ==27575== Releasing lock... [2025-02-04 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:04:22] Production.INFO: 43 MB #Memory Used# [2025-02-04 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:05:05 [end_date_ymd] => 2025-02-04 20:05:05 [RateCDR] => 1 ) [2025-02-04 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:05:05' and `end` < '2025-02-04 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:05:18] Production.INFO: count ==1943 [2025-02-04 20:05:19] Production.ERROR: pbx CDR StartTime 2025-02-04 17:05:05 - End Time 2025-02-04 20:05:05 [2025-02-04 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402686', 'tblTempUsageDetail_20' ) start [2025-02-04 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402686', 'tblTempUsageDetail_20' ) end [2025-02-04 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402686', 'tblTempVendorCDR_20' ) start [2025-02-04 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402686', 'tblTempVendorCDR_20' ) end [2025-02-04 20:05:19] Production.INFO: ProcessCDR(1,14402686,1,1,2) [2025-02-04 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402686', 'tblTempUsageDetail_20' ) start [2025-02-04 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402686', 'tblTempUsageDetail_20' ) end [2025-02-04 20:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:05:22] Production.INFO: ==27673== Releasing lock... [2025-02-04 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:05:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-04 20:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:06:04 [end_date_ymd] => 2025-02-04 20:06:04 [RateCDR] => 1 ) [2025-02-04 20:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:06:04' and `end` < '2025-02-04 20:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:06:17] Production.INFO: count ==1943 [2025-02-04 20:06:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:06:04 - End Time 2025-02-04 20:06:04 [2025-02-04 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402691', 'tblTempUsageDetail_20' ) start [2025-02-04 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402691', 'tblTempUsageDetail_20' ) end [2025-02-04 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402691', 'tblTempVendorCDR_20' ) start [2025-02-04 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402691', 'tblTempVendorCDR_20' ) end [2025-02-04 20:06:18] Production.INFO: ProcessCDR(1,14402691,1,1,2) [2025-02-04 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402691', 'tblTempUsageDetail_20' ) start [2025-02-04 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402691', 'tblTempUsageDetail_20' ) end [2025-02-04 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:06:22] Production.INFO: ==27763== Releasing lock... [2025-02-04 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:06:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-04 20:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:07:06 [end_date_ymd] => 2025-02-04 20:07:06 [RateCDR] => 1 ) [2025-02-04 20:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:07:06' and `end` < '2025-02-04 20:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:07:20] Production.INFO: count ==1928 [2025-02-04 20:07:20] Production.ERROR: pbx CDR StartTime 2025-02-04 17:07:06 - End Time 2025-02-04 20:07:06 [2025-02-04 20:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402696', 'tblTempUsageDetail_20' ) start [2025-02-04 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402696', 'tblTempUsageDetail_20' ) end [2025-02-04 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402696', 'tblTempVendorCDR_20' ) start [2025-02-04 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402696', 'tblTempVendorCDR_20' ) end [2025-02-04 20:07:20] Production.INFO: ProcessCDR(1,14402696,1,1,2) [2025-02-04 20:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402696', 'tblTempUsageDetail_20' ) start [2025-02-04 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402696', 'tblTempUsageDetail_20' ) end [2025-02-04 20:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:07:23] Production.INFO: ==27898== Releasing lock... [2025-02-04 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:07:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-04 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:08:05 [end_date_ymd] => 2025-02-04 20:08:05 [RateCDR] => 1 ) [2025-02-04 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:08:05' and `end` < '2025-02-04 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:08:18] Production.INFO: count ==1919 [2025-02-04 20:08:19] Production.ERROR: pbx CDR StartTime 2025-02-04 17:08:05 - End Time 2025-02-04 20:08:05 [2025-02-04 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402701', 'tblTempUsageDetail_20' ) start [2025-02-04 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402701', 'tblTempUsageDetail_20' ) end [2025-02-04 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402701', 'tblTempVendorCDR_20' ) start [2025-02-04 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402701', 'tblTempVendorCDR_20' ) end [2025-02-04 20:08:19] Production.INFO: ProcessCDR(1,14402701,1,1,2) [2025-02-04 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402701', 'tblTempUsageDetail_20' ) start [2025-02-04 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402701', 'tblTempUsageDetail_20' ) end [2025-02-04 20:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:08:22] Production.INFO: ==27991== Releasing lock... [2025-02-04 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:08:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-04 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:09:05 [end_date_ymd] => 2025-02-04 20:09:05 [RateCDR] => 1 ) [2025-02-04 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:09:05' and `end` < '2025-02-04 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:09:18] Production.INFO: count ==1919 [2025-02-04 20:09:19] Production.ERROR: pbx CDR StartTime 2025-02-04 17:09:05 - End Time 2025-02-04 20:09:05 [2025-02-04 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402706', 'tblTempUsageDetail_20' ) start [2025-02-04 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402706', 'tblTempUsageDetail_20' ) end [2025-02-04 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402706', 'tblTempVendorCDR_20' ) start [2025-02-04 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402706', 'tblTempVendorCDR_20' ) end [2025-02-04 20:09:19] Production.INFO: ProcessCDR(1,14402706,1,1,2) [2025-02-04 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402706', 'tblTempUsageDetail_20' ) start [2025-02-04 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402706', 'tblTempUsageDetail_20' ) end [2025-02-04 20:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:09:23] Production.INFO: ==28074== Releasing lock... [2025-02-04 20:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:09:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-04 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:10:06 [end_date_ymd] => 2025-02-04 20:10:06 [RateCDR] => 1 ) [2025-02-04 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-02-04 17:10:06' and `end` < '2025-02-04 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-02-04 20:10:19] Production.INFO: count ==1912 [2025-02-04 20:10:20] Production.ERROR: pbx CDR StartTime 2025-02-04 17:10:06 - End Time 2025-02-04 20:10:06 [2025-02-04 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402712', 'tblTempUsageDetail_20' ) start [2025-02-04 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402712', 'tblTempUsageDetail_20' ) end [2025-02-04 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402712', 'tblTempVendorCDR_20' ) start [2025-02-04 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402712', 'tblTempVendorCDR_20' ) end [2025-02-04 20:10:20] Production.INFO: ProcessCDR(1,14402712,1,1,2) [2025-02-04 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402712', 'tblTempUsageDetail_20' ) start [2025-02-04 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402712', 'tblTempUsageDetail_20' ) end [2025-02-04 20:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:10:23] Production.INFO: ==28156== Releasing lock... [2025-02-04 20:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:10:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-04 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:11:05 [end_date_ymd] => 2025-02-04 20:11:05 [RateCDR] => 1 ) [2025-02-04 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:11:05' and `end` < '2025-02-04 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:11:18] Production.INFO: count ==1842 [2025-02-04 20:11:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:11:05 - End Time 2025-02-04 20:11:05 [2025-02-04 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402717', 'tblTempUsageDetail_20' ) start [2025-02-04 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402717', 'tblTempUsageDetail_20' ) end [2025-02-04 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402717', 'tblTempVendorCDR_20' ) start [2025-02-04 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402717', 'tblTempVendorCDR_20' ) end [2025-02-04 20:11:18] Production.INFO: ProcessCDR(1,14402717,1,1,2) [2025-02-04 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402717', 'tblTempUsageDetail_20' ) start [2025-02-04 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402717', 'tblTempUsageDetail_20' ) end [2025-02-04 20:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:11:21] Production.INFO: ==28239== Releasing lock... [2025-02-04 20:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:11:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-04 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:12:06 [end_date_ymd] => 2025-02-04 20:12:06 [RateCDR] => 1 ) [2025-02-04 20:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:12:06' and `end` < '2025-02-04 20:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:12:19] Production.INFO: count ==1837 [2025-02-04 20:12:19] Production.ERROR: pbx CDR StartTime 2025-02-04 17:12:06 - End Time 2025-02-04 20:12:06 [2025-02-04 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402722', 'tblTempUsageDetail_20' ) start [2025-02-04 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402722', 'tblTempUsageDetail_20' ) end [2025-02-04 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402722', 'tblTempVendorCDR_20' ) start [2025-02-04 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402722', 'tblTempVendorCDR_20' ) end [2025-02-04 20:12:19] Production.INFO: ProcessCDR(1,14402722,1,1,2) [2025-02-04 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402722', 'tblTempUsageDetail_20' ) start [2025-02-04 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402722', 'tblTempUsageDetail_20' ) end [2025-02-04 20:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:12:22] Production.INFO: ==28322== Releasing lock... [2025-02-04 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:12:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-04 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:13:05 [end_date_ymd] => 2025-02-04 20:13:05 [RateCDR] => 1 ) [2025-02-04 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:13:05' and `end` < '2025-02-04 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:13:18] Production.INFO: count ==1844 [2025-02-04 20:13:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:13:05 - End Time 2025-02-04 20:13:05 [2025-02-04 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402727', 'tblTempUsageDetail_20' ) start [2025-02-04 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402727', 'tblTempUsageDetail_20' ) end [2025-02-04 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402727', 'tblTempVendorCDR_20' ) start [2025-02-04 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402727', 'tblTempVendorCDR_20' ) end [2025-02-04 20:13:19] Production.INFO: ProcessCDR(1,14402727,1,1,2) [2025-02-04 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402727', 'tblTempUsageDetail_20' ) start [2025-02-04 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402727', 'tblTempUsageDetail_20' ) end [2025-02-04 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:13:22] Production.INFO: ==28398== Releasing lock... [2025-02-04 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:13:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-04 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:14:05 [end_date_ymd] => 2025-02-04 20:14:05 [RateCDR] => 1 ) [2025-02-04 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:14:05' and `end` < '2025-02-04 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:14:18] Production.INFO: count ==1842 [2025-02-04 20:14:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:14:05 - End Time 2025-02-04 20:14:05 [2025-02-04 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402732', 'tblTempUsageDetail_20' ) start [2025-02-04 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402732', 'tblTempUsageDetail_20' ) end [2025-02-04 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402732', 'tblTempVendorCDR_20' ) start [2025-02-04 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402732', 'tblTempVendorCDR_20' ) end [2025-02-04 20:14:18] Production.INFO: ProcessCDR(1,14402732,1,1,2) [2025-02-04 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402732', 'tblTempUsageDetail_20' ) start [2025-02-04 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402732', 'tblTempUsageDetail_20' ) end [2025-02-04 20:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:14:21] Production.INFO: ==28479== Releasing lock... [2025-02-04 20:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:14:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-04 20:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:15:04 [end_date_ymd] => 2025-02-04 20:15:04 [RateCDR] => 1 ) [2025-02-04 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-02-04 17:15:04' and `end` < '2025-02-04 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-02-04 20:15:18] Production.INFO: count ==1841 [2025-02-04 20:15:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:15:04 - End Time 2025-02-04 20:15:04 [2025-02-04 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402737', 'tblTempUsageDetail_20' ) start [2025-02-04 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402737', 'tblTempUsageDetail_20' ) end [2025-02-04 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402737', 'tblTempVendorCDR_20' ) start [2025-02-04 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402737', 'tblTempVendorCDR_20' ) end [2025-02-04 20:15:18] Production.INFO: ProcessCDR(1,14402737,1,1,2) [2025-02-04 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402737', 'tblTempUsageDetail_20' ) start [2025-02-04 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402737', 'tblTempUsageDetail_20' ) end [2025-02-04 20:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:15:21] Production.INFO: ==28562== Releasing lock... [2025-02-04 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:15:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-04 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:16:05 [end_date_ymd] => 2025-02-04 20:16:05 [RateCDR] => 1 ) [2025-02-04 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:16:05' and `end` < '2025-02-04 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:16:18] Production.INFO: count ==1824 [2025-02-04 20:16:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:16:05 - End Time 2025-02-04 20:16:05 [2025-02-04 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402742', 'tblTempUsageDetail_20' ) start [2025-02-04 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402742', 'tblTempUsageDetail_20' ) end [2025-02-04 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402742', 'tblTempVendorCDR_20' ) start [2025-02-04 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402742', 'tblTempVendorCDR_20' ) end [2025-02-04 20:16:18] Production.INFO: ProcessCDR(1,14402742,1,1,2) [2025-02-04 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402742', 'tblTempUsageDetail_20' ) start [2025-02-04 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402742', 'tblTempUsageDetail_20' ) end [2025-02-04 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:16:23] Production.INFO: ==28651== Releasing lock... [2025-02-04 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:16:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-04 20:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:17:06 [end_date_ymd] => 2025-02-04 20:17:06 [RateCDR] => 1 ) [2025-02-04 20:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:17:06' and `end` < '2025-02-04 20:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:17:20] Production.INFO: count ==1812 [2025-02-04 20:17:21] Production.ERROR: pbx CDR StartTime 2025-02-04 17:17:06 - End Time 2025-02-04 20:17:06 [2025-02-04 20:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402747', 'tblTempUsageDetail_20' ) start [2025-02-04 20:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402747', 'tblTempUsageDetail_20' ) end [2025-02-04 20:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402747', 'tblTempVendorCDR_20' ) start [2025-02-04 20:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402747', 'tblTempVendorCDR_20' ) end [2025-02-04 20:17:21] Production.INFO: ProcessCDR(1,14402747,1,1,2) [2025-02-04 20:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402747', 'tblTempUsageDetail_20' ) start [2025-02-04 20:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402747', 'tblTempUsageDetail_20' ) end [2025-02-04 20:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:17:25] Production.INFO: ==28738== Releasing lock... [2025-02-04 20:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:17:25] Production.INFO: 42 MB #Memory Used# [2025-02-04 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:18:05 [end_date_ymd] => 2025-02-04 20:18:05 [RateCDR] => 1 ) [2025-02-04 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:18:05' and `end` < '2025-02-04 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:18:18] Production.INFO: count ==1812 [2025-02-04 20:18:19] Production.ERROR: pbx CDR StartTime 2025-02-04 17:18:05 - End Time 2025-02-04 20:18:05 [2025-02-04 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402752', 'tblTempUsageDetail_20' ) start [2025-02-04 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402752', 'tblTempUsageDetail_20' ) end [2025-02-04 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402752', 'tblTempVendorCDR_20' ) start [2025-02-04 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402752', 'tblTempVendorCDR_20' ) end [2025-02-04 20:18:19] Production.INFO: ProcessCDR(1,14402752,1,1,2) [2025-02-04 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402752', 'tblTempUsageDetail_20' ) start [2025-02-04 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402752', 'tblTempUsageDetail_20' ) end [2025-02-04 20:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:18:22] Production.INFO: ==28826== Releasing lock... [2025-02-04 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:18:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-04 20:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:19:06 [end_date_ymd] => 2025-02-04 20:19:06 [RateCDR] => 1 ) [2025-02-04 20:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:19:06' and `end` < '2025-02-04 20:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:19:19] Production.INFO: count ==1781 [2025-02-04 20:19:19] Production.ERROR: pbx CDR StartTime 2025-02-04 17:19:06 - End Time 2025-02-04 20:19:06 [2025-02-04 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402757', 'tblTempUsageDetail_20' ) start [2025-02-04 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402757', 'tblTempUsageDetail_20' ) end [2025-02-04 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402757', 'tblTempVendorCDR_20' ) start [2025-02-04 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402757', 'tblTempVendorCDR_20' ) end [2025-02-04 20:19:19] Production.INFO: ProcessCDR(1,14402757,1,1,2) [2025-02-04 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402757', 'tblTempUsageDetail_20' ) start [2025-02-04 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402757', 'tblTempUsageDetail_20' ) end [2025-02-04 20:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:19:23] Production.INFO: ==28909== Releasing lock... [2025-02-04 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:19:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-04 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:20:06 [end_date_ymd] => 2025-02-04 20:20:06 [RateCDR] => 1 ) [2025-02-04 20:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:20:06' and `end` < '2025-02-04 20:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:20:19] Production.INFO: count ==1776 [2025-02-04 20:20:19] Production.ERROR: pbx CDR StartTime 2025-02-04 17:20:06 - End Time 2025-02-04 20:20:06 [2025-02-04 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402763', 'tblTempUsageDetail_20' ) start [2025-02-04 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402763', 'tblTempUsageDetail_20' ) end [2025-02-04 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402763', 'tblTempVendorCDR_20' ) start [2025-02-04 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402763', 'tblTempVendorCDR_20' ) end [2025-02-04 20:20:19] Production.INFO: ProcessCDR(1,14402763,1,1,2) [2025-02-04 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402763', 'tblTempUsageDetail_20' ) start [2025-02-04 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402763', 'tblTempUsageDetail_20' ) end [2025-02-04 20:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:20:22] Production.INFO: ==28992== Releasing lock... [2025-02-04 20:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:20:22] Production.INFO: 41 MB #Memory Used# [2025-02-04 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:21:05 [end_date_ymd] => 2025-02-04 20:21:05 [RateCDR] => 1 ) [2025-02-04 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:21:05' and `end` < '2025-02-04 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:21:18] Production.INFO: count ==1732 [2025-02-04 20:21:19] Production.ERROR: pbx CDR StartTime 2025-02-04 17:21:05 - End Time 2025-02-04 20:21:05 [2025-02-04 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402768', 'tblTempUsageDetail_20' ) start [2025-02-04 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402768', 'tblTempUsageDetail_20' ) end [2025-02-04 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402768', 'tblTempVendorCDR_20' ) start [2025-02-04 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402768', 'tblTempVendorCDR_20' ) end [2025-02-04 20:21:19] Production.INFO: ProcessCDR(1,14402768,1,1,2) [2025-02-04 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402768', 'tblTempUsageDetail_20' ) start [2025-02-04 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402768', 'tblTempUsageDetail_20' ) end [2025-02-04 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:21:22] Production.INFO: ==29072== Releasing lock... [2025-02-04 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:21:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-04 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:22:05 [end_date_ymd] => 2025-02-04 20:22:05 [RateCDR] => 1 ) [2025-02-04 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:22:05' and `end` < '2025-02-04 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:22:18] Production.INFO: count ==1730 [2025-02-04 20:22:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:22:05 - End Time 2025-02-04 20:22:05 [2025-02-04 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402773', 'tblTempUsageDetail_20' ) start [2025-02-04 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402773', 'tblTempUsageDetail_20' ) end [2025-02-04 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402773', 'tblTempVendorCDR_20' ) start [2025-02-04 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402773', 'tblTempVendorCDR_20' ) end [2025-02-04 20:22:18] Production.INFO: ProcessCDR(1,14402773,1,1,2) [2025-02-04 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402773', 'tblTempUsageDetail_20' ) start [2025-02-04 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402773', 'tblTempUsageDetail_20' ) end [2025-02-04 20:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:22:21] Production.INFO: ==29150== Releasing lock... [2025-02-04 20:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:22:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-04 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:23:05 [end_date_ymd] => 2025-02-04 20:23:05 [RateCDR] => 1 ) [2025-02-04 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:23:05' and `end` < '2025-02-04 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:23:19] Production.INFO: count ==1731 [2025-02-04 20:23:19] Production.ERROR: pbx CDR StartTime 2025-02-04 17:23:05 - End Time 2025-02-04 20:23:05 [2025-02-04 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402778', 'tblTempUsageDetail_20' ) start [2025-02-04 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402778', 'tblTempUsageDetail_20' ) end [2025-02-04 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402778', 'tblTempVendorCDR_20' ) start [2025-02-04 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402778', 'tblTempVendorCDR_20' ) end [2025-02-04 20:23:19] Production.INFO: ProcessCDR(1,14402778,1,1,2) [2025-02-04 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402778', 'tblTempUsageDetail_20' ) start [2025-02-04 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402778', 'tblTempUsageDetail_20' ) end [2025-02-04 20:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:23:24] Production.INFO: ==29270== Releasing lock... [2025-02-04 20:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:23:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-04 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:24:05 [end_date_ymd] => 2025-02-04 20:24:05 [RateCDR] => 1 ) [2025-02-04 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:24:05' and `end` < '2025-02-04 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:24:18] Production.INFO: count ==1726 [2025-02-04 20:24:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:24:05 - End Time 2025-02-04 20:24:05 [2025-02-04 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402783', 'tblTempUsageDetail_20' ) start [2025-02-04 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402783', 'tblTempUsageDetail_20' ) end [2025-02-04 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402783', 'tblTempVendorCDR_20' ) start [2025-02-04 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402783', 'tblTempVendorCDR_20' ) end [2025-02-04 20:24:18] Production.INFO: ProcessCDR(1,14402783,1,1,2) [2025-02-04 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402783', 'tblTempUsageDetail_20' ) start [2025-02-04 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402783', 'tblTempUsageDetail_20' ) end [2025-02-04 20:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:24:21] Production.INFO: ==29346== Releasing lock... [2025-02-04 20:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:24:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-04 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:25:05 [end_date_ymd] => 2025-02-04 20:25:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 17:25:05' and `end` < '2025-02-04 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-02-04 20:25:18] Production.INFO: count ==1721 [2025-02-04 20:25:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:25:05 - End Time 2025-02-04 20:25:05 [2025-02-04 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402788', 'tblTempUsageDetail_20' ) start [2025-02-04 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402788', 'tblTempUsageDetail_20' ) end [2025-02-04 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402788', 'tblTempVendorCDR_20' ) start [2025-02-04 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402788', 'tblTempVendorCDR_20' ) end [2025-02-04 20:25:18] Production.INFO: ProcessCDR(1,14402788,1,1,2) [2025-02-04 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402788', 'tblTempUsageDetail_20' ) start [2025-02-04 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402788', 'tblTempUsageDetail_20' ) end [2025-02-04 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:25:23] Production.INFO: ==29423== Releasing lock... [2025-02-04 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:25:23] Production.INFO: 41 MB #Memory Used# [2025-02-04 20:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:26:06 [end_date_ymd] => 2025-02-04 20:26:06 [RateCDR] => 1 ) [2025-02-04 20:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:26:06' and `end` < '2025-02-04 20:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:26:19] Production.INFO: count ==1718 [2025-02-04 20:26:20] Production.ERROR: pbx CDR StartTime 2025-02-04 17:26:06 - End Time 2025-02-04 20:26:06 [2025-02-04 20:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402793', 'tblTempUsageDetail_20' ) start [2025-02-04 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402793', 'tblTempUsageDetail_20' ) end [2025-02-04 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402793', 'tblTempVendorCDR_20' ) start [2025-02-04 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402793', 'tblTempVendorCDR_20' ) end [2025-02-04 20:26:20] Production.INFO: ProcessCDR(1,14402793,1,1,2) [2025-02-04 20:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402793', 'tblTempUsageDetail_20' ) start [2025-02-04 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402793', 'tblTempUsageDetail_20' ) end [2025-02-04 20:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:26:23] Production.INFO: ==29500== Releasing lock... [2025-02-04 20:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:26:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-04 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:27:05 [end_date_ymd] => 2025-02-04 20:27:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 17:27:05' and `end` < '2025-02-04 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-02-04 20:27:18] Production.INFO: count ==1708 [2025-02-04 20:27:19] Production.ERROR: pbx CDR StartTime 2025-02-04 17:27:05 - End Time 2025-02-04 20:27:05 [2025-02-04 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402798', 'tblTempUsageDetail_20' ) start [2025-02-04 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402798', 'tblTempUsageDetail_20' ) end [2025-02-04 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402798', 'tblTempVendorCDR_20' ) start [2025-02-04 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402798', 'tblTempVendorCDR_20' ) end [2025-02-04 20:27:19] Production.INFO: ProcessCDR(1,14402798,1,1,2) [2025-02-04 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402798', 'tblTempUsageDetail_20' ) start [2025-02-04 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402798', 'tblTempUsageDetail_20' ) end [2025-02-04 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:27:22] Production.INFO: ==29572== Releasing lock... [2025-02-04 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:27:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-04 20:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:28:05 [end_date_ymd] => 2025-02-04 20:28:05 [RateCDR] => 1 ) [2025-02-04 20:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:28:05' and `end` < '2025-02-04 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:28:19] Production.INFO: count ==1695 [2025-02-04 20:28:19] Production.ERROR: pbx CDR StartTime 2025-02-04 17:28:05 - End Time 2025-02-04 20:28:05 [2025-02-04 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402803', 'tblTempUsageDetail_20' ) start [2025-02-04 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402803', 'tblTempUsageDetail_20' ) end [2025-02-04 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402803', 'tblTempVendorCDR_20' ) start [2025-02-04 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402803', 'tblTempVendorCDR_20' ) end [2025-02-04 20:28:19] Production.INFO: ProcessCDR(1,14402803,1,1,2) [2025-02-04 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402803', 'tblTempUsageDetail_20' ) start [2025-02-04 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402803', 'tblTempUsageDetail_20' ) end [2025-02-04 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:28:22] Production.INFO: ==29649== Releasing lock... [2025-02-04 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:28:22] Production.INFO: 41 MB #Memory Used# [2025-02-04 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:29:05 [end_date_ymd] => 2025-02-04 20:29:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 17:29:05' and `end` < '2025-02-04 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-02-04 20:29:18] Production.INFO: count ==1694 [2025-02-04 20:29:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:29:05 - End Time 2025-02-04 20:29:05 [2025-02-04 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402808', 'tblTempUsageDetail_20' ) start [2025-02-04 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402808', 'tblTempUsageDetail_20' ) end [2025-02-04 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402808', 'tblTempVendorCDR_20' ) start [2025-02-04 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402808', 'tblTempVendorCDR_20' ) end [2025-02-04 20:29:18] Production.INFO: ProcessCDR(1,14402808,1,1,2) [2025-02-04 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402808', 'tblTempUsageDetail_20' ) start [2025-02-04 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402808', 'tblTempUsageDetail_20' ) end [2025-02-04 20:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:29:21] Production.INFO: ==29723== Releasing lock... [2025-02-04 20:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:29:21] Production.INFO: 41 MB #Memory Used# [2025-02-04 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:30:06 [end_date_ymd] => 2025-02-04 20:30:06 [RateCDR] => 1 ) [2025-02-04 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:30:06' and `end` < '2025-02-04 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:30:19] Production.INFO: count ==1691 [2025-02-04 20:30:19] Production.ERROR: pbx CDR StartTime 2025-02-04 17:30:06 - End Time 2025-02-04 20:30:06 [2025-02-04 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402813', 'tblTempUsageDetail_20' ) start [2025-02-04 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402813', 'tblTempUsageDetail_20' ) end [2025-02-04 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402813', 'tblTempVendorCDR_20' ) start [2025-02-04 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402813', 'tblTempVendorCDR_20' ) end [2025-02-04 20:30:19] Production.INFO: ProcessCDR(1,14402813,1,1,2) [2025-02-04 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402813', 'tblTempUsageDetail_20' ) start [2025-02-04 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402813', 'tblTempUsageDetail_20' ) end [2025-02-04 20:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:30:22] Production.INFO: ==29805== Releasing lock... [2025-02-04 20:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:30:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-04 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:31:05 [end_date_ymd] => 2025-02-04 20:31:05 [RateCDR] => 1 ) [2025-02-04 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:31:05' and `end` < '2025-02-04 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:31:18] Production.INFO: count ==1659 [2025-02-04 20:31:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:31:05 - End Time 2025-02-04 20:31:05 [2025-02-04 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402819', 'tblTempUsageDetail_20' ) start [2025-02-04 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402819', 'tblTempUsageDetail_20' ) end [2025-02-04 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402819', 'tblTempVendorCDR_20' ) start [2025-02-04 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402819', 'tblTempVendorCDR_20' ) end [2025-02-04 20:31:18] Production.INFO: ProcessCDR(1,14402819,1,1,2) [2025-02-04 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402819', 'tblTempUsageDetail_20' ) start [2025-02-04 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402819', 'tblTempUsageDetail_20' ) end [2025-02-04 20:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:31:21] Production.INFO: ==29881== Releasing lock... [2025-02-04 20:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:31:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-04 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:32:05 [end_date_ymd] => 2025-02-04 20:32:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 17:32:05' and `end` < '2025-02-04 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:32:18] Production.INFO: count ==1658 [2025-02-04 20:32:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:32:05 - End Time 2025-02-04 20:32:05 [2025-02-04 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402824', 'tblTempUsageDetail_20' ) start [2025-02-04 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402824', 'tblTempUsageDetail_20' ) end [2025-02-04 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402824', 'tblTempVendorCDR_20' ) start [2025-02-04 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402824', 'tblTempVendorCDR_20' ) end [2025-02-04 20:32:18] Production.INFO: ProcessCDR(1,14402824,1,1,2) [2025-02-04 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402824', 'tblTempUsageDetail_20' ) start [2025-02-04 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402824', 'tblTempUsageDetail_20' ) end [2025-02-04 20:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:32:21] Production.INFO: ==29953== Releasing lock... [2025-02-04 20:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:32:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-04 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:33:05 [end_date_ymd] => 2025-02-04 20:33:05 [RateCDR] => 1 ) [2025-02-04 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:33:05' and `end` < '2025-02-04 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:33:19] Production.INFO: count ==1654 [2025-02-04 20:33:19] Production.ERROR: pbx CDR StartTime 2025-02-04 17:33:05 - End Time 2025-02-04 20:33:05 [2025-02-04 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402829', 'tblTempUsageDetail_20' ) start [2025-02-04 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402829', 'tblTempUsageDetail_20' ) end [2025-02-04 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402829', 'tblTempVendorCDR_20' ) start [2025-02-04 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402829', 'tblTempVendorCDR_20' ) end [2025-02-04 20:33:19] Production.INFO: ProcessCDR(1,14402829,1,1,2) [2025-02-04 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402829', 'tblTempUsageDetail_20' ) start [2025-02-04 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402829', 'tblTempUsageDetail_20' ) end [2025-02-04 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:33:22] Production.INFO: ==30025== Releasing lock... [2025-02-04 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:33:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-04 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:34:05 [end_date_ymd] => 2025-02-04 20:34:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 17:34:05' and `end` < '2025-02-04 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-02-04 20:34:18] Production.INFO: count ==1638 [2025-02-04 20:34:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:34:05 - End Time 2025-02-04 20:34:05 [2025-02-04 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402834', 'tblTempUsageDetail_20' ) start [2025-02-04 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402834', 'tblTempUsageDetail_20' ) end [2025-02-04 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402834', 'tblTempVendorCDR_20' ) start [2025-02-04 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402834', 'tblTempVendorCDR_20' ) end [2025-02-04 20:34:18] Production.INFO: ProcessCDR(1,14402834,1,1,2) [2025-02-04 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402834', 'tblTempUsageDetail_20' ) start [2025-02-04 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402834', 'tblTempUsageDetail_20' ) end [2025-02-04 20:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:34:21] Production.INFO: ==30105== Releasing lock... [2025-02-04 20:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:34:21] Production.INFO: 40 MB #Memory Used# [2025-02-04 20:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:35:06 [end_date_ymd] => 2025-02-04 20:35:06 [RateCDR] => 1 ) [2025-02-04 20:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:35:06' and `end` < '2025-02-04 20:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:35:19] Production.INFO: count ==1633 [2025-02-04 20:35:19] Production.ERROR: pbx CDR StartTime 2025-02-04 17:35:06 - End Time 2025-02-04 20:35:06 [2025-02-04 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402839', 'tblTempUsageDetail_20' ) start [2025-02-04 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402839', 'tblTempUsageDetail_20' ) end [2025-02-04 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402839', 'tblTempVendorCDR_20' ) start [2025-02-04 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402839', 'tblTempVendorCDR_20' ) end [2025-02-04 20:35:19] Production.INFO: ProcessCDR(1,14402839,1,1,2) [2025-02-04 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402839', 'tblTempUsageDetail_20' ) start [2025-02-04 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402839', 'tblTempUsageDetail_20' ) end [2025-02-04 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:35:22] Production.INFO: ==30180== Releasing lock... [2025-02-04 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:35:22] Production.INFO: 40 MB #Memory Used# [2025-02-04 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:36:05 [end_date_ymd] => 2025-02-04 20:36:05 [RateCDR] => 1 ) [2025-02-04 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:36:05' and `end` < '2025-02-04 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:36:18] Production.INFO: count ==1635 [2025-02-04 20:36:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:36:05 - End Time 2025-02-04 20:36:05 [2025-02-04 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402844', 'tblTempUsageDetail_20' ) start [2025-02-04 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402844', 'tblTempUsageDetail_20' ) end [2025-02-04 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402844', 'tblTempVendorCDR_20' ) start [2025-02-04 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402844', 'tblTempVendorCDR_20' ) end [2025-02-04 20:36:18] Production.INFO: ProcessCDR(1,14402844,1,1,2) [2025-02-04 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402844', 'tblTempUsageDetail_20' ) start [2025-02-04 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402844', 'tblTempUsageDetail_20' ) end [2025-02-04 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:36:22] Production.INFO: ==30255== Releasing lock... [2025-02-04 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:36:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-04 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:37:05 [end_date_ymd] => 2025-02-04 20:37:05 [RateCDR] => 1 ) [2025-02-04 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:37:05' and `end` < '2025-02-04 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:37:18] Production.INFO: count ==1631 [2025-02-04 20:37:19] Production.ERROR: pbx CDR StartTime 2025-02-04 17:37:05 - End Time 2025-02-04 20:37:05 [2025-02-04 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402849', 'tblTempUsageDetail_20' ) start [2025-02-04 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402849', 'tblTempUsageDetail_20' ) end [2025-02-04 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402849', 'tblTempVendorCDR_20' ) start [2025-02-04 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402849', 'tblTempVendorCDR_20' ) end [2025-02-04 20:37:19] Production.INFO: ProcessCDR(1,14402849,1,1,2) [2025-02-04 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402849', 'tblTempUsageDetail_20' ) start [2025-02-04 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402849', 'tblTempUsageDetail_20' ) end [2025-02-04 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:37:23] Production.INFO: ==30327== Releasing lock... [2025-02-04 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:37:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-04 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:38:05 [end_date_ymd] => 2025-02-04 20:38:05 [RateCDR] => 1 ) [2025-02-04 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:38:05' and `end` < '2025-02-04 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:38:18] Production.INFO: count ==1644 [2025-02-04 20:38:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:38:05 - End Time 2025-02-04 20:38:05 [2025-02-04 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402854', 'tblTempUsageDetail_20' ) start [2025-02-04 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402854', 'tblTempUsageDetail_20' ) end [2025-02-04 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402854', 'tblTempVendorCDR_20' ) start [2025-02-04 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402854', 'tblTempVendorCDR_20' ) end [2025-02-04 20:38:18] Production.INFO: ProcessCDR(1,14402854,1,1,2) [2025-02-04 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402854', 'tblTempUsageDetail_20' ) start [2025-02-04 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402854', 'tblTempUsageDetail_20' ) end [2025-02-04 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:38:22] Production.INFO: ==30440== Releasing lock... [2025-02-04 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:38:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-04 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:39:05 [end_date_ymd] => 2025-02-04 20:39:05 [RateCDR] => 1 ) [2025-02-04 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:39:05' and `end` < '2025-02-04 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:39:19] Production.INFO: count ==1647 [2025-02-04 20:39:19] Production.ERROR: pbx CDR StartTime 2025-02-04 17:39:05 - End Time 2025-02-04 20:39:05 [2025-02-04 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402859', 'tblTempUsageDetail_20' ) start [2025-02-04 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402859', 'tblTempUsageDetail_20' ) end [2025-02-04 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402859', 'tblTempVendorCDR_20' ) start [2025-02-04 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402859', 'tblTempVendorCDR_20' ) end [2025-02-04 20:39:19] Production.INFO: ProcessCDR(1,14402859,1,1,2) [2025-02-04 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402859', 'tblTempUsageDetail_20' ) start [2025-02-04 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402859', 'tblTempUsageDetail_20' ) end [2025-02-04 20:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:39:24] Production.INFO: ==30511== Releasing lock... [2025-02-04 20:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:39:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-04 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:40:06 [end_date_ymd] => 2025-02-04 20:40:06 [RateCDR] => 1 ) [2025-02-04 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-02-04 17:40:06' and `end` < '2025-02-04 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-02-04 20:40:19] Production.INFO: count ==1645 [2025-02-04 20:40:19] Production.ERROR: pbx CDR StartTime 2025-02-04 17:40:06 - End Time 2025-02-04 20:40:06 [2025-02-04 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402864', 'tblTempUsageDetail_20' ) start [2025-02-04 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402864', 'tblTempUsageDetail_20' ) end [2025-02-04 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402864', 'tblTempVendorCDR_20' ) start [2025-02-04 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402864', 'tblTempVendorCDR_20' ) end [2025-02-04 20:40:19] Production.INFO: ProcessCDR(1,14402864,1,1,2) [2025-02-04 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402864', 'tblTempUsageDetail_20' ) start [2025-02-04 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402864', 'tblTempUsageDetail_20' ) end [2025-02-04 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:40:23] Production.INFO: ==30584== Releasing lock... [2025-02-04 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:40:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-04 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:41:05 [end_date_ymd] => 2025-02-04 20:41:05 [RateCDR] => 1 ) [2025-02-04 20:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:41:05' and `end` < '2025-02-04 20:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:41:18] Production.INFO: count ==1605 [2025-02-04 20:41:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:41:05 - End Time 2025-02-04 20:41:05 [2025-02-04 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402870', 'tblTempUsageDetail_20' ) start [2025-02-04 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402870', 'tblTempUsageDetail_20' ) end [2025-02-04 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402870', 'tblTempVendorCDR_20' ) start [2025-02-04 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402870', 'tblTempVendorCDR_20' ) end [2025-02-04 20:41:18] Production.INFO: ProcessCDR(1,14402870,1,1,2) [2025-02-04 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402870', 'tblTempUsageDetail_20' ) start [2025-02-04 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402870', 'tblTempUsageDetail_20' ) end [2025-02-04 20:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:41:21] Production.INFO: ==30659== Releasing lock... [2025-02-04 20:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:41:21] Production.INFO: 40 MB #Memory Used# [2025-02-04 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:42:05 [end_date_ymd] => 2025-02-04 20:42:05 [RateCDR] => 1 ) [2025-02-04 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:42:05' and `end` < '2025-02-04 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:42:18] Production.INFO: count ==1602 [2025-02-04 20:42:19] Production.ERROR: pbx CDR StartTime 2025-02-04 17:42:05 - End Time 2025-02-04 20:42:05 [2025-02-04 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402875', 'tblTempUsageDetail_20' ) start [2025-02-04 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402875', 'tblTempUsageDetail_20' ) end [2025-02-04 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402875', 'tblTempVendorCDR_20' ) start [2025-02-04 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402875', 'tblTempVendorCDR_20' ) end [2025-02-04 20:42:19] Production.INFO: ProcessCDR(1,14402875,1,1,2) [2025-02-04 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402875', 'tblTempUsageDetail_20' ) start [2025-02-04 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402875', 'tblTempUsageDetail_20' ) end [2025-02-04 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:42:22] Production.INFO: ==30732== Releasing lock... [2025-02-04 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:42:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-04 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:43:05 [end_date_ymd] => 2025-02-04 20:43:05 [RateCDR] => 1 ) [2025-02-04 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:43:05' and `end` < '2025-02-04 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:43:18] Production.INFO: count ==1586 [2025-02-04 20:43:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:43:05 - End Time 2025-02-04 20:43:05 [2025-02-04 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402880', 'tblTempUsageDetail_20' ) start [2025-02-04 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402880', 'tblTempUsageDetail_20' ) end [2025-02-04 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402880', 'tblTempVendorCDR_20' ) start [2025-02-04 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402880', 'tblTempVendorCDR_20' ) end [2025-02-04 20:43:18] Production.INFO: ProcessCDR(1,14402880,1,1,2) [2025-02-04 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402880', 'tblTempUsageDetail_20' ) start [2025-02-04 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402880', 'tblTempUsageDetail_20' ) end [2025-02-04 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:43:22] Production.INFO: ==30802== Releasing lock... [2025-02-04 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:43:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-04 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:44:05 [end_date_ymd] => 2025-02-04 20:44:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 17:44:05' and `end` < '2025-02-04 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-02-04 20:44:19] Production.INFO: count ==1581 [2025-02-04 20:44:20] Production.ERROR: pbx CDR StartTime 2025-02-04 17:44:05 - End Time 2025-02-04 20:44:05 [2025-02-04 20:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402885', 'tblTempUsageDetail_20' ) start [2025-02-04 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402885', 'tblTempUsageDetail_20' ) end [2025-02-04 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402885', 'tblTempVendorCDR_20' ) start [2025-02-04 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402885', 'tblTempVendorCDR_20' ) end [2025-02-04 20:44:20] Production.INFO: ProcessCDR(1,14402885,1,1,2) [2025-02-04 20:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402885', 'tblTempUsageDetail_20' ) start [2025-02-04 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402885', 'tblTempUsageDetail_20' ) end [2025-02-04 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:44:23] Production.INFO: ==30879== Releasing lock... [2025-02-04 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:44:23] Production.INFO: 40 MB #Memory Used# [2025-02-04 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:45:05 [end_date_ymd] => 2025-02-04 20:45:05 [RateCDR] => 1 ) [2025-02-04 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:45:05' and `end` < '2025-02-04 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:45:18] Production.INFO: count ==1580 [2025-02-04 20:45:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:45:05 - End Time 2025-02-04 20:45:05 [2025-02-04 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402890', 'tblTempUsageDetail_20' ) start [2025-02-04 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402890', 'tblTempUsageDetail_20' ) end [2025-02-04 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402890', 'tblTempVendorCDR_20' ) start [2025-02-04 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402890', 'tblTempVendorCDR_20' ) end [2025-02-04 20:45:18] Production.INFO: ProcessCDR(1,14402890,1,1,2) [2025-02-04 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402890', 'tblTempUsageDetail_20' ) start [2025-02-04 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402890', 'tblTempUsageDetail_20' ) end [2025-02-04 20:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:45:22] Production.INFO: ==30951== Releasing lock... [2025-02-04 20:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:45:22] Production.INFO: 40 MB #Memory Used# [2025-02-04 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:46:05 [end_date_ymd] => 2025-02-04 20:46:05 [RateCDR] => 1 ) [2025-02-04 20:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:46:05' and `end` < '2025-02-04 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:46:18] Production.INFO: count ==1579 [2025-02-04 20:46:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:46:05 - End Time 2025-02-04 20:46:05 [2025-02-04 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402895', 'tblTempUsageDetail_20' ) start [2025-02-04 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402895', 'tblTempUsageDetail_20' ) end [2025-02-04 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402895', 'tblTempVendorCDR_20' ) start [2025-02-04 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402895', 'tblTempVendorCDR_20' ) end [2025-02-04 20:46:18] Production.INFO: ProcessCDR(1,14402895,1,1,2) [2025-02-04 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402895', 'tblTempUsageDetail_20' ) start [2025-02-04 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402895', 'tblTempUsageDetail_20' ) end [2025-02-04 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:46:22] Production.INFO: ==31024== Releasing lock... [2025-02-04 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:46:22] Production.INFO: 40 MB #Memory Used# [2025-02-04 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:47:05 [end_date_ymd] => 2025-02-04 20:47:05 [RateCDR] => 1 ) [2025-02-04 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:47:05' and `end` < '2025-02-04 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:47:18] Production.INFO: count ==1561 [2025-02-04 20:47:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:47:05 - End Time 2025-02-04 20:47:05 [2025-02-04 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402900', 'tblTempUsageDetail_20' ) start [2025-02-04 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402900', 'tblTempUsageDetail_20' ) end [2025-02-04 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402900', 'tblTempVendorCDR_20' ) start [2025-02-04 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402900', 'tblTempVendorCDR_20' ) end [2025-02-04 20:47:18] Production.INFO: ProcessCDR(1,14402900,1,1,2) [2025-02-04 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402900', 'tblTempUsageDetail_20' ) start [2025-02-04 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402900', 'tblTempUsageDetail_20' ) end [2025-02-04 20:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:47:21] Production.INFO: ==31102== Releasing lock... [2025-02-04 20:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:47:21] Production.INFO: 40 MB #Memory Used# [2025-02-04 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:48:05 [end_date_ymd] => 2025-02-04 20:48:05 [RateCDR] => 1 ) [2025-02-04 20:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:48:05' and `end` < '2025-02-04 20:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:48:19] Production.INFO: count ==1558 [2025-02-04 20:48:19] Production.ERROR: pbx CDR StartTime 2025-02-04 17:48:05 - End Time 2025-02-04 20:48:05 [2025-02-04 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402905', 'tblTempUsageDetail_20' ) start [2025-02-04 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402905', 'tblTempUsageDetail_20' ) end [2025-02-04 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402905', 'tblTempVendorCDR_20' ) start [2025-02-04 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402905', 'tblTempVendorCDR_20' ) end [2025-02-04 20:48:19] Production.INFO: ProcessCDR(1,14402905,1,1,2) [2025-02-04 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402905', 'tblTempUsageDetail_20' ) start [2025-02-04 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402905', 'tblTempUsageDetail_20' ) end [2025-02-04 20:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:48:23] Production.INFO: ==31178== Releasing lock... [2025-02-04 20:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:48:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-04 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:49:05 [end_date_ymd] => 2025-02-04 20:49:05 [RateCDR] => 1 ) [2025-02-04 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:49:05' and `end` < '2025-02-04 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:49:17] Production.INFO: count ==1550 [2025-02-04 20:49:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:49:05 - End Time 2025-02-04 20:49:05 [2025-02-04 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402910', 'tblTempUsageDetail_20' ) start [2025-02-04 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402910', 'tblTempUsageDetail_20' ) end [2025-02-04 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402910', 'tblTempVendorCDR_20' ) start [2025-02-04 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402910', 'tblTempVendorCDR_20' ) end [2025-02-04 20:49:18] Production.INFO: ProcessCDR(1,14402910,1,1,2) [2025-02-04 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402910', 'tblTempUsageDetail_20' ) start [2025-02-04 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402910', 'tblTempUsageDetail_20' ) end [2025-02-04 20:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:49:21] Production.INFO: ==31255== Releasing lock... [2025-02-04 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:49:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-04 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:50:06 [end_date_ymd] => 2025-02-04 20:50:06 [RateCDR] => 1 ) [2025-02-04 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:50:06' and `end` < '2025-02-04 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:50:19] Production.INFO: count ==1537 [2025-02-04 20:50:20] Production.ERROR: pbx CDR StartTime 2025-02-04 17:50:06 - End Time 2025-02-04 20:50:06 [2025-02-04 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402915', 'tblTempUsageDetail_20' ) start [2025-02-04 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402915', 'tblTempUsageDetail_20' ) end [2025-02-04 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402915', 'tblTempVendorCDR_20' ) start [2025-02-04 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402915', 'tblTempVendorCDR_20' ) end [2025-02-04 20:50:20] Production.INFO: ProcessCDR(1,14402915,1,1,2) [2025-02-04 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402915', 'tblTempUsageDetail_20' ) start [2025-02-04 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402915', 'tblTempUsageDetail_20' ) end [2025-02-04 20:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:50:24] Production.INFO: ==31327== Releasing lock... [2025-02-04 20:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:50:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-04 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:51:05 [end_date_ymd] => 2025-02-04 20:51:05 [RateCDR] => 1 ) [2025-02-04 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:51:05' and `end` < '2025-02-04 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:51:19] Production.INFO: count ==1484 [2025-02-04 20:51:19] Production.ERROR: pbx CDR StartTime 2025-02-04 17:51:05 - End Time 2025-02-04 20:51:05 [2025-02-04 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402921', 'tblTempUsageDetail_20' ) start [2025-02-04 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402921', 'tblTempUsageDetail_20' ) end [2025-02-04 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402921', 'tblTempVendorCDR_20' ) start [2025-02-04 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402921', 'tblTempVendorCDR_20' ) end [2025-02-04 20:51:19] Production.INFO: ProcessCDR(1,14402921,1,1,2) [2025-02-04 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402921', 'tblTempUsageDetail_20' ) start [2025-02-04 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402921', 'tblTempUsageDetail_20' ) end [2025-02-04 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:51:22] Production.INFO: ==31407== Releasing lock... [2025-02-04 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:51:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-04 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:52:05 [end_date_ymd] => 2025-02-04 20:52:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 17:52:05' and `end` < '2025-02-04 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-02-04 20:52:18] Production.INFO: count ==1476 [2025-02-04 20:52:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:52:05 - End Time 2025-02-04 20:52:05 [2025-02-04 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402926', 'tblTempUsageDetail_20' ) start [2025-02-04 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402926', 'tblTempUsageDetail_20' ) end [2025-02-04 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402926', 'tblTempVendorCDR_20' ) start [2025-02-04 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402926', 'tblTempVendorCDR_20' ) end [2025-02-04 20:52:18] Production.INFO: ProcessCDR(1,14402926,1,1,2) [2025-02-04 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402926', 'tblTempUsageDetail_20' ) start [2025-02-04 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402926', 'tblTempUsageDetail_20' ) end [2025-02-04 20:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:52:21] Production.INFO: ==31482== Releasing lock... [2025-02-04 20:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:52:21] Production.INFO: 39.25 MB #Memory Used# [2025-02-04 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:53:05 [end_date_ymd] => 2025-02-04 20:53:05 [RateCDR] => 1 ) [2025-02-04 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:53:05' and `end` < '2025-02-04 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:53:18] Production.INFO: count ==1472 [2025-02-04 20:53:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:53:05 - End Time 2025-02-04 20:53:05 [2025-02-04 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402931', 'tblTempUsageDetail_20' ) start [2025-02-04 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402931', 'tblTempUsageDetail_20' ) end [2025-02-04 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402931', 'tblTempVendorCDR_20' ) start [2025-02-04 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402931', 'tblTempVendorCDR_20' ) end [2025-02-04 20:53:18] Production.INFO: ProcessCDR(1,14402931,1,1,2) [2025-02-04 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402931', 'tblTempUsageDetail_20' ) start [2025-02-04 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402931', 'tblTempUsageDetail_20' ) end [2025-02-04 20:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:53:21] Production.INFO: ==31599== Releasing lock... [2025-02-04 20:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:53:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-04 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:54:05 [end_date_ymd] => 2025-02-04 20:54:05 [RateCDR] => 1 ) [2025-02-04 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:54:05' and `end` < '2025-02-04 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:54:19] Production.INFO: count ==1471 [2025-02-04 20:54:19] Production.ERROR: pbx CDR StartTime 2025-02-04 17:54:05 - End Time 2025-02-04 20:54:05 [2025-02-04 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402936', 'tblTempUsageDetail_20' ) start [2025-02-04 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402936', 'tblTempUsageDetail_20' ) end [2025-02-04 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402936', 'tblTempVendorCDR_20' ) start [2025-02-04 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402936', 'tblTempVendorCDR_20' ) end [2025-02-04 20:54:19] Production.INFO: ProcessCDR(1,14402936,1,1,2) [2025-02-04 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402936', 'tblTempUsageDetail_20' ) start [2025-02-04 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402936', 'tblTempUsageDetail_20' ) end [2025-02-04 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:54:22] Production.INFO: ==31674== Releasing lock... [2025-02-04 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:54:22] Production.INFO: 39 MB #Memory Used# [2025-02-04 20:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:55:04 [end_date_ymd] => 2025-02-04 20:55:04 [RateCDR] => 1 ) [2025-02-04 20:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:55:04' and `end` < '2025-02-04 20:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:55:17] Production.INFO: count ==1467 [2025-02-04 20:55:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:55:04 - End Time 2025-02-04 20:55:04 [2025-02-04 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402941', 'tblTempUsageDetail_20' ) start [2025-02-04 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402941', 'tblTempUsageDetail_20' ) end [2025-02-04 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402941', 'tblTempVendorCDR_20' ) start [2025-02-04 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402941', 'tblTempVendorCDR_20' ) end [2025-02-04 20:55:18] Production.INFO: ProcessCDR(1,14402941,1,1,2) [2025-02-04 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402941', 'tblTempUsageDetail_20' ) start [2025-02-04 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402941', 'tblTempUsageDetail_20' ) end [2025-02-04 20:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:55:21] Production.INFO: ==31757== Releasing lock... [2025-02-04 20:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:55:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-04 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:56:05 [end_date_ymd] => 2025-02-04 20:56:05 [RateCDR] => 1 ) [2025-02-04 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:56:05' and `end` < '2025-02-04 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:56:18] Production.INFO: count ==1462 [2025-02-04 20:56:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:56:05 - End Time 2025-02-04 20:56:05 [2025-02-04 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402946', 'tblTempUsageDetail_20' ) start [2025-02-04 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402946', 'tblTempUsageDetail_20' ) end [2025-02-04 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402946', 'tblTempVendorCDR_20' ) start [2025-02-04 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402946', 'tblTempVendorCDR_20' ) end [2025-02-04 20:56:18] Production.INFO: ProcessCDR(1,14402946,1,1,2) [2025-02-04 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402946', 'tblTempUsageDetail_20' ) start [2025-02-04 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402946', 'tblTempUsageDetail_20' ) end [2025-02-04 20:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:56:21] Production.INFO: ==31847== Releasing lock... [2025-02-04 20:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:56:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-04 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:57:05 [end_date_ymd] => 2025-02-04 20:57:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 17:57:05' and `end` < '2025-02-04 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-02-04 20:57:19] Production.INFO: count ==1462 [2025-02-04 20:57:19] Production.ERROR: pbx CDR StartTime 2025-02-04 17:57:05 - End Time 2025-02-04 20:57:05 [2025-02-04 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402951', 'tblTempUsageDetail_20' ) start [2025-02-04 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402951', 'tblTempUsageDetail_20' ) end [2025-02-04 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402951', 'tblTempVendorCDR_20' ) start [2025-02-04 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402951', 'tblTempVendorCDR_20' ) end [2025-02-04 20:57:19] Production.INFO: ProcessCDR(1,14402951,1,1,2) [2025-02-04 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402951', 'tblTempUsageDetail_20' ) start [2025-02-04 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402951', 'tblTempUsageDetail_20' ) end [2025-02-04 20:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:57:23] Production.INFO: ==31945== Releasing lock... [2025-02-04 20:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:57:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-04 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:58:05 [end_date_ymd] => 2025-02-04 20:58:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 17:58:05' and `end` < '2025-02-04 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-02-04 20:58:18] Production.INFO: count ==1461 [2025-02-04 20:58:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:58:05 - End Time 2025-02-04 20:58:05 [2025-02-04 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402956', 'tblTempUsageDetail_20' ) start [2025-02-04 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402956', 'tblTempUsageDetail_20' ) end [2025-02-04 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402956', 'tblTempVendorCDR_20' ) start [2025-02-04 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402956', 'tblTempVendorCDR_20' ) end [2025-02-04 20:58:18] Production.INFO: ProcessCDR(1,14402956,1,1,2) [2025-02-04 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402956', 'tblTempUsageDetail_20' ) start [2025-02-04 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402956', 'tblTempUsageDetail_20' ) end [2025-02-04 20:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:58:21] Production.INFO: ==32041== Releasing lock... [2025-02-04 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:58:21] Production.INFO: 39 MB #Memory Used# [2025-02-04 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 17:59:05 [end_date_ymd] => 2025-02-04 20:59:05 [RateCDR] => 1 ) [2025-02-04 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 17:59:05' and `end` < '2025-02-04 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 20:59:18] Production.INFO: count ==1456 [2025-02-04 20:59:18] Production.ERROR: pbx CDR StartTime 2025-02-04 17:59:05 - End Time 2025-02-04 20:59:05 [2025-02-04 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402961', 'tblTempUsageDetail_20' ) start [2025-02-04 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402961', 'tblTempUsageDetail_20' ) end [2025-02-04 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402961', 'tblTempVendorCDR_20' ) start [2025-02-04 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402961', 'tblTempVendorCDR_20' ) end [2025-02-04 20:59:18] Production.INFO: ProcessCDR(1,14402961,1,1,2) [2025-02-04 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402961', 'tblTempUsageDetail_20' ) start [2025-02-04 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402961', 'tblTempUsageDetail_20' ) end [2025-02-04 20:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 20:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 20:59:21] Production.INFO: ==32134== Releasing lock... [2025-02-04 20:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 20:59:21] Production.INFO: 39 MB #Memory Used# [2025-02-04 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:00:06 [end_date_ymd] => 2025-02-04 21:00:06 [RateCDR] => 1 ) [2025-02-04 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-02-04 18:00:06' and `end` < '2025-02-04 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-02-04 21:00:19] Production.INFO: count ==1455 [2025-02-04 21:00:19] Production.ERROR: pbx CDR StartTime 2025-02-04 18:00:06 - End Time 2025-02-04 21:00:06 [2025-02-04 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402967', 'tblTempUsageDetail_20' ) start [2025-02-04 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402967', 'tblTempUsageDetail_20' ) end [2025-02-04 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402967', 'tblTempVendorCDR_20' ) start [2025-02-04 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402967', 'tblTempVendorCDR_20' ) end [2025-02-04 21:00:19] Production.INFO: ProcessCDR(1,14402967,1,1,2) [2025-02-04 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402967', 'tblTempUsageDetail_20' ) start [2025-02-04 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402967', 'tblTempUsageDetail_20' ) end [2025-02-04 21:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:00:22] Production.INFO: ==32230== Releasing lock... [2025-02-04 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:00:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-04 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:01:05 [end_date_ymd] => 2025-02-04 21:01:05 [RateCDR] => 1 ) [2025-02-04 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:01:05' and `end` < '2025-02-04 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:01:18] Production.INFO: count ==1406 [2025-02-04 21:01:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:01:05 - End Time 2025-02-04 21:01:05 [2025-02-04 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402972', 'tblTempUsageDetail_20' ) start [2025-02-04 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402972', 'tblTempUsageDetail_20' ) end [2025-02-04 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402972', 'tblTempVendorCDR_20' ) start [2025-02-04 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402972', 'tblTempVendorCDR_20' ) end [2025-02-04 21:01:18] Production.INFO: ProcessCDR(1,14402972,1,1,2) [2025-02-04 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402972', 'tblTempUsageDetail_20' ) start [2025-02-04 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402972', 'tblTempUsageDetail_20' ) end [2025-02-04 21:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:01:21] Production.INFO: ==32338== Releasing lock... [2025-02-04 21:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:01:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-04 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:02:05 [end_date_ymd] => 2025-02-04 21:02:05 [RateCDR] => 1 ) [2025-02-04 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:02:05' and `end` < '2025-02-04 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:02:17] Production.INFO: count ==1402 [2025-02-04 21:02:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:02:05 - End Time 2025-02-04 21:02:05 [2025-02-04 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402977', 'tblTempUsageDetail_20' ) start [2025-02-04 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402977', 'tblTempUsageDetail_20' ) end [2025-02-04 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402977', 'tblTempVendorCDR_20' ) start [2025-02-04 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402977', 'tblTempVendorCDR_20' ) end [2025-02-04 21:02:18] Production.INFO: ProcessCDR(1,14402977,1,1,2) [2025-02-04 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402977', 'tblTempUsageDetail_20' ) start [2025-02-04 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402977', 'tblTempUsageDetail_20' ) end [2025-02-04 21:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:02:21] Production.INFO: ==32412== Releasing lock... [2025-02-04 21:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:02:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-04 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:03:05 [end_date_ymd] => 2025-02-04 21:03:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 18:03:05' and `end` < '2025-02-04 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-02-04 21:03:18] Production.INFO: count ==1399 [2025-02-04 21:03:19] Production.ERROR: pbx CDR StartTime 2025-02-04 18:03:05 - End Time 2025-02-04 21:03:05 [2025-02-04 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402982', 'tblTempUsageDetail_20' ) start [2025-02-04 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402982', 'tblTempUsageDetail_20' ) end [2025-02-04 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402982', 'tblTempVendorCDR_20' ) start [2025-02-04 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402982', 'tblTempVendorCDR_20' ) end [2025-02-04 21:03:19] Production.INFO: ProcessCDR(1,14402982,1,1,2) [2025-02-04 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402982', 'tblTempUsageDetail_20' ) start [2025-02-04 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402982', 'tblTempUsageDetail_20' ) end [2025-02-04 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:03:22] Production.INFO: ==32496== Releasing lock... [2025-02-04 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:03:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-04 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:04:05 [end_date_ymd] => 2025-02-04 21:04:05 [RateCDR] => 1 ) [2025-02-04 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:04:05' and `end` < '2025-02-04 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:04:18] Production.INFO: count ==1399 [2025-02-04 21:04:19] Production.ERROR: pbx CDR StartTime 2025-02-04 18:04:05 - End Time 2025-02-04 21:04:05 [2025-02-04 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402987', 'tblTempUsageDetail_20' ) start [2025-02-04 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402987', 'tblTempUsageDetail_20' ) end [2025-02-04 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402987', 'tblTempVendorCDR_20' ) start [2025-02-04 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402987', 'tblTempVendorCDR_20' ) end [2025-02-04 21:04:19] Production.INFO: ProcessCDR(1,14402987,1,1,2) [2025-02-04 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402987', 'tblTempUsageDetail_20' ) start [2025-02-04 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402987', 'tblTempUsageDetail_20' ) end [2025-02-04 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:04:22] Production.INFO: ==32574== Releasing lock... [2025-02-04 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:04:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-04 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:05:05 [end_date_ymd] => 2025-02-04 21:05:05 [RateCDR] => 1 ) [2025-02-04 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:05:05' and `end` < '2025-02-04 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:05:18] Production.INFO: count ==1387 [2025-02-04 21:05:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:05:05 - End Time 2025-02-04 21:05:05 [2025-02-04 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402992', 'tblTempUsageDetail_20' ) start [2025-02-04 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402992', 'tblTempUsageDetail_20' ) end [2025-02-04 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402992', 'tblTempVendorCDR_20' ) start [2025-02-04 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402992', 'tblTempVendorCDR_20' ) end [2025-02-04 21:05:18] Production.INFO: ProcessCDR(1,14402992,1,1,2) [2025-02-04 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402992', 'tblTempUsageDetail_20' ) start [2025-02-04 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402992', 'tblTempUsageDetail_20' ) end [2025-02-04 21:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:05:23] Production.INFO: ==32651== Releasing lock... [2025-02-04 21:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:05:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-04 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:06:05 [end_date_ymd] => 2025-02-04 21:06:05 [RateCDR] => 1 ) [2025-02-04 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:06:05' and `end` < '2025-02-04 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:06:18] Production.INFO: count ==1377 [2025-02-04 21:06:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:06:05 - End Time 2025-02-04 21:06:05 [2025-02-04 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402997', 'tblTempUsageDetail_20' ) start [2025-02-04 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14402997', 'tblTempUsageDetail_20' ) end [2025-02-04 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402997', 'tblTempVendorCDR_20' ) start [2025-02-04 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14402997', 'tblTempVendorCDR_20' ) end [2025-02-04 21:06:18] Production.INFO: ProcessCDR(1,14402997,1,1,2) [2025-02-04 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14402997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14402997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14402997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14402997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402997', 'tblTempUsageDetail_20' ) start [2025-02-04 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14402997', 'tblTempUsageDetail_20' ) end [2025-02-04 21:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:06:23] Production.INFO: ==32730== Releasing lock... [2025-02-04 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:06:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-04 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:07:05 [end_date_ymd] => 2025-02-04 21:07:05 [RateCDR] => 1 ) [2025-02-04 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:07:05' and `end` < '2025-02-04 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:07:18] Production.INFO: count ==1376 [2025-02-04 21:07:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:07:05 - End Time 2025-02-04 21:07:05 [2025-02-04 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403002', 'tblTempUsageDetail_20' ) start [2025-02-04 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403002', 'tblTempUsageDetail_20' ) end [2025-02-04 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403002', 'tblTempVendorCDR_20' ) start [2025-02-04 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403002', 'tblTempVendorCDR_20' ) end [2025-02-04 21:07:18] Production.INFO: ProcessCDR(1,14403002,1,1,2) [2025-02-04 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403002', 'tblTempUsageDetail_20' ) start [2025-02-04 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403002', 'tblTempUsageDetail_20' ) end [2025-02-04 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:07:22] Production.INFO: ==355== Releasing lock... [2025-02-04 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:07:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-04 21:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:08:06 [end_date_ymd] => 2025-02-04 21:08:06 [RateCDR] => 1 ) [2025-02-04 21:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:08:06' and `end` < '2025-02-04 21:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:08:19] Production.INFO: count ==1368 [2025-02-04 21:08:19] Production.ERROR: pbx CDR StartTime 2025-02-04 18:08:06 - End Time 2025-02-04 21:08:06 [2025-02-04 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403007', 'tblTempUsageDetail_20' ) start [2025-02-04 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403007', 'tblTempUsageDetail_20' ) end [2025-02-04 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403007', 'tblTempVendorCDR_20' ) start [2025-02-04 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403007', 'tblTempVendorCDR_20' ) end [2025-02-04 21:08:19] Production.INFO: ProcessCDR(1,14403007,1,1,2) [2025-02-04 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403007', 'tblTempUsageDetail_20' ) start [2025-02-04 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403007', 'tblTempUsageDetail_20' ) end [2025-02-04 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:08:22] Production.INFO: ==440== Releasing lock... [2025-02-04 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:08:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-04 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:09:05 [end_date_ymd] => 2025-02-04 21:09:05 [RateCDR] => 1 ) [2025-02-04 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:09:05' and `end` < '2025-02-04 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:09:19] Production.INFO: count ==1365 [2025-02-04 21:09:19] Production.ERROR: pbx CDR StartTime 2025-02-04 18:09:05 - End Time 2025-02-04 21:09:05 [2025-02-04 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403012', 'tblTempUsageDetail_20' ) start [2025-02-04 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403012', 'tblTempUsageDetail_20' ) end [2025-02-04 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403012', 'tblTempVendorCDR_20' ) start [2025-02-04 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403012', 'tblTempVendorCDR_20' ) end [2025-02-04 21:09:19] Production.INFO: ProcessCDR(1,14403012,1,1,2) [2025-02-04 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403012', 'tblTempUsageDetail_20' ) start [2025-02-04 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403012', 'tblTempUsageDetail_20' ) end [2025-02-04 21:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:09:23] Production.INFO: ==559== Releasing lock... [2025-02-04 21:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:09:23] Production.INFO: 38 MB #Memory Used# [2025-02-04 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:10:06 [end_date_ymd] => 2025-02-04 21:10:06 [RateCDR] => 1 ) [2025-02-04 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:10:06' and `end` < '2025-02-04 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:10:19] Production.INFO: count ==1357 [2025-02-04 21:10:19] Production.ERROR: pbx CDR StartTime 2025-02-04 18:10:06 - End Time 2025-02-04 21:10:06 [2025-02-04 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403018', 'tblTempUsageDetail_20' ) start [2025-02-04 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403018', 'tblTempUsageDetail_20' ) end [2025-02-04 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403018', 'tblTempVendorCDR_20' ) start [2025-02-04 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403018', 'tblTempVendorCDR_20' ) end [2025-02-04 21:10:19] Production.INFO: ProcessCDR(1,14403018,1,1,2) [2025-02-04 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403018', 'tblTempUsageDetail_20' ) start [2025-02-04 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403018', 'tblTempUsageDetail_20' ) end [2025-02-04 21:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:10:24] Production.INFO: ==644== Releasing lock... [2025-02-04 21:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:10:24] Production.INFO: 38 MB #Memory Used# [2025-02-04 21:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:11:04 [end_date_ymd] => 2025-02-04 21:11:04 [RateCDR] => 1 ) [2025-02-04 21: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-02-04 18:11:04' and `end` < '2025-02-04 21: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-02-04 21:11:18] Production.INFO: count ==1296 [2025-02-04 21:11:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:11:04 - End Time 2025-02-04 21:11:04 [2025-02-04 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403023', 'tblTempUsageDetail_20' ) start [2025-02-04 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403023', 'tblTempUsageDetail_20' ) end [2025-02-04 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403023', 'tblTempVendorCDR_20' ) start [2025-02-04 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403023', 'tblTempVendorCDR_20' ) end [2025-02-04 21:11:18] Production.INFO: ProcessCDR(1,14403023,1,1,2) [2025-02-04 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403023', 'tblTempUsageDetail_20' ) start [2025-02-04 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403023', 'tblTempUsageDetail_20' ) end [2025-02-04 21:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:11:21] Production.INFO: ==753== Releasing lock... [2025-02-04 21:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:11:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-04 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:12:05 [end_date_ymd] => 2025-02-04 21:12:05 [RateCDR] => 1 ) [2025-02-04 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:12:05' and `end` < '2025-02-04 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:12:18] Production.INFO: count ==1277 [2025-02-04 21:12:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:12:05 - End Time 2025-02-04 21:12:05 [2025-02-04 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403028', 'tblTempUsageDetail_20' ) start [2025-02-04 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403028', 'tblTempUsageDetail_20' ) end [2025-02-04 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403028', 'tblTempVendorCDR_20' ) start [2025-02-04 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403028', 'tblTempVendorCDR_20' ) end [2025-02-04 21:12:18] Production.INFO: ProcessCDR(1,14403028,1,1,2) [2025-02-04 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403028', 'tblTempUsageDetail_20' ) start [2025-02-04 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403028', 'tblTempUsageDetail_20' ) end [2025-02-04 21:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:12:21] Production.INFO: ==828== Releasing lock... [2025-02-04 21:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:12:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-04 21:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:13:06 [end_date_ymd] => 2025-02-04 21:13:06 [RateCDR] => 1 ) [2025-02-04 21:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:13:06' and `end` < '2025-02-04 21:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:13:18] Production.INFO: count ==1250 [2025-02-04 21:13:19] Production.ERROR: pbx CDR StartTime 2025-02-04 18:13:06 - End Time 2025-02-04 21:13:06 [2025-02-04 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403033', 'tblTempUsageDetail_20' ) start [2025-02-04 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403033', 'tblTempUsageDetail_20' ) end [2025-02-04 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403033', 'tblTempVendorCDR_20' ) start [2025-02-04 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403033', 'tblTempVendorCDR_20' ) end [2025-02-04 21:13:19] Production.INFO: ProcessCDR(1,14403033,1,1,2) [2025-02-04 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403033', 'tblTempUsageDetail_20' ) start [2025-02-04 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403033', 'tblTempUsageDetail_20' ) end [2025-02-04 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:13:22] Production.INFO: ==911== Releasing lock... [2025-02-04 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:13:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-04 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:14:05 [end_date_ymd] => 2025-02-04 21:14:05 [RateCDR] => 1 ) [2025-02-04 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:14:05' and `end` < '2025-02-04 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:14:18] Production.INFO: count ==1233 [2025-02-04 21:14:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:14:05 - End Time 2025-02-04 21:14:05 [2025-02-04 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403038', 'tblTempUsageDetail_20' ) start [2025-02-04 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403038', 'tblTempUsageDetail_20' ) end [2025-02-04 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403038', 'tblTempVendorCDR_20' ) start [2025-02-04 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403038', 'tblTempVendorCDR_20' ) end [2025-02-04 21:14:18] Production.INFO: ProcessCDR(1,14403038,1,1,2) [2025-02-04 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403038', 'tblTempUsageDetail_20' ) start [2025-02-04 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403038', 'tblTempUsageDetail_20' ) end [2025-02-04 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:14:22] Production.INFO: ==990== Releasing lock... [2025-02-04 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:14:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-04 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:15:05 [end_date_ymd] => 2025-02-04 21:15:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 18:15:05' and `end` < '2025-02-04 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-02-04 21:15:18] Production.INFO: count ==1228 [2025-02-04 21:15:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:15:05 - End Time 2025-02-04 21:15:05 [2025-02-04 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403043', 'tblTempUsageDetail_20' ) start [2025-02-04 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403043', 'tblTempUsageDetail_20' ) end [2025-02-04 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403043', 'tblTempVendorCDR_20' ) start [2025-02-04 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403043', 'tblTempVendorCDR_20' ) end [2025-02-04 21:15:18] Production.INFO: ProcessCDR(1,14403043,1,1,2) [2025-02-04 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403043', 'tblTempUsageDetail_20' ) start [2025-02-04 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403043', 'tblTempUsageDetail_20' ) end [2025-02-04 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:15:22] Production.INFO: ==1078== Releasing lock... [2025-02-04 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:15:22] Production.INFO: 37 MB #Memory Used# [2025-02-04 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:16:05 [end_date_ymd] => 2025-02-04 21:16:05 [RateCDR] => 1 ) [2025-02-04 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:16:05' and `end` < '2025-02-04 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:16:18] Production.INFO: count ==1222 [2025-02-04 21:16:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:16:05 - End Time 2025-02-04 21:16:05 [2025-02-04 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403048', 'tblTempUsageDetail_20' ) start [2025-02-04 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403048', 'tblTempUsageDetail_20' ) end [2025-02-04 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403048', 'tblTempVendorCDR_20' ) start [2025-02-04 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403048', 'tblTempVendorCDR_20' ) end [2025-02-04 21:16:18] Production.INFO: ProcessCDR(1,14403048,1,1,2) [2025-02-04 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403048', 'tblTempUsageDetail_20' ) start [2025-02-04 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403048', 'tblTempUsageDetail_20' ) end [2025-02-04 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:16:22] Production.INFO: ==1156== Releasing lock... [2025-02-04 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:16:22] Production.INFO: 37 MB #Memory Used# [2025-02-04 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:17:05 [end_date_ymd] => 2025-02-04 21:17:05 [RateCDR] => 1 ) [2025-02-04 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:17:05' and `end` < '2025-02-04 21:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:17:18] Production.INFO: count ==1218 [2025-02-04 21:17:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:17:05 - End Time 2025-02-04 21:17:05 [2025-02-04 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403053', 'tblTempUsageDetail_20' ) start [2025-02-04 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403053', 'tblTempUsageDetail_20' ) end [2025-02-04 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403053', 'tblTempVendorCDR_20' ) start [2025-02-04 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403053', 'tblTempVendorCDR_20' ) end [2025-02-04 21:17:18] Production.INFO: ProcessCDR(1,14403053,1,1,2) [2025-02-04 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403053', 'tblTempUsageDetail_20' ) start [2025-02-04 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403053', 'tblTempUsageDetail_20' ) end [2025-02-04 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:17:22] Production.INFO: ==1246== Releasing lock... [2025-02-04 21:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:17:22] Production.INFO: 37 MB #Memory Used# [2025-02-04 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:18:05 [end_date_ymd] => 2025-02-04 21:18:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 18:18:05' and `end` < '2025-02-04 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-02-04 21:18:18] Production.INFO: count ==1209 [2025-02-04 21:18:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:18:05 - End Time 2025-02-04 21:18:05 [2025-02-04 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403058', 'tblTempUsageDetail_20' ) start [2025-02-04 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403058', 'tblTempUsageDetail_20' ) end [2025-02-04 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403058', 'tblTempVendorCDR_20' ) start [2025-02-04 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403058', 'tblTempVendorCDR_20' ) end [2025-02-04 21:18:18] Production.INFO: ProcessCDR(1,14403058,1,1,2) [2025-02-04 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403058', 'tblTempUsageDetail_20' ) start [2025-02-04 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403058', 'tblTempUsageDetail_20' ) end [2025-02-04 21:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:18:21] Production.INFO: ==1329== Releasing lock... [2025-02-04 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:18:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-04 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:19:05 [end_date_ymd] => 2025-02-04 21:19:05 [RateCDR] => 1 ) [2025-02-04 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:19:05' and `end` < '2025-02-04 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:19:18] Production.INFO: count ==1201 [2025-02-04 21:19:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:19:05 - End Time 2025-02-04 21:19:05 [2025-02-04 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403063', 'tblTempUsageDetail_20' ) start [2025-02-04 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403063', 'tblTempUsageDetail_20' ) end [2025-02-04 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403063', 'tblTempVendorCDR_20' ) start [2025-02-04 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403063', 'tblTempVendorCDR_20' ) end [2025-02-04 21:19:18] Production.INFO: ProcessCDR(1,14403063,1,1,2) [2025-02-04 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403063', 'tblTempUsageDetail_20' ) start [2025-02-04 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403063', 'tblTempUsageDetail_20' ) end [2025-02-04 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:19:22] Production.INFO: ==1408== Releasing lock... [2025-02-04 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:19:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-04 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:20:06 [end_date_ymd] => 2025-02-04 21:20:06 [RateCDR] => 1 ) [2025-02-04 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:20:06' and `end` < '2025-02-04 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:20:19] Production.INFO: count ==1201 [2025-02-04 21:20:19] Production.ERROR: pbx CDR StartTime 2025-02-04 18:20:06 - End Time 2025-02-04 21:20:06 [2025-02-04 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403068', 'tblTempUsageDetail_20' ) start [2025-02-04 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403068', 'tblTempUsageDetail_20' ) end [2025-02-04 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403068', 'tblTempVendorCDR_20' ) start [2025-02-04 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403068', 'tblTempVendorCDR_20' ) end [2025-02-04 21:20:19] Production.INFO: ProcessCDR(1,14403068,1,1,2) [2025-02-04 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403068', 'tblTempUsageDetail_20' ) start [2025-02-04 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403068', 'tblTempUsageDetail_20' ) end [2025-02-04 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:20:22] Production.INFO: ==1488== Releasing lock... [2025-02-04 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:20:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-04 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:21:05 [end_date_ymd] => 2025-02-04 21:21:05 [RateCDR] => 1 ) [2025-02-04 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:21:05' and `end` < '2025-02-04 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:21:18] Production.INFO: count ==1158 [2025-02-04 21:21:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:21:05 - End Time 2025-02-04 21:21:05 [2025-02-04 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403074', 'tblTempUsageDetail_20' ) start [2025-02-04 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403074', 'tblTempUsageDetail_20' ) end [2025-02-04 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403074', 'tblTempVendorCDR_20' ) start [2025-02-04 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403074', 'tblTempVendorCDR_20' ) end [2025-02-04 21:21:18] Production.INFO: ProcessCDR(1,14403074,1,1,2) [2025-02-04 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403074', 'tblTempUsageDetail_20' ) start [2025-02-04 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403074', 'tblTempUsageDetail_20' ) end [2025-02-04 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:21:21] Production.INFO: ==1603== Releasing lock... [2025-02-04 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:21:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-04 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:22:05 [end_date_ymd] => 2025-02-04 21:22:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 18:22:05' and `end` < '2025-02-04 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:22:18] Production.INFO: count ==1158 [2025-02-04 21:22:19] Production.ERROR: pbx CDR StartTime 2025-02-04 18:22:05 - End Time 2025-02-04 21:22:05 [2025-02-04 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403079', 'tblTempUsageDetail_20' ) start [2025-02-04 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403079', 'tblTempUsageDetail_20' ) end [2025-02-04 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403079', 'tblTempVendorCDR_20' ) start [2025-02-04 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403079', 'tblTempVendorCDR_20' ) end [2025-02-04 21:22:19] Production.INFO: ProcessCDR(1,14403079,1,1,2) [2025-02-04 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403079', 'tblTempUsageDetail_20' ) start [2025-02-04 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403079', 'tblTempUsageDetail_20' ) end [2025-02-04 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:22:22] Production.INFO: ==1683== Releasing lock... [2025-02-04 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:22:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-04 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:23:05 [end_date_ymd] => 2025-02-04 21:23:05 [RateCDR] => 1 ) [2025-02-04 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:23:05' and `end` < '2025-02-04 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:23:18] Production.INFO: count ==1147 [2025-02-04 21:23:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:23:05 - End Time 2025-02-04 21:23:05 [2025-02-04 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403084', 'tblTempUsageDetail_20' ) start [2025-02-04 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403084', 'tblTempUsageDetail_20' ) end [2025-02-04 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403084', 'tblTempVendorCDR_20' ) start [2025-02-04 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403084', 'tblTempVendorCDR_20' ) end [2025-02-04 21:23:18] Production.INFO: ProcessCDR(1,14403084,1,1,2) [2025-02-04 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403084', 'tblTempUsageDetail_20' ) start [2025-02-04 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403084', 'tblTempUsageDetail_20' ) end [2025-02-04 21:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:23:21] Production.INFO: ==1762== Releasing lock... [2025-02-04 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:23:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-04 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:24:05 [end_date_ymd] => 2025-02-04 21:24:05 [RateCDR] => 1 ) [2025-02-04 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:24:05' and `end` < '2025-02-04 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:24:18] Production.INFO: count ==1144 [2025-02-04 21:24:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:24:05 - End Time 2025-02-04 21:24:05 [2025-02-04 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403089', 'tblTempUsageDetail_20' ) start [2025-02-04 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403089', 'tblTempUsageDetail_20' ) end [2025-02-04 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403089', 'tblTempVendorCDR_20' ) start [2025-02-04 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403089', 'tblTempVendorCDR_20' ) end [2025-02-04 21:24:18] Production.INFO: ProcessCDR(1,14403089,1,1,2) [2025-02-04 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403089', 'tblTempUsageDetail_20' ) start [2025-02-04 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403089', 'tblTempUsageDetail_20' ) end [2025-02-04 21:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:24:21] Production.INFO: ==1881== Releasing lock... [2025-02-04 21:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:24:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-04 21:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:25:04 [end_date_ymd] => 2025-02-04 21:25:04 [RateCDR] => 1 ) [2025-02-04 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-02-04 18:25:04' and `end` < '2025-02-04 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-02-04 21:25:17] Production.INFO: count ==1142 [2025-02-04 21:25:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:25:04 - End Time 2025-02-04 21:25:04 [2025-02-04 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403094', 'tblTempUsageDetail_20' ) start [2025-02-04 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403094', 'tblTempUsageDetail_20' ) end [2025-02-04 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403094', 'tblTempVendorCDR_20' ) start [2025-02-04 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403094', 'tblTempVendorCDR_20' ) end [2025-02-04 21:25:18] Production.INFO: ProcessCDR(1,14403094,1,1,2) [2025-02-04 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403094', 'tblTempUsageDetail_20' ) start [2025-02-04 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403094', 'tblTempUsageDetail_20' ) end [2025-02-04 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:25:21] Production.INFO: ==1961== Releasing lock... [2025-02-04 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:25:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-04 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:26:05 [end_date_ymd] => 2025-02-04 21:26:05 [RateCDR] => 1 ) [2025-02-04 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:26:05' and `end` < '2025-02-04 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:26:18] Production.INFO: count ==1142 [2025-02-04 21:26:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:26:05 - End Time 2025-02-04 21:26:05 [2025-02-04 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403099', 'tblTempUsageDetail_20' ) start [2025-02-04 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403099', 'tblTempUsageDetail_20' ) end [2025-02-04 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403099', 'tblTempVendorCDR_20' ) start [2025-02-04 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403099', 'tblTempVendorCDR_20' ) end [2025-02-04 21:26:18] Production.INFO: ProcessCDR(1,14403099,1,1,2) [2025-02-04 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403099', 'tblTempUsageDetail_20' ) start [2025-02-04 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403099', 'tblTempUsageDetail_20' ) end [2025-02-04 21:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:26:21] Production.INFO: ==2045== Releasing lock... [2025-02-04 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:26:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-04 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:27:05 [end_date_ymd] => 2025-02-04 21:27:05 [RateCDR] => 1 ) [2025-02-04 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:27:05' and `end` < '2025-02-04 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:27:19] Production.INFO: count ==1140 [2025-02-04 21:27:19] Production.ERROR: pbx CDR StartTime 2025-02-04 18:27:05 - End Time 2025-02-04 21:27:05 [2025-02-04 21:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403104', 'tblTempUsageDetail_20' ) start [2025-02-04 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403104', 'tblTempUsageDetail_20' ) end [2025-02-04 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403104', 'tblTempVendorCDR_20' ) start [2025-02-04 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403104', 'tblTempVendorCDR_20' ) end [2025-02-04 21:27:19] Production.INFO: ProcessCDR(1,14403104,1,1,2) [2025-02-04 21:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403104', 'tblTempUsageDetail_20' ) start [2025-02-04 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403104', 'tblTempUsageDetail_20' ) end [2025-02-04 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:27:22] Production.INFO: ==2120== Releasing lock... [2025-02-04 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:27:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-04 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:28:05 [end_date_ymd] => 2025-02-04 21:28:05 [RateCDR] => 1 ) [2025-02-04 21:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:28:05' and `end` < '2025-02-04 21:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:28:18] Production.INFO: count ==1139 [2025-02-04 21:28:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:28:05 - End Time 2025-02-04 21:28:05 [2025-02-04 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403109', 'tblTempUsageDetail_20' ) start [2025-02-04 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403109', 'tblTempUsageDetail_20' ) end [2025-02-04 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403109', 'tblTempVendorCDR_20' ) start [2025-02-04 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403109', 'tblTempVendorCDR_20' ) end [2025-02-04 21:28:18] Production.INFO: ProcessCDR(1,14403109,1,1,2) [2025-02-04 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403109', 'tblTempUsageDetail_20' ) start [2025-02-04 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403109', 'tblTempUsageDetail_20' ) end [2025-02-04 21:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:28:21] Production.INFO: ==2201== Releasing lock... [2025-02-04 21:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:28:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-04 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:29:05 [end_date_ymd] => 2025-02-04 21:29:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 18:29:05' and `end` < '2025-02-04 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-02-04 21:29:18] Production.INFO: count ==1140 [2025-02-04 21:29:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:29:05 - End Time 2025-02-04 21:29:05 [2025-02-04 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403114', 'tblTempUsageDetail_20' ) start [2025-02-04 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403114', 'tblTempUsageDetail_20' ) end [2025-02-04 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403114', 'tblTempVendorCDR_20' ) start [2025-02-04 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403114', 'tblTempVendorCDR_20' ) end [2025-02-04 21:29:18] Production.INFO: ProcessCDR(1,14403114,1,1,2) [2025-02-04 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403114', 'tblTempUsageDetail_20' ) start [2025-02-04 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403114', 'tblTempUsageDetail_20' ) end [2025-02-04 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:29:22] Production.INFO: ==2283== Releasing lock... [2025-02-04 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:29:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-04 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:30:06 [end_date_ymd] => 2025-02-04 21:30:06 [RateCDR] => 1 ) [2025-02-04 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:30:06' and `end` < '2025-02-04 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:30:19] Production.INFO: count ==1142 [2025-02-04 21:30:19] Production.ERROR: pbx CDR StartTime 2025-02-04 18:30:06 - End Time 2025-02-04 21:30:06 [2025-02-04 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403120', 'tblTempUsageDetail_20' ) start [2025-02-04 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403120', 'tblTempUsageDetail_20' ) end [2025-02-04 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403120', 'tblTempVendorCDR_20' ) start [2025-02-04 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403120', 'tblTempVendorCDR_20' ) end [2025-02-04 21:30:19] Production.INFO: ProcessCDR(1,14403120,1,1,2) [2025-02-04 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403120', 'tblTempUsageDetail_20' ) start [2025-02-04 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403120', 'tblTempUsageDetail_20' ) end [2025-02-04 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:30:22] Production.INFO: ==2365== Releasing lock... [2025-02-04 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:30:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-04 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:31:05 [end_date_ymd] => 2025-02-04 21:31:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 18:31:05' and `end` < '2025-02-04 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-02-04 21:31:18] Production.INFO: count ==1134 [2025-02-04 21:31:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:31:05 - End Time 2025-02-04 21:31:05 [2025-02-04 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403125', 'tblTempUsageDetail_20' ) start [2025-02-04 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403125', 'tblTempUsageDetail_20' ) end [2025-02-04 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403125', 'tblTempVendorCDR_20' ) start [2025-02-04 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403125', 'tblTempVendorCDR_20' ) end [2025-02-04 21:31:18] Production.INFO: ProcessCDR(1,14403125,1,1,2) [2025-02-04 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403125', 'tblTempUsageDetail_20' ) start [2025-02-04 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403125', 'tblTempUsageDetail_20' ) end [2025-02-04 21:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:31:23] Production.INFO: ==2452== Releasing lock... [2025-02-04 21:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:31:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-04 21:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:32:06 [end_date_ymd] => 2025-02-04 21:32:06 [RateCDR] => 1 ) [2025-02-04 21:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:32:06' and `end` < '2025-02-04 21:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:32:20] Production.INFO: count ==1127 [2025-02-04 21:32:20] Production.ERROR: pbx CDR StartTime 2025-02-04 18:32:06 - End Time 2025-02-04 21:32:06 [2025-02-04 21:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403130', 'tblTempUsageDetail_20' ) start [2025-02-04 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403130', 'tblTempUsageDetail_20' ) end [2025-02-04 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403130', 'tblTempVendorCDR_20' ) start [2025-02-04 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403130', 'tblTempVendorCDR_20' ) end [2025-02-04 21:32:20] Production.INFO: ProcessCDR(1,14403130,1,1,2) [2025-02-04 21:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403130', 'tblTempUsageDetail_20' ) start [2025-02-04 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403130', 'tblTempUsageDetail_20' ) end [2025-02-04 21:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:32:23] Production.INFO: ==2536== Releasing lock... [2025-02-04 21:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:32:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-04 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:33:05 [end_date_ymd] => 2025-02-04 21:33:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 18:33:05' and `end` < '2025-02-04 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-02-04 21:33:18] Production.INFO: count ==1122 [2025-02-04 21:33:19] Production.ERROR: pbx CDR StartTime 2025-02-04 18:33:05 - End Time 2025-02-04 21:33:05 [2025-02-04 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403135', 'tblTempUsageDetail_20' ) start [2025-02-04 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403135', 'tblTempUsageDetail_20' ) end [2025-02-04 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403135', 'tblTempVendorCDR_20' ) start [2025-02-04 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403135', 'tblTempVendorCDR_20' ) end [2025-02-04 21:33:19] Production.INFO: ProcessCDR(1,14403135,1,1,2) [2025-02-04 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403135', 'tblTempUsageDetail_20' ) start [2025-02-04 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403135', 'tblTempUsageDetail_20' ) end [2025-02-04 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:33:22] Production.INFO: ==2617== Releasing lock... [2025-02-04 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:33:22] Production.INFO: 36 MB #Memory Used# [2025-02-04 21:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:34:06 [end_date_ymd] => 2025-02-04 21:34:06 [RateCDR] => 1 ) [2025-02-04 21:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:34:06' and `end` < '2025-02-04 21:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:34:19] Production.INFO: count ==1120 [2025-02-04 21:34:19] Production.ERROR: pbx CDR StartTime 2025-02-04 18:34:06 - End Time 2025-02-04 21:34:06 [2025-02-04 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403140', 'tblTempUsageDetail_20' ) start [2025-02-04 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403140', 'tblTempUsageDetail_20' ) end [2025-02-04 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403140', 'tblTempVendorCDR_20' ) start [2025-02-04 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403140', 'tblTempVendorCDR_20' ) end [2025-02-04 21:34:19] Production.INFO: ProcessCDR(1,14403140,1,1,2) [2025-02-04 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403140', 'tblTempUsageDetail_20' ) start [2025-02-04 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403140', 'tblTempUsageDetail_20' ) end [2025-02-04 21:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:34:23] Production.INFO: ==2701== Releasing lock... [2025-02-04 21:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:34:23] Production.INFO: 36 MB #Memory Used# [2025-02-04 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:35:05 [end_date_ymd] => 2025-02-04 21:35:05 [RateCDR] => 1 ) [2025-02-04 21:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:35:05' and `end` < '2025-02-04 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:35:18] Production.INFO: count ==1112 [2025-02-04 21:35:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:35:05 - End Time 2025-02-04 21:35:05 [2025-02-04 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403145', 'tblTempUsageDetail_20' ) start [2025-02-04 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403145', 'tblTempUsageDetail_20' ) end [2025-02-04 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403145', 'tblTempVendorCDR_20' ) start [2025-02-04 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403145', 'tblTempVendorCDR_20' ) end [2025-02-04 21:35:18] Production.INFO: ProcessCDR(1,14403145,1,1,2) [2025-02-04 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403145', 'tblTempUsageDetail_20' ) start [2025-02-04 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403145', 'tblTempUsageDetail_20' ) end [2025-02-04 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:35:21] Production.INFO: ==2781== Releasing lock... [2025-02-04 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:35:21] Production.INFO: 36 MB #Memory Used# [2025-02-04 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:36:05 [end_date_ymd] => 2025-02-04 21:36:05 [RateCDR] => 1 ) [2025-02-04 21:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:36:05' and `end` < '2025-02-04 21:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:36:19] Production.INFO: count ==1110 [2025-02-04 21:36:19] Production.ERROR: pbx CDR StartTime 2025-02-04 18:36:05 - End Time 2025-02-04 21:36:05 [2025-02-04 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403150', 'tblTempUsageDetail_20' ) start [2025-02-04 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403150', 'tblTempUsageDetail_20' ) end [2025-02-04 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403150', 'tblTempVendorCDR_20' ) start [2025-02-04 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403150', 'tblTempVendorCDR_20' ) end [2025-02-04 21:36:19] Production.INFO: ProcessCDR(1,14403150,1,1,2) [2025-02-04 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403150', 'tblTempUsageDetail_20' ) start [2025-02-04 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403150', 'tblTempUsageDetail_20' ) end [2025-02-04 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:36:22] Production.INFO: ==2865== Releasing lock... [2025-02-04 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:36:22] Production.INFO: 36 MB #Memory Used# [2025-02-04 21:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:37:06 [end_date_ymd] => 2025-02-04 21:37:06 [RateCDR] => 1 ) [2025-02-04 21:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:37:06' and `end` < '2025-02-04 21:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:37:19] Production.INFO: count ==1102 [2025-02-04 21:37:19] Production.ERROR: pbx CDR StartTime 2025-02-04 18:37:06 - End Time 2025-02-04 21:37:06 [2025-02-04 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403155', 'tblTempUsageDetail_20' ) start [2025-02-04 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403155', 'tblTempUsageDetail_20' ) end [2025-02-04 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403155', 'tblTempVendorCDR_20' ) start [2025-02-04 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403155', 'tblTempVendorCDR_20' ) end [2025-02-04 21:37:19] Production.INFO: ProcessCDR(1,14403155,1,1,2) [2025-02-04 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403155', 'tblTempUsageDetail_20' ) start [2025-02-04 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403155', 'tblTempUsageDetail_20' ) end [2025-02-04 21:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:37:24] Production.INFO: ==2949== Releasing lock... [2025-02-04 21:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:37:24] Production.INFO: 35.75 MB #Memory Used# [2025-02-04 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:38:05 [end_date_ymd] => 2025-02-04 21:38:05 [RateCDR] => 1 ) [2025-02-04 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:38:05' and `end` < '2025-02-04 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:38:19] Production.INFO: count ==1102 [2025-02-04 21:38:19] Production.ERROR: pbx CDR StartTime 2025-02-04 18:38:05 - End Time 2025-02-04 21:38:05 [2025-02-04 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403160', 'tblTempUsageDetail_20' ) start [2025-02-04 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403160', 'tblTempUsageDetail_20' ) end [2025-02-04 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403160', 'tblTempVendorCDR_20' ) start [2025-02-04 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403160', 'tblTempVendorCDR_20' ) end [2025-02-04 21:38:19] Production.INFO: ProcessCDR(1,14403160,1,1,2) [2025-02-04 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403160', 'tblTempUsageDetail_20' ) start [2025-02-04 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403160', 'tblTempUsageDetail_20' ) end [2025-02-04 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:38:22] Production.INFO: ==3033== Releasing lock... [2025-02-04 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:38:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-04 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:39:05 [end_date_ymd] => 2025-02-04 21:39:05 [RateCDR] => 1 ) [2025-02-04 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:39:05' and `end` < '2025-02-04 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:39:18] Production.INFO: count ==1098 [2025-02-04 21:39:19] Production.ERROR: pbx CDR StartTime 2025-02-04 18:39:05 - End Time 2025-02-04 21:39:05 [2025-02-04 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403165', 'tblTempUsageDetail_20' ) start [2025-02-04 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403165', 'tblTempUsageDetail_20' ) end [2025-02-04 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403165', 'tblTempVendorCDR_20' ) start [2025-02-04 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403165', 'tblTempVendorCDR_20' ) end [2025-02-04 21:39:19] Production.INFO: ProcessCDR(1,14403165,1,1,2) [2025-02-04 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403165', 'tblTempUsageDetail_20' ) start [2025-02-04 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403165', 'tblTempUsageDetail_20' ) end [2025-02-04 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:39:22] Production.INFO: ==3120== Releasing lock... [2025-02-04 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:39:22] Production.INFO: 36 MB #Memory Used# [2025-02-04 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:40:05 [end_date_ymd] => 2025-02-04 21:40:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 18:40:05' and `end` < '2025-02-04 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-02-04 21:40:18] Production.INFO: count ==1101 [2025-02-04 21:40:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:40:05 - End Time 2025-02-04 21:40:05 [2025-02-04 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403171', 'tblTempUsageDetail_20' ) start [2025-02-04 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403171', 'tblTempUsageDetail_20' ) end [2025-02-04 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403171', 'tblTempVendorCDR_20' ) start [2025-02-04 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403171', 'tblTempVendorCDR_20' ) end [2025-02-04 21:40:19] Production.INFO: ProcessCDR(1,14403171,1,1,2) [2025-02-04 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403171', 'tblTempUsageDetail_20' ) start [2025-02-04 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403171', 'tblTempUsageDetail_20' ) end [2025-02-04 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:40:23] Production.INFO: ==3242== Releasing lock... [2025-02-04 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:40:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-04 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:41:05 [end_date_ymd] => 2025-02-04 21:41:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 18:41:05' and `end` < '2025-02-04 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-02-04 21:41:19] Production.INFO: count ==1095 [2025-02-04 21:41:19] Production.ERROR: pbx CDR StartTime 2025-02-04 18:41:05 - End Time 2025-02-04 21:41:05 [2025-02-04 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403176', 'tblTempUsageDetail_20' ) start [2025-02-04 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403176', 'tblTempUsageDetail_20' ) end [2025-02-04 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403176', 'tblTempVendorCDR_20' ) start [2025-02-04 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403176', 'tblTempVendorCDR_20' ) end [2025-02-04 21:41:19] Production.INFO: ProcessCDR(1,14403176,1,1,2) [2025-02-04 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403176', 'tblTempUsageDetail_20' ) start [2025-02-04 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403176', 'tblTempUsageDetail_20' ) end [2025-02-04 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:41:22] Production.INFO: ==3331== Releasing lock... [2025-02-04 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:41:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-04 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:42:05 [end_date_ymd] => 2025-02-04 21:42:05 [RateCDR] => 1 ) [2025-02-04 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:42:05' and `end` < '2025-02-04 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:42:18] Production.INFO: count ==1093 [2025-02-04 21:42:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:42:05 - End Time 2025-02-04 21:42:05 [2025-02-04 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403181', 'tblTempUsageDetail_20' ) start [2025-02-04 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403181', 'tblTempUsageDetail_20' ) end [2025-02-04 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403181', 'tblTempVendorCDR_20' ) start [2025-02-04 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403181', 'tblTempVendorCDR_20' ) end [2025-02-04 21:42:19] Production.INFO: ProcessCDR(1,14403181,1,1,2) [2025-02-04 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403181', 'tblTempUsageDetail_20' ) start [2025-02-04 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403181', 'tblTempUsageDetail_20' ) end [2025-02-04 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:42:22] Production.INFO: ==3420== Releasing lock... [2025-02-04 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:42:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-04 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:43:05 [end_date_ymd] => 2025-02-04 21:43:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 18:43:05' and `end` < '2025-02-04 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-02-04 21:43:18] Production.INFO: count ==1093 [2025-02-04 21:43:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:43:05 - End Time 2025-02-04 21:43:05 [2025-02-04 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403186', 'tblTempUsageDetail_20' ) start [2025-02-04 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403186', 'tblTempUsageDetail_20' ) end [2025-02-04 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403186', 'tblTempVendorCDR_20' ) start [2025-02-04 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403186', 'tblTempVendorCDR_20' ) end [2025-02-04 21:43:18] Production.INFO: ProcessCDR(1,14403186,1,1,2) [2025-02-04 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403186', 'tblTempUsageDetail_20' ) start [2025-02-04 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403186', 'tblTempUsageDetail_20' ) end [2025-02-04 21:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:43:21] Production.INFO: ==3505== Releasing lock... [2025-02-04 21:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:43:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-04 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:44:05 [end_date_ymd] => 2025-02-04 21:44:05 [RateCDR] => 1 ) [2025-02-04 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:44:05' and `end` < '2025-02-04 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:44:18] Production.INFO: count ==1082 [2025-02-04 21:44:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:44:05 - End Time 2025-02-04 21:44:05 [2025-02-04 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403191', 'tblTempUsageDetail_20' ) start [2025-02-04 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403191', 'tblTempUsageDetail_20' ) end [2025-02-04 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403191', 'tblTempVendorCDR_20' ) start [2025-02-04 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403191', 'tblTempVendorCDR_20' ) end [2025-02-04 21:44:18] Production.INFO: ProcessCDR(1,14403191,1,1,2) [2025-02-04 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403191', 'tblTempUsageDetail_20' ) start [2025-02-04 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403191', 'tblTempUsageDetail_20' ) end [2025-02-04 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:44:21] Production.INFO: ==3588== Releasing lock... [2025-02-04 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:44:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-04 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:45:05 [end_date_ymd] => 2025-02-04 21:45:05 [RateCDR] => 1 ) [2025-02-04 21:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:45:05' and `end` < '2025-02-04 21:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:45:18] Production.INFO: count ==1082 [2025-02-04 21:45:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:45:05 - End Time 2025-02-04 21:45:05 [2025-02-04 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403196', 'tblTempUsageDetail_20' ) start [2025-02-04 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403196', 'tblTempUsageDetail_20' ) end [2025-02-04 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403196', 'tblTempVendorCDR_20' ) start [2025-02-04 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403196', 'tblTempVendorCDR_20' ) end [2025-02-04 21:45:18] Production.INFO: ProcessCDR(1,14403196,1,1,2) [2025-02-04 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403196', 'tblTempUsageDetail_20' ) start [2025-02-04 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403196', 'tblTempUsageDetail_20' ) end [2025-02-04 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:45:22] Production.INFO: ==3667== Releasing lock... [2025-02-04 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:45:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-04 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:46:05 [end_date_ymd] => 2025-02-04 21:46:05 [RateCDR] => 1 ) [2025-02-04 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:46:05' and `end` < '2025-02-04 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:46:18] Production.INFO: count ==1081 [2025-02-04 21:46:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:46:05 - End Time 2025-02-04 21:46:05 [2025-02-04 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403201', 'tblTempUsageDetail_20' ) start [2025-02-04 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403201', 'tblTempUsageDetail_20' ) end [2025-02-04 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403201', 'tblTempVendorCDR_20' ) start [2025-02-04 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403201', 'tblTempVendorCDR_20' ) end [2025-02-04 21:46:18] Production.INFO: ProcessCDR(1,14403201,1,1,2) [2025-02-04 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403201', 'tblTempUsageDetail_20' ) start [2025-02-04 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403201', 'tblTempUsageDetail_20' ) end [2025-02-04 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:46:22] Production.INFO: ==3749== Releasing lock... [2025-02-04 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:46:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-04 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:47:05 [end_date_ymd] => 2025-02-04 21:47:05 [RateCDR] => 1 ) [2025-02-04 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:47:05' and `end` < '2025-02-04 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:47:19] Production.INFO: count ==1079 [2025-02-04 21:47:19] Production.ERROR: pbx CDR StartTime 2025-02-04 18:47:05 - End Time 2025-02-04 21:47:05 [2025-02-04 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403206', 'tblTempUsageDetail_20' ) start [2025-02-04 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403206', 'tblTempUsageDetail_20' ) end [2025-02-04 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403206', 'tblTempVendorCDR_20' ) start [2025-02-04 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403206', 'tblTempVendorCDR_20' ) end [2025-02-04 21:47:19] Production.INFO: ProcessCDR(1,14403206,1,1,2) [2025-02-04 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403206', 'tblTempUsageDetail_20' ) start [2025-02-04 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403206', 'tblTempUsageDetail_20' ) end [2025-02-04 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:47:22] Production.INFO: ==3830== Releasing lock... [2025-02-04 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:47:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-04 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:48:05 [end_date_ymd] => 2025-02-04 21:48:05 [RateCDR] => 1 ) [2025-02-04 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:48:05' and `end` < '2025-02-04 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:48:19] Production.INFO: count ==1076 [2025-02-04 21:48:20] Production.ERROR: pbx CDR StartTime 2025-02-04 18:48:05 - End Time 2025-02-04 21:48:05 [2025-02-04 21:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403211', 'tblTempUsageDetail_20' ) start [2025-02-04 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403211', 'tblTempUsageDetail_20' ) end [2025-02-04 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403211', 'tblTempVendorCDR_20' ) start [2025-02-04 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403211', 'tblTempVendorCDR_20' ) end [2025-02-04 21:48:20] Production.INFO: ProcessCDR(1,14403211,1,1,2) [2025-02-04 21:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403211', 'tblTempUsageDetail_20' ) start [2025-02-04 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403211', 'tblTempUsageDetail_20' ) end [2025-02-04 21:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:48:23] Production.INFO: ==3912== Releasing lock... [2025-02-04 21:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:48:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-04 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:49:05 [end_date_ymd] => 2025-02-04 21:49:05 [RateCDR] => 1 ) [2025-02-04 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:49:05' and `end` < '2025-02-04 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:49:18] Production.INFO: count ==1073 [2025-02-04 21:49:19] Production.ERROR: pbx CDR StartTime 2025-02-04 18:49:05 - End Time 2025-02-04 21:49:05 [2025-02-04 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403216', 'tblTempUsageDetail_20' ) start [2025-02-04 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403216', 'tblTempUsageDetail_20' ) end [2025-02-04 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403216', 'tblTempVendorCDR_20' ) start [2025-02-04 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403216', 'tblTempVendorCDR_20' ) end [2025-02-04 21:49:19] Production.INFO: ProcessCDR(1,14403216,1,1,2) [2025-02-04 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403216', 'tblTempUsageDetail_20' ) start [2025-02-04 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403216', 'tblTempUsageDetail_20' ) end [2025-02-04 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:49:22] Production.INFO: ==3991== Releasing lock... [2025-02-04 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:49:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-04 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:50:06 [end_date_ymd] => 2025-02-04 21:50:06 [RateCDR] => 1 ) [2025-02-04 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:50:06' and `end` < '2025-02-04 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:50:19] Production.INFO: count ==1073 [2025-02-04 21:50:19] Production.ERROR: pbx CDR StartTime 2025-02-04 18:50:06 - End Time 2025-02-04 21:50:06 [2025-02-04 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403221', 'tblTempUsageDetail_20' ) start [2025-02-04 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403221', 'tblTempUsageDetail_20' ) end [2025-02-04 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403221', 'tblTempVendorCDR_20' ) start [2025-02-04 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403221', 'tblTempVendorCDR_20' ) end [2025-02-04 21:50:19] Production.INFO: ProcessCDR(1,14403221,1,1,2) [2025-02-04 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403221', 'tblTempUsageDetail_20' ) start [2025-02-04 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403221', 'tblTempUsageDetail_20' ) end [2025-02-04 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:50:22] Production.INFO: ==4085== Releasing lock... [2025-02-04 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:50:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-04 21:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:51:06 [end_date_ymd] => 2025-02-04 21:51:06 [RateCDR] => 1 ) [2025-02-04 21:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:51:06' and `end` < '2025-02-04 21:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:51:19] Production.INFO: count ==1022 [2025-02-04 21:51:19] Production.ERROR: pbx CDR StartTime 2025-02-04 18:51:06 - End Time 2025-02-04 21:51:06 [2025-02-04 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403227', 'tblTempUsageDetail_20' ) start [2025-02-04 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403227', 'tblTempUsageDetail_20' ) end [2025-02-04 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403227', 'tblTempVendorCDR_20' ) start [2025-02-04 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403227', 'tblTempVendorCDR_20' ) end [2025-02-04 21:51:19] Production.INFO: ProcessCDR(1,14403227,1,1,2) [2025-02-04 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403227', 'tblTempUsageDetail_20' ) start [2025-02-04 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403227', 'tblTempUsageDetail_20' ) end [2025-02-04 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:51:22] Production.INFO: ==4205== Releasing lock... [2025-02-04 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:51:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 21:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:52:04 [end_date_ymd] => 2025-02-04 21:52:04 [RateCDR] => 1 ) [2025-02-04 21: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-02-04 18:52:04' and `end` < '2025-02-04 21: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-02-04 21:52:17] Production.INFO: count ==1020 [2025-02-04 21:52:17] Production.ERROR: pbx CDR StartTime 2025-02-04 18:52:04 - End Time 2025-02-04 21:52:04 [2025-02-04 21:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403232', 'tblTempUsageDetail_20' ) start [2025-02-04 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403232', 'tblTempUsageDetail_20' ) end [2025-02-04 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403232', 'tblTempVendorCDR_20' ) start [2025-02-04 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403232', 'tblTempVendorCDR_20' ) end [2025-02-04 21:52:17] Production.INFO: ProcessCDR(1,14403232,1,1,2) [2025-02-04 21:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403232', 'tblTempUsageDetail_20' ) start [2025-02-04 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403232', 'tblTempUsageDetail_20' ) end [2025-02-04 21:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:52:21] Production.INFO: ==4311== Releasing lock... [2025-02-04 21:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:52:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:53:05 [end_date_ymd] => 2025-02-04 21:53:05 [RateCDR] => 1 ) [2025-02-04 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:53:05' and `end` < '2025-02-04 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:53:18] Production.INFO: count ==1016 [2025-02-04 21:53:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:53:05 - End Time 2025-02-04 21:53:05 [2025-02-04 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403237', 'tblTempUsageDetail_20' ) start [2025-02-04 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403237', 'tblTempUsageDetail_20' ) end [2025-02-04 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403237', 'tblTempVendorCDR_20' ) start [2025-02-04 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403237', 'tblTempVendorCDR_20' ) end [2025-02-04 21:53:18] Production.INFO: ProcessCDR(1,14403237,1,1,2) [2025-02-04 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403237', 'tblTempUsageDetail_20' ) start [2025-02-04 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403237', 'tblTempUsageDetail_20' ) end [2025-02-04 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:53:21] Production.INFO: ==4401== Releasing lock... [2025-02-04 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:53:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:54:05 [end_date_ymd] => 2025-02-04 21:54:05 [RateCDR] => 1 ) [2025-02-04 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:54:05' and `end` < '2025-02-04 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:54:18] Production.INFO: count ==1012 [2025-02-04 21:54:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:54:05 - End Time 2025-02-04 21:54:05 [2025-02-04 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403242', 'tblTempUsageDetail_20' ) start [2025-02-04 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403242', 'tblTempUsageDetail_20' ) end [2025-02-04 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403242', 'tblTempVendorCDR_20' ) start [2025-02-04 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403242', 'tblTempVendorCDR_20' ) end [2025-02-04 21:54:18] Production.INFO: ProcessCDR(1,14403242,1,1,2) [2025-02-04 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403242', 'tblTempUsageDetail_20' ) start [2025-02-04 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403242', 'tblTempUsageDetail_20' ) end [2025-02-04 21:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:54:21] Production.INFO: ==4484== Releasing lock... [2025-02-04 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:54:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:55:05 [end_date_ymd] => 2025-02-04 21:55:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 18:55:05' and `end` < '2025-02-04 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-02-04 21:55:18] Production.INFO: count ==1011 [2025-02-04 21:55:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:55:05 - End Time 2025-02-04 21:55:05 [2025-02-04 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403247', 'tblTempUsageDetail_20' ) start [2025-02-04 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403247', 'tblTempUsageDetail_20' ) end [2025-02-04 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403247', 'tblTempVendorCDR_20' ) start [2025-02-04 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403247', 'tblTempVendorCDR_20' ) end [2025-02-04 21:55:18] Production.INFO: ProcessCDR(1,14403247,1,1,2) [2025-02-04 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403247', 'tblTempUsageDetail_20' ) start [2025-02-04 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403247', 'tblTempUsageDetail_20' ) end [2025-02-04 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:55:21] Production.INFO: ==4625== Releasing lock... [2025-02-04 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:55:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:56:06 [end_date_ymd] => 2025-02-04 21:56:06 [RateCDR] => 1 ) [2025-02-04 21:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:56:06' and `end` < '2025-02-04 21:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:56:20] Production.INFO: count ==1030 [2025-02-04 21:56:20] Production.ERROR: pbx CDR StartTime 2025-02-04 18:56:06 - End Time 2025-02-04 21:56:06 [2025-02-04 21:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403252', 'tblTempUsageDetail_20' ) start [2025-02-04 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403252', 'tblTempUsageDetail_20' ) end [2025-02-04 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403252', 'tblTempVendorCDR_20' ) start [2025-02-04 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403252', 'tblTempVendorCDR_20' ) end [2025-02-04 21:56:20] Production.INFO: ProcessCDR(1,14403252,1,1,2) [2025-02-04 21:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403252', 'tblTempUsageDetail_20' ) start [2025-02-04 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403252', 'tblTempUsageDetail_20' ) end [2025-02-04 21:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:56:23] Production.INFO: ==4752== Releasing lock... [2025-02-04 21:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:56:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:57:05 [end_date_ymd] => 2025-02-04 21:57:05 [RateCDR] => 1 ) [2025-02-04 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:57:05' and `end` < '2025-02-04 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:57:19] Production.INFO: count ==1024 [2025-02-04 21:57:19] Production.ERROR: pbx CDR StartTime 2025-02-04 18:57:05 - End Time 2025-02-04 21:57:05 [2025-02-04 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403257', 'tblTempUsageDetail_20' ) start [2025-02-04 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403257', 'tblTempUsageDetail_20' ) end [2025-02-04 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403257', 'tblTempVendorCDR_20' ) start [2025-02-04 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403257', 'tblTempVendorCDR_20' ) end [2025-02-04 21:57:19] Production.INFO: ProcessCDR(1,14403257,1,1,2) [2025-02-04 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403257', 'tblTempUsageDetail_20' ) start [2025-02-04 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403257', 'tblTempUsageDetail_20' ) end [2025-02-04 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:57:22] Production.INFO: ==4860== Releasing lock... [2025-02-04 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:57:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:58:05 [end_date_ymd] => 2025-02-04 21:58:05 [RateCDR] => 1 ) [2025-02-04 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:58:05' and `end` < '2025-02-04 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:58:20] Production.INFO: count ==1020 [2025-02-04 21:58:20] Production.ERROR: pbx CDR StartTime 2025-02-04 18:58:05 - End Time 2025-02-04 21:58:05 [2025-02-04 21:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403262', 'tblTempUsageDetail_20' ) start [2025-02-04 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403262', 'tblTempUsageDetail_20' ) end [2025-02-04 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403262', 'tblTempVendorCDR_20' ) start [2025-02-04 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403262', 'tblTempVendorCDR_20' ) end [2025-02-04 21:58:20] Production.INFO: ProcessCDR(1,14403262,1,1,2) [2025-02-04 21:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403262', 'tblTempUsageDetail_20' ) start [2025-02-04 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403262', 'tblTempUsageDetail_20' ) end [2025-02-04 21:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:58:23] Production.INFO: ==4973== Releasing lock... [2025-02-04 21:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:58:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 18:59:05 [end_date_ymd] => 2025-02-04 21:59:05 [RateCDR] => 1 ) [2025-02-04 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 18:59:05' and `end` < '2025-02-04 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 21:59:17] Production.INFO: count ==1018 [2025-02-04 21:59:18] Production.ERROR: pbx CDR StartTime 2025-02-04 18:59:05 - End Time 2025-02-04 21:59:05 [2025-02-04 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403267', 'tblTempUsageDetail_20' ) start [2025-02-04 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403267', 'tblTempUsageDetail_20' ) end [2025-02-04 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403267', 'tblTempVendorCDR_20' ) start [2025-02-04 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403267', 'tblTempVendorCDR_20' ) end [2025-02-04 21:59:18] Production.INFO: ProcessCDR(1,14403267,1,1,2) [2025-02-04 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403267', 'tblTempUsageDetail_20' ) start [2025-02-04 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403267', 'tblTempUsageDetail_20' ) end [2025-02-04 21:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 21:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 21:59:21] Production.INFO: ==5050== Releasing lock... [2025-02-04 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 21:59:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-04 22:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:00:07 [end_date_ymd] => 2025-02-04 22:00:07 [RateCDR] => 1 ) [2025-02-04 22:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:00:07' and `end` < '2025-02-04 22:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:00:20] Production.INFO: count ==1018 [2025-02-04 22:00:20] Production.ERROR: pbx CDR StartTime 2025-02-04 19:00:07 - End Time 2025-02-04 22:00:07 [2025-02-04 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403273', 'tblTempUsageDetail_20' ) start [2025-02-04 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403273', 'tblTempUsageDetail_20' ) end [2025-02-04 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403273', 'tblTempVendorCDR_20' ) start [2025-02-04 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403273', 'tblTempVendorCDR_20' ) end [2025-02-04 22:00:20] Production.INFO: ProcessCDR(1,14403273,1,1,2) [2025-02-04 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403273', 'tblTempUsageDetail_20' ) start [2025-02-04 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403273', 'tblTempUsageDetail_20' ) end [2025-02-04 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:00:23] Production.INFO: ==5138== Releasing lock... [2025-02-04 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:00:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:01:05 [end_date_ymd] => 2025-02-04 22:01:05 [RateCDR] => 1 ) [2025-02-04 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:01:05' and `end` < '2025-02-04 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:01:18] Production.INFO: count ==965 [2025-02-04 22:01:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:01:05 - End Time 2025-02-04 22:01:05 [2025-02-04 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403278', 'tblTempUsageDetail_20' ) start [2025-02-04 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403278', 'tblTempUsageDetail_20' ) end [2025-02-04 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403278', 'tblTempVendorCDR_20' ) start [2025-02-04 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403278', 'tblTempVendorCDR_20' ) end [2025-02-04 22:01:18] Production.INFO: ProcessCDR(1,14403278,1,1,2) [2025-02-04 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403278', 'tblTempUsageDetail_20' ) start [2025-02-04 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403278', 'tblTempUsageDetail_20' ) end [2025-02-04 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:01:21] Production.INFO: ==5252== Releasing lock... [2025-02-04 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:01:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-04 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:02:05 [end_date_ymd] => 2025-02-04 22:02:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 19:02:05' and `end` < '2025-02-04 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-02-04 22:02:17] Production.INFO: count ==964 [2025-02-04 22:02:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:02:05 - End Time 2025-02-04 22:02:05 [2025-02-04 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403283', 'tblTempUsageDetail_20' ) start [2025-02-04 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403283', 'tblTempUsageDetail_20' ) end [2025-02-04 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403283', 'tblTempVendorCDR_20' ) start [2025-02-04 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403283', 'tblTempVendorCDR_20' ) end [2025-02-04 22:02:18] Production.INFO: ProcessCDR(1,14403283,1,1,2) [2025-02-04 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403283', 'tblTempUsageDetail_20' ) start [2025-02-04 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403283', 'tblTempUsageDetail_20' ) end [2025-02-04 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:02:21] Production.INFO: ==5366== Releasing lock... [2025-02-04 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:02:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-04 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:03:05 [end_date_ymd] => 2025-02-04 22:03:05 [RateCDR] => 1 ) [2025-02-04 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:03:05' and `end` < '2025-02-04 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:03:19] Production.INFO: count ==961 [2025-02-04 22:03:20] Production.ERROR: pbx CDR StartTime 2025-02-04 19:03:05 - End Time 2025-02-04 22:03:05 [2025-02-04 22:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403288', 'tblTempUsageDetail_20' ) start [2025-02-04 22:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403288', 'tblTempUsageDetail_20' ) end [2025-02-04 22:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403288', 'tblTempVendorCDR_20' ) start [2025-02-04 22:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403288', 'tblTempVendorCDR_20' ) end [2025-02-04 22:03:20] Production.INFO: ProcessCDR(1,14403288,1,1,2) [2025-02-04 22:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403288', 'tblTempUsageDetail_20' ) start [2025-02-04 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403288', 'tblTempUsageDetail_20' ) end [2025-02-04 22:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:03:23] Production.INFO: ==5469== Releasing lock... [2025-02-04 22:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:03:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-04 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:04:05 [end_date_ymd] => 2025-02-04 22:04:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 19:04:05' and `end` < '2025-02-04 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-02-04 22:04:18] Production.INFO: count ==961 [2025-02-04 22:04:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:04:05 - End Time 2025-02-04 22:04:05 [2025-02-04 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403293', 'tblTempUsageDetail_20' ) start [2025-02-04 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403293', 'tblTempUsageDetail_20' ) end [2025-02-04 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403293', 'tblTempVendorCDR_20' ) start [2025-02-04 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403293', 'tblTempVendorCDR_20' ) end [2025-02-04 22:04:18] Production.INFO: ProcessCDR(1,14403293,1,1,2) [2025-02-04 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403293', 'tblTempUsageDetail_20' ) start [2025-02-04 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403293', 'tblTempUsageDetail_20' ) end [2025-02-04 22:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:04:21] Production.INFO: ==5583== Releasing lock... [2025-02-04 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:04:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-04 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:05:05 [end_date_ymd] => 2025-02-04 22:05:05 [RateCDR] => 1 ) [2025-02-04 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:05:05' and `end` < '2025-02-04 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:05:18] Production.INFO: count ==960 [2025-02-04 22:05:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:05:05 - End Time 2025-02-04 22:05:05 [2025-02-04 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403298', 'tblTempUsageDetail_20' ) start [2025-02-04 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403298', 'tblTempUsageDetail_20' ) end [2025-02-04 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403298', 'tblTempVendorCDR_20' ) start [2025-02-04 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403298', 'tblTempVendorCDR_20' ) end [2025-02-04 22:05:18] Production.INFO: ProcessCDR(1,14403298,1,1,2) [2025-02-04 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403298', 'tblTempUsageDetail_20' ) start [2025-02-04 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403298', 'tblTempUsageDetail_20' ) end [2025-02-04 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:05:21] Production.INFO: ==5695== Releasing lock... [2025-02-04 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:05:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-04 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:06:05 [end_date_ymd] => 2025-02-04 22:06:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 19:06:05' and `end` < '2025-02-04 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-02-04 22:06:18] Production.INFO: count ==961 [2025-02-04 22:06:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:06:05 - End Time 2025-02-04 22:06:05 [2025-02-04 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403303', 'tblTempUsageDetail_20' ) start [2025-02-04 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403303', 'tblTempUsageDetail_20' ) end [2025-02-04 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403303', 'tblTempVendorCDR_20' ) start [2025-02-04 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403303', 'tblTempVendorCDR_20' ) end [2025-02-04 22:06:18] Production.INFO: ProcessCDR(1,14403303,1,1,2) [2025-02-04 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403303', 'tblTempUsageDetail_20' ) start [2025-02-04 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403303', 'tblTempUsageDetail_20' ) end [2025-02-04 22:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:06:21] Production.INFO: ==5800== Releasing lock... [2025-02-04 22:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:06:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-04 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:07:05 [end_date_ymd] => 2025-02-04 22:07:05 [RateCDR] => 1 ) [2025-02-04 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:07:05' and `end` < '2025-02-04 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:07:18] Production.INFO: count ==959 [2025-02-04 22:07:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:07:05 - End Time 2025-02-04 22:07:05 [2025-02-04 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403308', 'tblTempUsageDetail_20' ) start [2025-02-04 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403308', 'tblTempUsageDetail_20' ) end [2025-02-04 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403308', 'tblTempVendorCDR_20' ) start [2025-02-04 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403308', 'tblTempVendorCDR_20' ) end [2025-02-04 22:07:18] Production.INFO: ProcessCDR(1,14403308,1,1,2) [2025-02-04 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403308', 'tblTempUsageDetail_20' ) start [2025-02-04 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403308', 'tblTempUsageDetail_20' ) end [2025-02-04 22:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:07:21] Production.INFO: ==5883== Releasing lock... [2025-02-04 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:07:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-04 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:08:05 [end_date_ymd] => 2025-02-04 22:08:05 [RateCDR] => 1 ) [2025-02-04 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:08:05' and `end` < '2025-02-04 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:08:18] Production.INFO: count ==957 [2025-02-04 22:08:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:08:05 - End Time 2025-02-04 22:08:05 [2025-02-04 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403313', 'tblTempUsageDetail_20' ) start [2025-02-04 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403313', 'tblTempUsageDetail_20' ) end [2025-02-04 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403313', 'tblTempVendorCDR_20' ) start [2025-02-04 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403313', 'tblTempVendorCDR_20' ) end [2025-02-04 22:08:18] Production.INFO: ProcessCDR(1,14403313,1,1,2) [2025-02-04 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403313', 'tblTempUsageDetail_20' ) start [2025-02-04 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403313', 'tblTempUsageDetail_20' ) end [2025-02-04 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:08:21] Production.INFO: ==5967== Releasing lock... [2025-02-04 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:08:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-04 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:09:05 [end_date_ymd] => 2025-02-04 22:09:05 [RateCDR] => 1 ) [2025-02-04 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:09:05' and `end` < '2025-02-04 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:09:18] Production.INFO: count ==957 [2025-02-04 22:09:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:09:05 - End Time 2025-02-04 22:09:05 [2025-02-04 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403318', 'tblTempUsageDetail_20' ) start [2025-02-04 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403318', 'tblTempUsageDetail_20' ) end [2025-02-04 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403318', 'tblTempVendorCDR_20' ) start [2025-02-04 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403318', 'tblTempVendorCDR_20' ) end [2025-02-04 22:09:18] Production.INFO: ProcessCDR(1,14403318,1,1,2) [2025-02-04 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403318', 'tblTempUsageDetail_20' ) start [2025-02-04 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403318', 'tblTempUsageDetail_20' ) end [2025-02-04 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:09:22] Production.INFO: ==6075== Releasing lock... [2025-02-04 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:09:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-04 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:10:06 [end_date_ymd] => 2025-02-04 22:10:06 [RateCDR] => 1 ) [2025-02-04 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:10:06' and `end` < '2025-02-04 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:10:19] Production.INFO: count ==956 [2025-02-04 22:10:19] Production.ERROR: pbx CDR StartTime 2025-02-04 19:10:06 - End Time 2025-02-04 22:10:06 [2025-02-04 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403324', 'tblTempUsageDetail_20' ) start [2025-02-04 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403324', 'tblTempUsageDetail_20' ) end [2025-02-04 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403324', 'tblTempVendorCDR_20' ) start [2025-02-04 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403324', 'tblTempVendorCDR_20' ) end [2025-02-04 22:10:19] Production.INFO: ProcessCDR(1,14403324,1,1,2) [2025-02-04 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403324', 'tblTempUsageDetail_20' ) start [2025-02-04 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403324', 'tblTempUsageDetail_20' ) end [2025-02-04 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:10:22] Production.INFO: ==6197== Releasing lock... [2025-02-04 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:10:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-04 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:11:05 [end_date_ymd] => 2025-02-04 22:11:05 [RateCDR] => 1 ) [2025-02-04 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:11:05' and `end` < '2025-02-04 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:11:18] Production.INFO: count ==912 [2025-02-04 22:11:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:11:05 - End Time 2025-02-04 22:11:05 [2025-02-04 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403329', 'tblTempUsageDetail_20' ) start [2025-02-04 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403329', 'tblTempUsageDetail_20' ) end [2025-02-04 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403329', 'tblTempVendorCDR_20' ) start [2025-02-04 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403329', 'tblTempVendorCDR_20' ) end [2025-02-04 22:11:18] Production.INFO: ProcessCDR(1,14403329,1,1,2) [2025-02-04 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403329', 'tblTempUsageDetail_20' ) start [2025-02-04 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403329', 'tblTempUsageDetail_20' ) end [2025-02-04 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:11:21] Production.INFO: ==6353== Releasing lock... [2025-02-04 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:11:21] Production.INFO: 34 MB #Memory Used# [2025-02-04 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:12:05 [end_date_ymd] => 2025-02-04 22:12:05 [RateCDR] => 1 ) [2025-02-04 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:12:05' and `end` < '2025-02-04 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:12:18] Production.INFO: count ==911 [2025-02-04 22:12:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:12:05 - End Time 2025-02-04 22:12:05 [2025-02-04 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403334', 'tblTempUsageDetail_20' ) start [2025-02-04 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403334', 'tblTempUsageDetail_20' ) end [2025-02-04 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403334', 'tblTempVendorCDR_20' ) start [2025-02-04 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403334', 'tblTempVendorCDR_20' ) end [2025-02-04 22:12:19] Production.INFO: ProcessCDR(1,14403334,1,1,2) [2025-02-04 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403334', 'tblTempUsageDetail_20' ) start [2025-02-04 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403334', 'tblTempUsageDetail_20' ) end [2025-02-04 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:12:22] Production.INFO: ==6464== Releasing lock... [2025-02-04 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:12:22] Production.INFO: 34 MB #Memory Used# [2025-02-04 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:13:05 [end_date_ymd] => 2025-02-04 22:13:05 [RateCDR] => 1 ) [2025-02-04 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:13:05' and `end` < '2025-02-04 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:13:18] Production.INFO: count ==910 [2025-02-04 22:13:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:13:05 - End Time 2025-02-04 22:13:05 [2025-02-04 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403339', 'tblTempUsageDetail_20' ) start [2025-02-04 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403339', 'tblTempUsageDetail_20' ) end [2025-02-04 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403339', 'tblTempVendorCDR_20' ) start [2025-02-04 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403339', 'tblTempVendorCDR_20' ) end [2025-02-04 22:13:18] Production.INFO: ProcessCDR(1,14403339,1,1,2) [2025-02-04 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403339', 'tblTempUsageDetail_20' ) start [2025-02-04 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403339', 'tblTempUsageDetail_20' ) end [2025-02-04 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:13:21] Production.INFO: ==6580== Releasing lock... [2025-02-04 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:13:21] Production.INFO: 34 MB #Memory Used# [2025-02-04 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:14:05 [end_date_ymd] => 2025-02-04 22:14:05 [RateCDR] => 1 ) [2025-02-04 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:14:05' and `end` < '2025-02-04 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:14:21] Production.INFO: count ==908 [2025-02-04 22:14:21] Production.ERROR: pbx CDR StartTime 2025-02-04 19:14:05 - End Time 2025-02-04 22:14:05 [2025-02-04 22:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403344', 'tblTempUsageDetail_20' ) start [2025-02-04 22:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403344', 'tblTempUsageDetail_20' ) end [2025-02-04 22:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403344', 'tblTempVendorCDR_20' ) start [2025-02-04 22:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403344', 'tblTempVendorCDR_20' ) end [2025-02-04 22:14:21] Production.INFO: ProcessCDR(1,14403344,1,1,2) [2025-02-04 22:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403344', 'tblTempUsageDetail_20' ) start [2025-02-04 22:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403344', 'tblTempUsageDetail_20' ) end [2025-02-04 22:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:14:24] Production.INFO: ==6696== Releasing lock... [2025-02-04 22:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:14:24] Production.INFO: 34 MB #Memory Used# [2025-02-04 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:15:05 [end_date_ymd] => 2025-02-04 22:15:05 [RateCDR] => 1 ) [2025-02-04 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:15:05' and `end` < '2025-02-04 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:15:18] Production.INFO: count ==904 [2025-02-04 22:15:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:15:05 - End Time 2025-02-04 22:15:05 [2025-02-04 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403349', 'tblTempUsageDetail_20' ) start [2025-02-04 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403349', 'tblTempUsageDetail_20' ) end [2025-02-04 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403349', 'tblTempVendorCDR_20' ) start [2025-02-04 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403349', 'tblTempVendorCDR_20' ) end [2025-02-04 22:15:18] Production.INFO: ProcessCDR(1,14403349,1,1,2) [2025-02-04 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403349', 'tblTempUsageDetail_20' ) start [2025-02-04 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403349', 'tblTempUsageDetail_20' ) end [2025-02-04 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:15:21] Production.INFO: ==6802== Releasing lock... [2025-02-04 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:15:21] Production.INFO: 34 MB #Memory Used# [2025-02-04 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:16:05 [end_date_ymd] => 2025-02-04 22:16:05 [RateCDR] => 1 ) [2025-02-04 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:16:05' and `end` < '2025-02-04 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:16:18] Production.INFO: count ==902 [2025-02-04 22:16:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:16:05 - End Time 2025-02-04 22:16:05 [2025-02-04 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403354', 'tblTempUsageDetail_20' ) start [2025-02-04 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403354', 'tblTempUsageDetail_20' ) end [2025-02-04 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403354', 'tblTempVendorCDR_20' ) start [2025-02-04 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403354', 'tblTempVendorCDR_20' ) end [2025-02-04 22:16:18] Production.INFO: ProcessCDR(1,14403354,1,1,2) [2025-02-04 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403354', 'tblTempUsageDetail_20' ) start [2025-02-04 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403354', 'tblTempUsageDetail_20' ) end [2025-02-04 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:16:21] Production.INFO: ==6881== Releasing lock... [2025-02-04 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:16:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:17:05 [end_date_ymd] => 2025-02-04 22:17:05 [RateCDR] => 1 ) [2025-02-04 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:17:05' and `end` < '2025-02-04 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:17:20] Production.INFO: count ==902 [2025-02-04 22:17:20] Production.ERROR: pbx CDR StartTime 2025-02-04 19:17:05 - End Time 2025-02-04 22:17:05 [2025-02-04 22:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403359', 'tblTempUsageDetail_20' ) start [2025-02-04 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403359', 'tblTempUsageDetail_20' ) end [2025-02-04 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403359', 'tblTempVendorCDR_20' ) start [2025-02-04 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403359', 'tblTempVendorCDR_20' ) end [2025-02-04 22:17:20] Production.INFO: ProcessCDR(1,14403359,1,1,2) [2025-02-04 22:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403359', 'tblTempUsageDetail_20' ) start [2025-02-04 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403359', 'tblTempUsageDetail_20' ) end [2025-02-04 22:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:17:23] Production.INFO: ==6961== Releasing lock... [2025-02-04 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:17:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 22:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:18:04 [end_date_ymd] => 2025-02-04 22:18:04 [RateCDR] => 1 ) [2025-02-04 22:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:18:04' and `end` < '2025-02-04 22:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:18:18] Production.INFO: count ==902 [2025-02-04 22:18:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:18:04 - End Time 2025-02-04 22:18:04 [2025-02-04 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403364', 'tblTempUsageDetail_20' ) start [2025-02-04 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403364', 'tblTempUsageDetail_20' ) end [2025-02-04 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403364', 'tblTempVendorCDR_20' ) start [2025-02-04 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403364', 'tblTempVendorCDR_20' ) end [2025-02-04 22:18:18] Production.INFO: ProcessCDR(1,14403364,1,1,2) [2025-02-04 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403364', 'tblTempUsageDetail_20' ) start [2025-02-04 22:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403364', 'tblTempUsageDetail_20' ) end [2025-02-04 22:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:18:23] Production.INFO: ==7072== Releasing lock... [2025-02-04 22:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:18:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:19:05 [end_date_ymd] => 2025-02-04 22:19:05 [RateCDR] => 1 ) [2025-02-04 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:19:05' and `end` < '2025-02-04 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:19:18] Production.INFO: count ==930 [2025-02-04 22:19:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:19:05 - End Time 2025-02-04 22:19:05 [2025-02-04 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403369', 'tblTempUsageDetail_20' ) start [2025-02-04 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403369', 'tblTempUsageDetail_20' ) end [2025-02-04 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403369', 'tblTempVendorCDR_20' ) start [2025-02-04 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403369', 'tblTempVendorCDR_20' ) end [2025-02-04 22:19:18] Production.INFO: ProcessCDR(1,14403369,1,1,2) [2025-02-04 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403369', 'tblTempUsageDetail_20' ) start [2025-02-04 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403369', 'tblTempUsageDetail_20' ) end [2025-02-04 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:19:22] Production.INFO: ==7175== Releasing lock... [2025-02-04 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:19:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:20:05 [end_date_ymd] => 2025-02-04 22:20:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 19:20:05' and `end` < '2025-02-04 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-02-04 22:20:18] Production.INFO: count ==933 [2025-02-04 22:20:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:20:05 - End Time 2025-02-04 22:20:05 [2025-02-04 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403374', 'tblTempUsageDetail_20' ) start [2025-02-04 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403374', 'tblTempUsageDetail_20' ) end [2025-02-04 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403374', 'tblTempVendorCDR_20' ) start [2025-02-04 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403374', 'tblTempVendorCDR_20' ) end [2025-02-04 22:20:18] Production.INFO: ProcessCDR(1,14403374,1,1,2) [2025-02-04 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403374', 'tblTempUsageDetail_20' ) start [2025-02-04 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403374', 'tblTempUsageDetail_20' ) end [2025-02-04 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:20:22] Production.INFO: ==7260== Releasing lock... [2025-02-04 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:20:22] Production.INFO: 35 MB #Memory Used# [2025-02-04 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:21:05 [end_date_ymd] => 2025-02-04 22:21:05 [RateCDR] => 1 ) [2025-02-04 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:21:05' and `end` < '2025-02-04 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:21:18] Production.INFO: count ==918 [2025-02-04 22:21:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:21:05 - End Time 2025-02-04 22:21:05 [2025-02-04 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403380', 'tblTempUsageDetail_20' ) start [2025-02-04 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403380', 'tblTempUsageDetail_20' ) end [2025-02-04 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403380', 'tblTempVendorCDR_20' ) start [2025-02-04 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403380', 'tblTempVendorCDR_20' ) end [2025-02-04 22:21:18] Production.INFO: ProcessCDR(1,14403380,1,1,2) [2025-02-04 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403380', 'tblTempUsageDetail_20' ) start [2025-02-04 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403380', 'tblTempUsageDetail_20' ) end [2025-02-04 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:21:21] Production.INFO: ==7347== Releasing lock... [2025-02-04 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:21:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:22:05 [end_date_ymd] => 2025-02-04 22:22:05 [RateCDR] => 1 ) [2025-02-04 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:22:05' and `end` < '2025-02-04 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:22:18] Production.INFO: count ==918 [2025-02-04 22:22:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:22:05 - End Time 2025-02-04 22:22:05 [2025-02-04 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403385', 'tblTempUsageDetail_20' ) start [2025-02-04 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403385', 'tblTempUsageDetail_20' ) end [2025-02-04 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403385', 'tblTempVendorCDR_20' ) start [2025-02-04 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403385', 'tblTempVendorCDR_20' ) end [2025-02-04 22:22:18] Production.INFO: ProcessCDR(1,14403385,1,1,2) [2025-02-04 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403385', 'tblTempUsageDetail_20' ) start [2025-02-04 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403385', 'tblTempUsageDetail_20' ) end [2025-02-04 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:22:21] Production.INFO: ==7469== Releasing lock... [2025-02-04 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:22:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:23:05 [end_date_ymd] => 2025-02-04 22:23:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 19:23:05' and `end` < '2025-02-04 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-02-04 22:23:18] Production.INFO: count ==917 [2025-02-04 22:23:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:23:05 - End Time 2025-02-04 22:23:05 [2025-02-04 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403390', 'tblTempUsageDetail_20' ) start [2025-02-04 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403390', 'tblTempUsageDetail_20' ) end [2025-02-04 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403390', 'tblTempVendorCDR_20' ) start [2025-02-04 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403390', 'tblTempVendorCDR_20' ) end [2025-02-04 22:23:18] Production.INFO: ProcessCDR(1,14403390,1,1,2) [2025-02-04 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403390', 'tblTempUsageDetail_20' ) start [2025-02-04 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403390', 'tblTempUsageDetail_20' ) end [2025-02-04 22:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:23:21] Production.INFO: ==7607== Releasing lock... [2025-02-04 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:23:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:24:05 [end_date_ymd] => 2025-02-04 22:24:05 [RateCDR] => 1 ) [2025-02-04 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:24:05' and `end` < '2025-02-04 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:24:18] Production.INFO: count ==917 [2025-02-04 22:24:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:24:05 - End Time 2025-02-04 22:24:05 [2025-02-04 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403395', 'tblTempUsageDetail_20' ) start [2025-02-04 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403395', 'tblTempUsageDetail_20' ) end [2025-02-04 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403395', 'tblTempVendorCDR_20' ) start [2025-02-04 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403395', 'tblTempVendorCDR_20' ) end [2025-02-04 22:24:18] Production.INFO: ProcessCDR(1,14403395,1,1,2) [2025-02-04 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403395', 'tblTempUsageDetail_20' ) start [2025-02-04 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403395', 'tblTempUsageDetail_20' ) end [2025-02-04 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:24:21] Production.INFO: ==7734== Releasing lock... [2025-02-04 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:24:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:25:05 [end_date_ymd] => 2025-02-04 22:25:05 [RateCDR] => 1 ) [2025-02-04 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:25:05' and `end` < '2025-02-04 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:25:18] Production.INFO: count ==909 [2025-02-04 22:25:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:25:05 - End Time 2025-02-04 22:25:05 [2025-02-04 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403400', 'tblTempUsageDetail_20' ) start [2025-02-04 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403400', 'tblTempUsageDetail_20' ) end [2025-02-04 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403400', 'tblTempVendorCDR_20' ) start [2025-02-04 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403400', 'tblTempVendorCDR_20' ) end [2025-02-04 22:25:18] Production.INFO: ProcessCDR(1,14403400,1,1,2) [2025-02-04 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403400', 'tblTempUsageDetail_20' ) start [2025-02-04 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403400', 'tblTempUsageDetail_20' ) end [2025-02-04 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:25:21] Production.INFO: ==7829== Releasing lock... [2025-02-04 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:25:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:26:05 [end_date_ymd] => 2025-02-04 22:26:05 [RateCDR] => 1 ) [2025-02-04 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:26:05' and `end` < '2025-02-04 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:26:20] Production.INFO: count ==909 [2025-02-04 22:26:20] Production.ERROR: pbx CDR StartTime 2025-02-04 19:26:05 - End Time 2025-02-04 22:26:05 [2025-02-04 22:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403405', 'tblTempUsageDetail_20' ) start [2025-02-04 22:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403405', 'tblTempUsageDetail_20' ) end [2025-02-04 22:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403405', 'tblTempVendorCDR_20' ) start [2025-02-04 22:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403405', 'tblTempVendorCDR_20' ) end [2025-02-04 22:26:20] Production.INFO: ProcessCDR(1,14403405,1,1,2) [2025-02-04 22:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403405', 'tblTempUsageDetail_20' ) start [2025-02-04 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403405', 'tblTempUsageDetail_20' ) end [2025-02-04 22:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:26:23] Production.INFO: ==7976== Releasing lock... [2025-02-04 22:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:26:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:27:05 [end_date_ymd] => 2025-02-04 22:27:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 19:27:05' and `end` < '2025-02-04 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-02-04 22:27:18] Production.INFO: count ==917 [2025-02-04 22:27:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:27:05 - End Time 2025-02-04 22:27:05 [2025-02-04 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403410', 'tblTempUsageDetail_20' ) start [2025-02-04 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403410', 'tblTempUsageDetail_20' ) end [2025-02-04 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403410', 'tblTempVendorCDR_20' ) start [2025-02-04 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403410', 'tblTempVendorCDR_20' ) end [2025-02-04 22:27:18] Production.INFO: ProcessCDR(1,14403410,1,1,2) [2025-02-04 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403410', 'tblTempUsageDetail_20' ) start [2025-02-04 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403410', 'tblTempUsageDetail_20' ) end [2025-02-04 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:27:21] Production.INFO: ==8070== Releasing lock... [2025-02-04 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:27:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:28:05 [end_date_ymd] => 2025-02-04 22:28:05 [RateCDR] => 1 ) [2025-02-04 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:28:05' and `end` < '2025-02-04 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:28:18] Production.INFO: count ==922 [2025-02-04 22:28:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:28:05 - End Time 2025-02-04 22:28:05 [2025-02-04 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403415', 'tblTempUsageDetail_20' ) start [2025-02-04 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403415', 'tblTempUsageDetail_20' ) end [2025-02-04 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403415', 'tblTempVendorCDR_20' ) start [2025-02-04 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403415', 'tblTempVendorCDR_20' ) end [2025-02-04 22:28:18] Production.INFO: ProcessCDR(1,14403415,1,1,2) [2025-02-04 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403415', 'tblTempUsageDetail_20' ) start [2025-02-04 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403415', 'tblTempUsageDetail_20' ) end [2025-02-04 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:28:21] Production.INFO: ==8176== Releasing lock... [2025-02-04 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:28:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:29:05 [end_date_ymd] => 2025-02-04 22:29:05 [RateCDR] => 1 ) [2025-02-04 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:29:05' and `end` < '2025-02-04 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:29:18] Production.INFO: count ==921 [2025-02-04 22:29:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:29:05 - End Time 2025-02-04 22:29:05 [2025-02-04 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403420', 'tblTempUsageDetail_20' ) start [2025-02-04 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403420', 'tblTempUsageDetail_20' ) end [2025-02-04 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403420', 'tblTempVendorCDR_20' ) start [2025-02-04 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403420', 'tblTempVendorCDR_20' ) end [2025-02-04 22:29:18] Production.INFO: ProcessCDR(1,14403420,1,1,2) [2025-02-04 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403420', 'tblTempUsageDetail_20' ) start [2025-02-04 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403420', 'tblTempUsageDetail_20' ) end [2025-02-04 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:29:22] Production.INFO: ==8279== Releasing lock... [2025-02-04 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:29:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:30:06 [end_date_ymd] => 2025-02-04 22:30:06 [RateCDR] => 1 ) [2025-02-04 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:30:06' and `end` < '2025-02-04 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:30:18] Production.INFO: count ==912 [2025-02-04 22:30:19] Production.ERROR: pbx CDR StartTime 2025-02-04 19:30:06 - End Time 2025-02-04 22:30:06 [2025-02-04 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403426', 'tblTempUsageDetail_20' ) start [2025-02-04 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403426', 'tblTempUsageDetail_20' ) end [2025-02-04 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403426', 'tblTempVendorCDR_20' ) start [2025-02-04 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403426', 'tblTempVendorCDR_20' ) end [2025-02-04 22:30:19] Production.INFO: ProcessCDR(1,14403426,1,1,2) [2025-02-04 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403426', 'tblTempUsageDetail_20' ) start [2025-02-04 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403426', 'tblTempUsageDetail_20' ) end [2025-02-04 22:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:30:22] Production.INFO: ==8383== Releasing lock... [2025-02-04 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:30:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:31:05 [end_date_ymd] => 2025-02-04 22:31:05 [RateCDR] => 1 ) [2025-02-04 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:31:05' and `end` < '2025-02-04 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:31:18] Production.INFO: count ==897 [2025-02-04 22:31:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:31:05 - End Time 2025-02-04 22:31:05 [2025-02-04 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403431', 'tblTempUsageDetail_20' ) start [2025-02-04 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403431', 'tblTempUsageDetail_20' ) end [2025-02-04 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403431', 'tblTempVendorCDR_20' ) start [2025-02-04 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403431', 'tblTempVendorCDR_20' ) end [2025-02-04 22:31:18] Production.INFO: ProcessCDR(1,14403431,1,1,2) [2025-02-04 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403431', 'tblTempUsageDetail_20' ) start [2025-02-04 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403431', 'tblTempUsageDetail_20' ) end [2025-02-04 22:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:31:23] Production.INFO: ==8493== Releasing lock... [2025-02-04 22:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:31:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:32:05 [end_date_ymd] => 2025-02-04 22:32:05 [RateCDR] => 1 ) [2025-02-04 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:32:05' and `end` < '2025-02-04 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:32:18] Production.INFO: count ==899 [2025-02-04 22:32:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:32:05 - End Time 2025-02-04 22:32:05 [2025-02-04 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403436', 'tblTempUsageDetail_20' ) start [2025-02-04 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403436', 'tblTempUsageDetail_20' ) end [2025-02-04 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403436', 'tblTempVendorCDR_20' ) start [2025-02-04 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403436', 'tblTempVendorCDR_20' ) end [2025-02-04 22:32:18] Production.INFO: ProcessCDR(1,14403436,1,1,2) [2025-02-04 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403436', 'tblTempUsageDetail_20' ) start [2025-02-04 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403436', 'tblTempUsageDetail_20' ) end [2025-02-04 22:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:32:21] Production.INFO: ==8601== Releasing lock... [2025-02-04 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:32:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:33:05 [end_date_ymd] => 2025-02-04 22:33:05 [RateCDR] => 1 ) [2025-02-04 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:33:05' and `end` < '2025-02-04 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:33:18] Production.INFO: count ==898 [2025-02-04 22:33:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:33:05 - End Time 2025-02-04 22:33:05 [2025-02-04 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403441', 'tblTempUsageDetail_20' ) start [2025-02-04 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403441', 'tblTempUsageDetail_20' ) end [2025-02-04 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403441', 'tblTempVendorCDR_20' ) start [2025-02-04 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403441', 'tblTempVendorCDR_20' ) end [2025-02-04 22:33:18] Production.INFO: ProcessCDR(1,14403441,1,1,2) [2025-02-04 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403441', 'tblTempUsageDetail_20' ) start [2025-02-04 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403441', 'tblTempUsageDetail_20' ) end [2025-02-04 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:33:21] Production.INFO: ==8709== Releasing lock... [2025-02-04 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:33:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 22:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:34:04 [end_date_ymd] => 2025-02-04 22:34:04 [RateCDR] => 1 ) [2025-02-04 22:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:34:04' and `end` < '2025-02-04 22:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:34:17] Production.INFO: count ==897 [2025-02-04 22:34:17] Production.ERROR: pbx CDR StartTime 2025-02-04 19:34:04 - End Time 2025-02-04 22:34:04 [2025-02-04 22:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403446', 'tblTempUsageDetail_20' ) start [2025-02-04 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403446', 'tblTempUsageDetail_20' ) end [2025-02-04 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403446', 'tblTempVendorCDR_20' ) start [2025-02-04 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403446', 'tblTempVendorCDR_20' ) end [2025-02-04 22:34:17] Production.INFO: ProcessCDR(1,14403446,1,1,2) [2025-02-04 22:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403446', 'tblTempUsageDetail_20' ) start [2025-02-04 22:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403446', 'tblTempUsageDetail_20' ) end [2025-02-04 22:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:34:20] Production.INFO: ==8809== Releasing lock... [2025-02-04 22:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:34:20] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:35:05 [end_date_ymd] => 2025-02-04 22:35:05 [RateCDR] => 1 ) [2025-02-04 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:35:05' and `end` < '2025-02-04 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:35:18] Production.INFO: count ==891 [2025-02-04 22:35:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:35:05 - End Time 2025-02-04 22:35:05 [2025-02-04 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403451', 'tblTempUsageDetail_20' ) start [2025-02-04 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403451', 'tblTempUsageDetail_20' ) end [2025-02-04 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403451', 'tblTempVendorCDR_20' ) start [2025-02-04 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403451', 'tblTempVendorCDR_20' ) end [2025-02-04 22:35:18] Production.INFO: ProcessCDR(1,14403451,1,1,2) [2025-02-04 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403451', 'tblTempUsageDetail_20' ) start [2025-02-04 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403451', 'tblTempUsageDetail_20' ) end [2025-02-04 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:35:21] Production.INFO: ==8912== Releasing lock... [2025-02-04 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:35:21] Production.INFO: 34 MB #Memory Used# [2025-02-04 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:36:05 [end_date_ymd] => 2025-02-04 22:36:05 [RateCDR] => 1 ) [2025-02-04 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:36:05' and `end` < '2025-02-04 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:36:18] Production.INFO: count ==890 [2025-02-04 22:36:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:36:05 - End Time 2025-02-04 22:36:05 [2025-02-04 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403456', 'tblTempUsageDetail_20' ) start [2025-02-04 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403456', 'tblTempUsageDetail_20' ) end [2025-02-04 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403456', 'tblTempVendorCDR_20' ) start [2025-02-04 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403456', 'tblTempVendorCDR_20' ) end [2025-02-04 22:36:18] Production.INFO: ProcessCDR(1,14403456,1,1,2) [2025-02-04 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403456', 'tblTempUsageDetail_20' ) start [2025-02-04 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403456', 'tblTempUsageDetail_20' ) end [2025-02-04 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:36:22] Production.INFO: ==9013== Releasing lock... [2025-02-04 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:36:22] Production.INFO: 34 MB #Memory Used# [2025-02-04 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:37:05 [end_date_ymd] => 2025-02-04 22:37:05 [RateCDR] => 1 ) [2025-02-04 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:37:05' and `end` < '2025-02-04 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:37:18] Production.INFO: count ==889 [2025-02-04 22:37:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:37:05 - End Time 2025-02-04 22:37:05 [2025-02-04 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403461', 'tblTempUsageDetail_20' ) start [2025-02-04 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403461', 'tblTempUsageDetail_20' ) end [2025-02-04 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403461', 'tblTempVendorCDR_20' ) start [2025-02-04 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403461', 'tblTempVendorCDR_20' ) end [2025-02-04 22:37:18] Production.INFO: ProcessCDR(1,14403461,1,1,2) [2025-02-04 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403461', 'tblTempUsageDetail_20' ) start [2025-02-04 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403461', 'tblTempUsageDetail_20' ) end [2025-02-04 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:37:21] Production.INFO: ==9124== Releasing lock... [2025-02-04 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:37:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:38:05 [end_date_ymd] => 2025-02-04 22:38:05 [RateCDR] => 1 ) [2025-02-04 22:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:38:05' and `end` < '2025-02-04 22:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:38:18] Production.INFO: count ==965 [2025-02-04 22:38:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:38:05 - End Time 2025-02-04 22:38:05 [2025-02-04 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403466', 'tblTempUsageDetail_20' ) start [2025-02-04 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403466', 'tblTempUsageDetail_20' ) end [2025-02-04 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403466', 'tblTempVendorCDR_20' ) start [2025-02-04 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403466', 'tblTempVendorCDR_20' ) end [2025-02-04 22:38:19] Production.INFO: ProcessCDR(1,14403466,1,1,2) [2025-02-04 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403466', 'tblTempUsageDetail_20' ) start [2025-02-04 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403466', 'tblTempUsageDetail_20' ) end [2025-02-04 22:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:38:22] Production.INFO: ==9235== Releasing lock... [2025-02-04 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:38:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:39:05 [end_date_ymd] => 2025-02-04 22:39:05 [RateCDR] => 1 ) [2025-02-04 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:39:05' and `end` < '2025-02-04 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:39:17] Production.INFO: count ==959 [2025-02-04 22:39:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:39:05 - End Time 2025-02-04 22:39:05 [2025-02-04 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403471', 'tblTempUsageDetail_20' ) start [2025-02-04 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403471', 'tblTempUsageDetail_20' ) end [2025-02-04 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403471', 'tblTempVendorCDR_20' ) start [2025-02-04 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403471', 'tblTempVendorCDR_20' ) end [2025-02-04 22:39:18] Production.INFO: ProcessCDR(1,14403471,1,1,2) [2025-02-04 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403471', 'tblTempUsageDetail_20' ) start [2025-02-04 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403471', 'tblTempUsageDetail_20' ) end [2025-02-04 22:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:39:20] Production.INFO: ==9344== Releasing lock... [2025-02-04 22:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:39:20] Production.INFO: 35 MB #Memory Used# [2025-02-04 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:40:06 [end_date_ymd] => 2025-02-04 22:40:06 [RateCDR] => 1 ) [2025-02-04 22:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:40:06' and `end` < '2025-02-04 22:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:40:19] Production.INFO: count ==960 [2025-02-04 22:40:19] Production.ERROR: pbx CDR StartTime 2025-02-04 19:40:06 - End Time 2025-02-04 22:40:06 [2025-02-04 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403477', 'tblTempUsageDetail_20' ) start [2025-02-04 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403477', 'tblTempUsageDetail_20' ) end [2025-02-04 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403477', 'tblTempVendorCDR_20' ) start [2025-02-04 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403477', 'tblTempVendorCDR_20' ) end [2025-02-04 22:40:19] Production.INFO: ProcessCDR(1,14403477,1,1,2) [2025-02-04 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403477', 'tblTempUsageDetail_20' ) start [2025-02-04 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403477', 'tblTempUsageDetail_20' ) end [2025-02-04 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:40:22] Production.INFO: ==9434== Releasing lock... [2025-02-04 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:40:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:41:05 [end_date_ymd] => 2025-02-04 22:41:05 [RateCDR] => 1 ) [2025-02-04 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:41:05' and `end` < '2025-02-04 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:41:19] Production.INFO: count ==944 [2025-02-04 22:41:19] Production.ERROR: pbx CDR StartTime 2025-02-04 19:41:05 - End Time 2025-02-04 22:41:05 [2025-02-04 22:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403482', 'tblTempUsageDetail_20' ) start [2025-02-04 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403482', 'tblTempUsageDetail_20' ) end [2025-02-04 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403482', 'tblTempVendorCDR_20' ) start [2025-02-04 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403482', 'tblTempVendorCDR_20' ) end [2025-02-04 22:41:19] Production.INFO: ProcessCDR(1,14403482,1,1,2) [2025-02-04 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403482', 'tblTempUsageDetail_20' ) start [2025-02-04 22:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403482', 'tblTempUsageDetail_20' ) end [2025-02-04 22:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:41:24] Production.INFO: ==9551== Releasing lock... [2025-02-04 22:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:41:24] Production.INFO: 35 MB #Memory Used# [2025-02-04 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:42:05 [end_date_ymd] => 2025-02-04 22:42:05 [RateCDR] => 1 ) [2025-02-04 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:42:05' and `end` < '2025-02-04 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:42:18] Production.INFO: count ==939 [2025-02-04 22:42:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:42:05 - End Time 2025-02-04 22:42:05 [2025-02-04 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403487', 'tblTempUsageDetail_20' ) start [2025-02-04 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403487', 'tblTempUsageDetail_20' ) end [2025-02-04 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403487', 'tblTempVendorCDR_20' ) start [2025-02-04 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403487', 'tblTempVendorCDR_20' ) end [2025-02-04 22:42:18] Production.INFO: ProcessCDR(1,14403487,1,1,2) [2025-02-04 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403487', 'tblTempUsageDetail_20' ) start [2025-02-04 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403487', 'tblTempUsageDetail_20' ) end [2025-02-04 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:42:22] Production.INFO: ==9625== Releasing lock... [2025-02-04 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:42:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:43:05 [end_date_ymd] => 2025-02-04 22:43:05 [RateCDR] => 1 ) [2025-02-04 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:43:05' and `end` < '2025-02-04 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:43:18] Production.INFO: count ==937 [2025-02-04 22:43:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:43:05 - End Time 2025-02-04 22:43:05 [2025-02-04 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403492', 'tblTempUsageDetail_20' ) start [2025-02-04 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403492', 'tblTempUsageDetail_20' ) end [2025-02-04 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403492', 'tblTempVendorCDR_20' ) start [2025-02-04 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403492', 'tblTempVendorCDR_20' ) end [2025-02-04 22:43:18] Production.INFO: ProcessCDR(1,14403492,1,1,2) [2025-02-04 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403492', 'tblTempUsageDetail_20' ) start [2025-02-04 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403492', 'tblTempUsageDetail_20' ) end [2025-02-04 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:43:21] Production.INFO: ==9702== Releasing lock... [2025-02-04 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:43:21] Production.INFO: 35 MB #Memory Used# [2025-02-04 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:44:05 [end_date_ymd] => 2025-02-04 22:44:05 [RateCDR] => 1 ) [2025-02-04 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:44:05' and `end` < '2025-02-04 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:44:18] Production.INFO: count ==935 [2025-02-04 22:44:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:44:05 - End Time 2025-02-04 22:44:05 [2025-02-04 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403497', 'tblTempUsageDetail_20' ) start [2025-02-04 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403497', 'tblTempUsageDetail_20' ) end [2025-02-04 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403497', 'tblTempVendorCDR_20' ) start [2025-02-04 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403497', 'tblTempVendorCDR_20' ) end [2025-02-04 22:44:18] Production.INFO: ProcessCDR(1,14403497,1,1,2) [2025-02-04 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403497', 'tblTempUsageDetail_20' ) start [2025-02-04 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403497', 'tblTempUsageDetail_20' ) end [2025-02-04 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:44:21] Production.INFO: ==9780== Releasing lock... [2025-02-04 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:44:21] Production.INFO: 35 MB #Memory Used# [2025-02-04 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:45:05 [end_date_ymd] => 2025-02-04 22:45:05 [RateCDR] => 1 ) [2025-02-04 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:45:05' and `end` < '2025-02-04 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:45:18] Production.INFO: count ==990 [2025-02-04 22:45:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:45:05 - End Time 2025-02-04 22:45:05 [2025-02-04 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403502', 'tblTempUsageDetail_20' ) start [2025-02-04 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403502', 'tblTempUsageDetail_20' ) end [2025-02-04 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403502', 'tblTempVendorCDR_20' ) start [2025-02-04 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403502', 'tblTempVendorCDR_20' ) end [2025-02-04 22:45:19] Production.INFO: ProcessCDR(1,14403502,1,1,2) [2025-02-04 22:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403502', 'tblTempUsageDetail_20' ) start [2025-02-04 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403502', 'tblTempUsageDetail_20' ) end [2025-02-04 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:45:22] Production.INFO: ==9859== Releasing lock... [2025-02-04 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:45:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-04 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:46:05 [end_date_ymd] => 2025-02-04 22:46:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 19:46:05' and `end` < '2025-02-04 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-02-04 22:46:18] Production.INFO: count ==989 [2025-02-04 22:46:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:46:05 - End Time 2025-02-04 22:46:05 [2025-02-04 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403507', 'tblTempUsageDetail_20' ) start [2025-02-04 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403507', 'tblTempUsageDetail_20' ) end [2025-02-04 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403507', 'tblTempVendorCDR_20' ) start [2025-02-04 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403507', 'tblTempVendorCDR_20' ) end [2025-02-04 22:46:18] Production.INFO: ProcessCDR(1,14403507,1,1,2) [2025-02-04 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403507', 'tblTempUsageDetail_20' ) start [2025-02-04 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403507', 'tblTempUsageDetail_20' ) end [2025-02-04 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:46:21] Production.INFO: ==9933== Releasing lock... [2025-02-04 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:46:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:47:05 [end_date_ymd] => 2025-02-04 22:47:05 [RateCDR] => 1 ) [2025-02-04 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:47:05' and `end` < '2025-02-04 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:47:20] Production.INFO: count ==989 [2025-02-04 22:47:20] Production.ERROR: pbx CDR StartTime 2025-02-04 19:47:05 - End Time 2025-02-04 22:47:05 [2025-02-04 22:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403512', 'tblTempUsageDetail_20' ) start [2025-02-04 22:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403512', 'tblTempUsageDetail_20' ) end [2025-02-04 22:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403512', 'tblTempVendorCDR_20' ) start [2025-02-04 22:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403512', 'tblTempVendorCDR_20' ) end [2025-02-04 22:47:20] Production.INFO: ProcessCDR(1,14403512,1,1,2) [2025-02-04 22:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403512', 'tblTempUsageDetail_20' ) start [2025-02-04 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403512', 'tblTempUsageDetail_20' ) end [2025-02-04 22:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:47:23] Production.INFO: ==10010== Releasing lock... [2025-02-04 22:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:47:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:48:05 [end_date_ymd] => 2025-02-04 22:48:05 [RateCDR] => 1 ) [2025-02-04 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:48:05' and `end` < '2025-02-04 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:48:19] Production.INFO: count ==993 [2025-02-04 22:48:19] Production.ERROR: pbx CDR StartTime 2025-02-04 19:48:05 - End Time 2025-02-04 22:48:05 [2025-02-04 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403517', 'tblTempUsageDetail_20' ) start [2025-02-04 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403517', 'tblTempUsageDetail_20' ) end [2025-02-04 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403517', 'tblTempVendorCDR_20' ) start [2025-02-04 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403517', 'tblTempVendorCDR_20' ) end [2025-02-04 22:48:19] Production.INFO: ProcessCDR(1,14403517,1,1,2) [2025-02-04 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403517', 'tblTempUsageDetail_20' ) start [2025-02-04 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403517', 'tblTempUsageDetail_20' ) end [2025-02-04 22:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:48:23] Production.INFO: ==10090== Releasing lock... [2025-02-04 22:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:48:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-04 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:49:05 [end_date_ymd] => 2025-02-04 22:49:05 [RateCDR] => 1 ) [2025-02-04 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:49:05' and `end` < '2025-02-04 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:49:19] Production.INFO: count ==993 [2025-02-04 22:49:19] Production.ERROR: pbx CDR StartTime 2025-02-04 19:49:05 - End Time 2025-02-04 22:49:05 [2025-02-04 22:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403522', 'tblTempUsageDetail_20' ) start [2025-02-04 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403522', 'tblTempUsageDetail_20' ) end [2025-02-04 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403522', 'tblTempVendorCDR_20' ) start [2025-02-04 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403522', 'tblTempVendorCDR_20' ) end [2025-02-04 22:49:19] Production.INFO: ProcessCDR(1,14403522,1,1,2) [2025-02-04 22:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403522', 'tblTempUsageDetail_20' ) start [2025-02-04 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403522', 'tblTempUsageDetail_20' ) end [2025-02-04 22:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:49:22] Production.INFO: ==10163== Releasing lock... [2025-02-04 22:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:49:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-04 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:50:05 [end_date_ymd] => 2025-02-04 22:50:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 19:50:05' and `end` < '2025-02-04 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-02-04 22:50:18] Production.INFO: count ==993 [2025-02-04 22:50:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:50:05 - End Time 2025-02-04 22:50:05 [2025-02-04 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403527', 'tblTempUsageDetail_20' ) start [2025-02-04 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403527', 'tblTempUsageDetail_20' ) end [2025-02-04 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403527', 'tblTempVendorCDR_20' ) start [2025-02-04 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403527', 'tblTempVendorCDR_20' ) end [2025-02-04 22:50:18] Production.INFO: ProcessCDR(1,14403527,1,1,2) [2025-02-04 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403527', 'tblTempUsageDetail_20' ) start [2025-02-04 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403527', 'tblTempUsageDetail_20' ) end [2025-02-04 22:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:50:21] Production.INFO: ==10268== Releasing lock... [2025-02-04 22:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:50:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-04 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:51:05 [end_date_ymd] => 2025-02-04 22:51:05 [RateCDR] => 1 ) [2025-02-04 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:51:05' and `end` < '2025-02-04 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:51:18] Production.INFO: count ==978 [2025-02-04 22:51:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:51:05 - End Time 2025-02-04 22:51:05 [2025-02-04 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403533', 'tblTempUsageDetail_20' ) start [2025-02-04 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403533', 'tblTempUsageDetail_20' ) end [2025-02-04 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403533', 'tblTempVendorCDR_20' ) start [2025-02-04 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403533', 'tblTempVendorCDR_20' ) end [2025-02-04 22:51:18] Production.INFO: ProcessCDR(1,14403533,1,1,2) [2025-02-04 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403533', 'tblTempUsageDetail_20' ) start [2025-02-04 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403533', 'tblTempUsageDetail_20' ) end [2025-02-04 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:51:21] Production.INFO: ==10353== Releasing lock... [2025-02-04 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:51:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:52:05 [end_date_ymd] => 2025-02-04 22:52:05 [RateCDR] => 1 ) [2025-02-04 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:52:05' and `end` < '2025-02-04 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:52:18] Production.INFO: count ==967 [2025-02-04 22:52:19] Production.ERROR: pbx CDR StartTime 2025-02-04 19:52:05 - End Time 2025-02-04 22:52:05 [2025-02-04 22:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403538', 'tblTempUsageDetail_20' ) start [2025-02-04 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403538', 'tblTempUsageDetail_20' ) end [2025-02-04 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403538', 'tblTempVendorCDR_20' ) start [2025-02-04 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403538', 'tblTempVendorCDR_20' ) end [2025-02-04 22:52:19] Production.INFO: ProcessCDR(1,14403538,1,1,2) [2025-02-04 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403538', 'tblTempUsageDetail_20' ) start [2025-02-04 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403538', 'tblTempUsageDetail_20' ) end [2025-02-04 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:52:22] Production.INFO: ==10423== Releasing lock... [2025-02-04 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:52:22] Production.INFO: 35 MB #Memory Used# [2025-02-04 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:53:05 [end_date_ymd] => 2025-02-04 22:53:05 [RateCDR] => 1 ) [2025-02-04 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:53:05' and `end` < '2025-02-04 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:53:18] Production.INFO: count ==950 [2025-02-04 22:53:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:53:05 - End Time 2025-02-04 22:53:05 [2025-02-04 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403543', 'tblTempUsageDetail_20' ) start [2025-02-04 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403543', 'tblTempUsageDetail_20' ) end [2025-02-04 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403543', 'tblTempVendorCDR_20' ) start [2025-02-04 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403543', 'tblTempVendorCDR_20' ) end [2025-02-04 22:53:18] Production.INFO: ProcessCDR(1,14403543,1,1,2) [2025-02-04 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403543', 'tblTempUsageDetail_20' ) start [2025-02-04 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403543', 'tblTempUsageDetail_20' ) end [2025-02-04 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:53:21] Production.INFO: ==10500== Releasing lock... [2025-02-04 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:53:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 22:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:54:06 [end_date_ymd] => 2025-02-04 22:54:06 [RateCDR] => 1 ) [2025-02-04 22:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:54:06' and `end` < '2025-02-04 22:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:54:20] Production.INFO: count ==954 [2025-02-04 22:54:20] Production.ERROR: pbx CDR StartTime 2025-02-04 19:54:06 - End Time 2025-02-04 22:54:06 [2025-02-04 22:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403548', 'tblTempUsageDetail_20' ) start [2025-02-04 22:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403548', 'tblTempUsageDetail_20' ) end [2025-02-04 22:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403548', 'tblTempVendorCDR_20' ) start [2025-02-04 22:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403548', 'tblTempVendorCDR_20' ) end [2025-02-04 22:54:20] Production.INFO: ProcessCDR(1,14403548,1,1,2) [2025-02-04 22:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403548', 'tblTempUsageDetail_20' ) start [2025-02-04 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403548', 'tblTempUsageDetail_20' ) end [2025-02-04 22:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:54:23] Production.INFO: ==10573== Releasing lock... [2025-02-04 22:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:54:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:55:05 [end_date_ymd] => 2025-02-04 22:55:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 19:55:05' and `end` < '2025-02-04 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-02-04 22:55:18] Production.INFO: count ==954 [2025-02-04 22:55:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:55:05 - End Time 2025-02-04 22:55:05 [2025-02-04 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403553', 'tblTempUsageDetail_20' ) start [2025-02-04 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403553', 'tblTempUsageDetail_20' ) end [2025-02-04 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403553', 'tblTempVendorCDR_20' ) start [2025-02-04 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403553', 'tblTempVendorCDR_20' ) end [2025-02-04 22:55:18] Production.INFO: ProcessCDR(1,14403553,1,1,2) [2025-02-04 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403553', 'tblTempUsageDetail_20' ) start [2025-02-04 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403553', 'tblTempUsageDetail_20' ) end [2025-02-04 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:55:22] Production.INFO: ==10647== Releasing lock... [2025-02-04 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:55:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 22:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:56:06 [end_date_ymd] => 2025-02-04 22:56:06 [RateCDR] => 1 ) [2025-02-04 22:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:56:06' and `end` < '2025-02-04 22:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:56:19] Production.INFO: count ==954 [2025-02-04 22:56:19] Production.ERROR: pbx CDR StartTime 2025-02-04 19:56:06 - End Time 2025-02-04 22:56:06 [2025-02-04 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403558', 'tblTempUsageDetail_20' ) start [2025-02-04 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403558', 'tblTempUsageDetail_20' ) end [2025-02-04 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403558', 'tblTempVendorCDR_20' ) start [2025-02-04 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403558', 'tblTempVendorCDR_20' ) end [2025-02-04 22:56:19] Production.INFO: ProcessCDR(1,14403558,1,1,2) [2025-02-04 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403558', 'tblTempUsageDetail_20' ) start [2025-02-04 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403558', 'tblTempUsageDetail_20' ) end [2025-02-04 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:56:23] Production.INFO: ==10722== Releasing lock... [2025-02-04 22:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:56:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:57:05 [end_date_ymd] => 2025-02-04 22:57:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 19:57:05' and `end` < '2025-02-04 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-02-04 22:57:18] Production.INFO: count ==970 [2025-02-04 22:57:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:57:05 - End Time 2025-02-04 22:57:05 [2025-02-04 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403563', 'tblTempUsageDetail_20' ) start [2025-02-04 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403563', 'tblTempUsageDetail_20' ) end [2025-02-04 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403563', 'tblTempVendorCDR_20' ) start [2025-02-04 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403563', 'tblTempVendorCDR_20' ) end [2025-02-04 22:57:18] Production.INFO: ProcessCDR(1,14403563,1,1,2) [2025-02-04 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403563', 'tblTempUsageDetail_20' ) start [2025-02-04 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403563', 'tblTempUsageDetail_20' ) end [2025-02-04 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:57:21] Production.INFO: ==10834== Releasing lock... [2025-02-04 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:57:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:58:05 [end_date_ymd] => 2025-02-04 22:58:05 [RateCDR] => 1 ) [2025-02-04 22:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 19:58:05' and `end` < '2025-02-04 22:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 22:58:18] Production.INFO: count ==970 [2025-02-04 22:58:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:58:05 - End Time 2025-02-04 22:58:05 [2025-02-04 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403568', 'tblTempUsageDetail_20' ) start [2025-02-04 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403568', 'tblTempUsageDetail_20' ) end [2025-02-04 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403568', 'tblTempVendorCDR_20' ) start [2025-02-04 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403568', 'tblTempVendorCDR_20' ) end [2025-02-04 22:58:18] Production.INFO: ProcessCDR(1,14403568,1,1,2) [2025-02-04 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403568', 'tblTempUsageDetail_20' ) start [2025-02-04 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403568', 'tblTempUsageDetail_20' ) end [2025-02-04 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:58:21] Production.INFO: ==10907== Releasing lock... [2025-02-04 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:58:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 19:59:05 [end_date_ymd] => 2025-02-04 22:59:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 19:59:05' and `end` < '2025-02-04 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-02-04 22:59:17] Production.INFO: count ==969 [2025-02-04 22:59:18] Production.ERROR: pbx CDR StartTime 2025-02-04 19:59:05 - End Time 2025-02-04 22:59:05 [2025-02-04 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403573', 'tblTempUsageDetail_20' ) start [2025-02-04 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403573', 'tblTempUsageDetail_20' ) end [2025-02-04 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403573', 'tblTempVendorCDR_20' ) start [2025-02-04 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403573', 'tblTempVendorCDR_20' ) end [2025-02-04 22:59:18] Production.INFO: ProcessCDR(1,14403573,1,1,2) [2025-02-04 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403573', 'tblTempUsageDetail_20' ) start [2025-02-04 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403573', 'tblTempUsageDetail_20' ) end [2025-02-04 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 22:59:21] Production.INFO: ==10982== Releasing lock... [2025-02-04 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 22:59:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-04 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:00:06 [end_date_ymd] => 2025-02-04 23:00:06 [RateCDR] => 1 ) [2025-02-04 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:00:06' and `end` < '2025-02-04 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:00:19] Production.INFO: count ==968 [2025-02-04 23:00:19] Production.ERROR: pbx CDR StartTime 2025-02-04 20:00:06 - End Time 2025-02-04 23:00:06 [2025-02-04 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403579', 'tblTempUsageDetail_20' ) start [2025-02-04 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403579', 'tblTempUsageDetail_20' ) end [2025-02-04 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403579', 'tblTempVendorCDR_20' ) start [2025-02-04 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403579', 'tblTempVendorCDR_20' ) end [2025-02-04 23:00:19] Production.INFO: ProcessCDR(1,14403579,1,1,2) [2025-02-04 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403579', 'tblTempUsageDetail_20' ) start [2025-02-04 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403579', 'tblTempUsageDetail_20' ) end [2025-02-04 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:00:22] Production.INFO: ==11059== Releasing lock... [2025-02-04 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:00:22] Production.INFO: 35 MB #Memory Used# [2025-02-04 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:01:05 [end_date_ymd] => 2025-02-04 23:01:05 [RateCDR] => 1 ) [2025-02-04 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:01:05' and `end` < '2025-02-04 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:01:18] Production.INFO: count ==980 [2025-02-04 23:01:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:01:05 - End Time 2025-02-04 23:01:05 [2025-02-04 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403584', 'tblTempUsageDetail_20' ) start [2025-02-04 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403584', 'tblTempUsageDetail_20' ) end [2025-02-04 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403584', 'tblTempVendorCDR_20' ) start [2025-02-04 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403584', 'tblTempVendorCDR_20' ) end [2025-02-04 23:01:18] Production.INFO: ProcessCDR(1,14403584,1,1,2) [2025-02-04 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403584', 'tblTempUsageDetail_20' ) start [2025-02-04 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403584', 'tblTempUsageDetail_20' ) end [2025-02-04 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:01:21] Production.INFO: ==11185== Releasing lock... [2025-02-04 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:01:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:02:05 [end_date_ymd] => 2025-02-04 23:02:05 [RateCDR] => 1 ) [2025-02-04 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:02:05' and `end` < '2025-02-04 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:02:18] Production.INFO: count ==980 [2025-02-04 23:02:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:02:05 - End Time 2025-02-04 23:02:05 [2025-02-04 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403589', 'tblTempUsageDetail_20' ) start [2025-02-04 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403589', 'tblTempUsageDetail_20' ) end [2025-02-04 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403589', 'tblTempVendorCDR_20' ) start [2025-02-04 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403589', 'tblTempVendorCDR_20' ) end [2025-02-04 23:02:18] Production.INFO: ProcessCDR(1,14403589,1,1,2) [2025-02-04 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403589', 'tblTempUsageDetail_20' ) start [2025-02-04 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403589', 'tblTempUsageDetail_20' ) end [2025-02-04 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:02:21] Production.INFO: ==11298== Releasing lock... [2025-02-04 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:02:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 23:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:03:06 [end_date_ymd] => 2025-02-04 23:03:06 [RateCDR] => 1 ) [2025-02-04 23:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:03:06' and `end` < '2025-02-04 23:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:03:20] Production.INFO: count ==980 [2025-02-04 23:03:20] Production.ERROR: pbx CDR StartTime 2025-02-04 20:03:06 - End Time 2025-02-04 23:03:06 [2025-02-04 23:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403594', 'tblTempUsageDetail_20' ) start [2025-02-04 23:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403594', 'tblTempUsageDetail_20' ) end [2025-02-04 23:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403594', 'tblTempVendorCDR_20' ) start [2025-02-04 23:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403594', 'tblTempVendorCDR_20' ) end [2025-02-04 23:03:20] Production.INFO: ProcessCDR(1,14403594,1,1,2) [2025-02-04 23:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403594', 'tblTempUsageDetail_20' ) start [2025-02-04 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403594', 'tblTempUsageDetail_20' ) end [2025-02-04 23:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:03:24] Production.INFO: ==11373== Releasing lock... [2025-02-04 23:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:03:24] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:04:05 [end_date_ymd] => 2025-02-04 23:04:05 [RateCDR] => 1 ) [2025-02-04 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:04:05' and `end` < '2025-02-04 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:04:19] Production.INFO: count ==980 [2025-02-04 23:04:20] Production.ERROR: pbx CDR StartTime 2025-02-04 20:04:05 - End Time 2025-02-04 23:04:05 [2025-02-04 23:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403599', 'tblTempUsageDetail_20' ) start [2025-02-04 23:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403599', 'tblTempUsageDetail_20' ) end [2025-02-04 23:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403599', 'tblTempVendorCDR_20' ) start [2025-02-04 23:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403599', 'tblTempVendorCDR_20' ) end [2025-02-04 23:04:20] Production.INFO: ProcessCDR(1,14403599,1,1,2) [2025-02-04 23:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403599', 'tblTempUsageDetail_20' ) start [2025-02-04 23:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403599', 'tblTempUsageDetail_20' ) end [2025-02-04 23:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:04:23] Production.INFO: ==11465== Releasing lock... [2025-02-04 23:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:04:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:05:05 [end_date_ymd] => 2025-02-04 23:05:05 [RateCDR] => 1 ) [2025-02-04 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:05:05' and `end` < '2025-02-04 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:05:18] Production.INFO: count ==973 [2025-02-04 23:05:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:05:05 - End Time 2025-02-04 23:05:05 [2025-02-04 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403604', 'tblTempUsageDetail_20' ) start [2025-02-04 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403604', 'tblTempUsageDetail_20' ) end [2025-02-04 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403604', 'tblTempVendorCDR_20' ) start [2025-02-04 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403604', 'tblTempVendorCDR_20' ) end [2025-02-04 23:05:18] Production.INFO: ProcessCDR(1,14403604,1,1,2) [2025-02-04 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403604', 'tblTempUsageDetail_20' ) start [2025-02-04 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403604', 'tblTempUsageDetail_20' ) end [2025-02-04 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:05:21] Production.INFO: ==11632== Releasing lock... [2025-02-04 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:05:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:06:05 [end_date_ymd] => 2025-02-04 23:06:05 [RateCDR] => 1 ) [2025-02-04 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:06:05' and `end` < '2025-02-04 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:06:18] Production.INFO: count ==966 [2025-02-04 23:06:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:06:05 - End Time 2025-02-04 23:06:05 [2025-02-04 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403609', 'tblTempUsageDetail_20' ) start [2025-02-04 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403609', 'tblTempUsageDetail_20' ) end [2025-02-04 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403609', 'tblTempVendorCDR_20' ) start [2025-02-04 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403609', 'tblTempVendorCDR_20' ) end [2025-02-04 23:06:18] Production.INFO: ProcessCDR(1,14403609,1,1,2) [2025-02-04 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403609', 'tblTempUsageDetail_20' ) start [2025-02-04 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403609', 'tblTempUsageDetail_20' ) end [2025-02-04 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:06:21] Production.INFO: ==11717== Releasing lock... [2025-02-04 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:06:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:07:05 [end_date_ymd] => 2025-02-04 23:07:05 [RateCDR] => 1 ) [2025-02-04 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:07:05' and `end` < '2025-02-04 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:07:18] Production.INFO: count ==969 [2025-02-04 23:07:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:07:05 - End Time 2025-02-04 23:07:05 [2025-02-04 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403614', 'tblTempUsageDetail_20' ) start [2025-02-04 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403614', 'tblTempUsageDetail_20' ) end [2025-02-04 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403614', 'tblTempVendorCDR_20' ) start [2025-02-04 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403614', 'tblTempVendorCDR_20' ) end [2025-02-04 23:07:18] Production.INFO: ProcessCDR(1,14403614,1,1,2) [2025-02-04 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403614', 'tblTempUsageDetail_20' ) start [2025-02-04 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403614', 'tblTempUsageDetail_20' ) end [2025-02-04 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:07:21] Production.INFO: ==11807== Releasing lock... [2025-02-04 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:07:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-04 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:08:05 [end_date_ymd] => 2025-02-04 23:08:05 [RateCDR] => 1 ) [2025-02-04 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:08:05' and `end` < '2025-02-04 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:08:20] Production.INFO: count ==969 [2025-02-04 23:08:20] Production.ERROR: pbx CDR StartTime 2025-02-04 20:08:05 - End Time 2025-02-04 23:08:05 [2025-02-04 23:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403619', 'tblTempUsageDetail_20' ) start [2025-02-04 23:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403619', 'tblTempUsageDetail_20' ) end [2025-02-04 23:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403619', 'tblTempVendorCDR_20' ) start [2025-02-04 23:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403619', 'tblTempVendorCDR_20' ) end [2025-02-04 23:08:20] Production.INFO: ProcessCDR(1,14403619,1,1,2) [2025-02-04 23:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403619', 'tblTempUsageDetail_20' ) start [2025-02-04 23:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403619', 'tblTempUsageDetail_20' ) end [2025-02-04 23:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:08:23] Production.INFO: ==11975== Releasing lock... [2025-02-04 23:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:08:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-04 23:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:09:06 [end_date_ymd] => 2025-02-04 23:09:06 [RateCDR] => 1 ) [2025-02-04 23:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:09:06' and `end` < '2025-02-04 23:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:09:19] Production.INFO: count ==971 [2025-02-04 23:09:19] Production.ERROR: pbx CDR StartTime 2025-02-04 20:09:06 - End Time 2025-02-04 23:09:06 [2025-02-04 23:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403624', 'tblTempUsageDetail_20' ) start [2025-02-04 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403624', 'tblTempUsageDetail_20' ) end [2025-02-04 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403624', 'tblTempVendorCDR_20' ) start [2025-02-04 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403624', 'tblTempVendorCDR_20' ) end [2025-02-04 23:09:19] Production.INFO: ProcessCDR(1,14403624,1,1,2) [2025-02-04 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403624', 'tblTempUsageDetail_20' ) start [2025-02-04 23:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403624', 'tblTempUsageDetail_20' ) end [2025-02-04 23:09:28] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:09:28] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:09:28] Production.INFO: ==12060== Releasing lock... [2025-02-04 23:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:09:28] Production.INFO: 35 MB #Memory Used# [2025-02-04 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:10:05 [end_date_ymd] => 2025-02-04 23:10:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 20:10:05' and `end` < '2025-02-04 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-02-04 23:10:18] Production.INFO: count ==971 [2025-02-04 23:10:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:10:05 - End Time 2025-02-04 23:10:05 [2025-02-04 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403630', 'tblTempUsageDetail_20' ) start [2025-02-04 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403630', 'tblTempUsageDetail_20' ) end [2025-02-04 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403630', 'tblTempVendorCDR_20' ) start [2025-02-04 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403630', 'tblTempVendorCDR_20' ) end [2025-02-04 23:10:18] Production.INFO: ProcessCDR(1,14403630,1,1,2) [2025-02-04 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403630', 'tblTempUsageDetail_20' ) start [2025-02-04 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403630', 'tblTempUsageDetail_20' ) end [2025-02-04 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:10:22] Production.INFO: ==12134== Releasing lock... [2025-02-04 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:10:22] Production.INFO: 35 MB #Memory Used# [2025-02-04 23:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:11:04 [end_date_ymd] => 2025-02-04 23:11:04 [RateCDR] => 1 ) [2025-02-04 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-02-04 20:11:04' and `end` < '2025-02-04 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-02-04 23:11:18] Production.INFO: count ==951 [2025-02-04 23:11:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:11:04 - End Time 2025-02-04 23:11:04 [2025-02-04 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403635', 'tblTempUsageDetail_20' ) start [2025-02-04 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403635', 'tblTempUsageDetail_20' ) end [2025-02-04 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403635', 'tblTempVendorCDR_20' ) start [2025-02-04 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403635', 'tblTempVendorCDR_20' ) end [2025-02-04 23:11:18] Production.INFO: ProcessCDR(1,14403635,1,1,2) [2025-02-04 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403635', 'tblTempUsageDetail_20' ) start [2025-02-04 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403635', 'tblTempUsageDetail_20' ) end [2025-02-04 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:11:22] Production.INFO: ==12217== Releasing lock... [2025-02-04 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:11:22] Production.INFO: 35 MB #Memory Used# [2025-02-04 23:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:12:06 [end_date_ymd] => 2025-02-04 23:12:06 [RateCDR] => 1 ) [2025-02-04 23:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:12:06' and `end` < '2025-02-04 23:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:12:19] Production.INFO: count ==944 [2025-02-04 23:12:19] Production.ERROR: pbx CDR StartTime 2025-02-04 20:12:06 - End Time 2025-02-04 23:12:06 [2025-02-04 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403640', 'tblTempUsageDetail_20' ) start [2025-02-04 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403640', 'tblTempUsageDetail_20' ) end [2025-02-04 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403640', 'tblTempVendorCDR_20' ) start [2025-02-04 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403640', 'tblTempVendorCDR_20' ) end [2025-02-04 23:12:19] Production.INFO: ProcessCDR(1,14403640,1,1,2) [2025-02-04 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403640', 'tblTempUsageDetail_20' ) start [2025-02-04 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403640', 'tblTempUsageDetail_20' ) end [2025-02-04 23:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:12:23] Production.INFO: ==12408== Releasing lock... [2025-02-04 23:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:12:23] Production.INFO: 35 MB #Memory Used# [2025-02-04 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:13:05 [end_date_ymd] => 2025-02-04 23:13:05 [RateCDR] => 1 ) [2025-02-04 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:13:05' and `end` < '2025-02-04 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:13:18] Production.INFO: count ==939 [2025-02-04 23:13:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:13:05 - End Time 2025-02-04 23:13:05 [2025-02-04 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403645', 'tblTempUsageDetail_20' ) start [2025-02-04 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403645', 'tblTempUsageDetail_20' ) end [2025-02-04 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403645', 'tblTempVendorCDR_20' ) start [2025-02-04 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403645', 'tblTempVendorCDR_20' ) end [2025-02-04 23:13:18] Production.INFO: ProcessCDR(1,14403645,1,1,2) [2025-02-04 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403645', 'tblTempUsageDetail_20' ) start [2025-02-04 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403645', 'tblTempUsageDetail_20' ) end [2025-02-04 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:13:21] Production.INFO: ==12480== Releasing lock... [2025-02-04 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:13:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-04 23:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:14:06 [end_date_ymd] => 2025-02-04 23:14:06 [RateCDR] => 1 ) [2025-02-04 23:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:14:06' and `end` < '2025-02-04 23:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:14:19] Production.INFO: count ==937 [2025-02-04 23:14:19] Production.ERROR: pbx CDR StartTime 2025-02-04 20:14:06 - End Time 2025-02-04 23:14:06 [2025-02-04 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403650', 'tblTempUsageDetail_20' ) start [2025-02-04 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403650', 'tblTempUsageDetail_20' ) end [2025-02-04 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403650', 'tblTempVendorCDR_20' ) start [2025-02-04 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403650', 'tblTempVendorCDR_20' ) end [2025-02-04 23:14:19] Production.INFO: ProcessCDR(1,14403650,1,1,2) [2025-02-04 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403650', 'tblTempUsageDetail_20' ) start [2025-02-04 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403650', 'tblTempUsageDetail_20' ) end [2025-02-04 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:14:22] Production.INFO: ==12556== Releasing lock... [2025-02-04 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:14:22] Production.INFO: 35 MB #Memory Used# [2025-02-04 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:15:05 [end_date_ymd] => 2025-02-04 23:15:05 [RateCDR] => 1 ) [2025-02-04 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:15:05' and `end` < '2025-02-04 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:15:18] Production.INFO: count ==932 [2025-02-04 23:15:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:15:05 - End Time 2025-02-04 23:15:05 [2025-02-04 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403655', 'tblTempUsageDetail_20' ) start [2025-02-04 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403655', 'tblTempUsageDetail_20' ) end [2025-02-04 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403655', 'tblTempVendorCDR_20' ) start [2025-02-04 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403655', 'tblTempVendorCDR_20' ) end [2025-02-04 23:15:18] Production.INFO: ProcessCDR(1,14403655,1,1,2) [2025-02-04 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403655', 'tblTempUsageDetail_20' ) start [2025-02-04 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403655', 'tblTempUsageDetail_20' ) end [2025-02-04 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:15:21] Production.INFO: ==12709== Releasing lock... [2025-02-04 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:15:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-04 23:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:16:06 [end_date_ymd] => 2025-02-04 23:16:06 [RateCDR] => 1 ) [2025-02-04 23:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:16:06' and `end` < '2025-02-04 23:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:16:18] Production.INFO: count ==930 [2025-02-04 23:16:19] Production.ERROR: pbx CDR StartTime 2025-02-04 20:16:06 - End Time 2025-02-04 23:16:06 [2025-02-04 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403660', 'tblTempUsageDetail_20' ) start [2025-02-04 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403660', 'tblTempUsageDetail_20' ) end [2025-02-04 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403660', 'tblTempVendorCDR_20' ) start [2025-02-04 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403660', 'tblTempVendorCDR_20' ) end [2025-02-04 23:16:19] Production.INFO: ProcessCDR(1,14403660,1,1,2) [2025-02-04 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403660', 'tblTempUsageDetail_20' ) start [2025-02-04 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403660', 'tblTempUsageDetail_20' ) end [2025-02-04 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:16:22] Production.INFO: ==12784== Releasing lock... [2025-02-04 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:16:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:17:05 [end_date_ymd] => 2025-02-04 23:17:05 [RateCDR] => 1 ) [2025-02-04 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:17:05' and `end` < '2025-02-04 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:17:18] Production.INFO: count ==929 [2025-02-04 23:17:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:17:05 - End Time 2025-02-04 23:17:05 [2025-02-04 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403665', 'tblTempUsageDetail_20' ) start [2025-02-04 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403665', 'tblTempUsageDetail_20' ) end [2025-02-04 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403665', 'tblTempVendorCDR_20' ) start [2025-02-04 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403665', 'tblTempVendorCDR_20' ) end [2025-02-04 23:17:18] Production.INFO: ProcessCDR(1,14403665,1,1,2) [2025-02-04 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403665', 'tblTempUsageDetail_20' ) start [2025-02-04 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403665', 'tblTempUsageDetail_20' ) end [2025-02-04 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:17:22] Production.INFO: ==12859== Releasing lock... [2025-02-04 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:17:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 23:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:18:06 [end_date_ymd] => 2025-02-04 23:18:06 [RateCDR] => 1 ) [2025-02-04 23:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:18:06' and `end` < '2025-02-04 23:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:18:20] Production.INFO: count ==929 [2025-02-04 23:18:20] Production.ERROR: pbx CDR StartTime 2025-02-04 20:18:06 - End Time 2025-02-04 23:18:06 [2025-02-04 23:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403670', 'tblTempUsageDetail_20' ) start [2025-02-04 23:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403670', 'tblTempUsageDetail_20' ) end [2025-02-04 23:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403670', 'tblTempVendorCDR_20' ) start [2025-02-04 23:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403670', 'tblTempVendorCDR_20' ) end [2025-02-04 23:18:20] Production.INFO: ProcessCDR(1,14403670,1,1,2) [2025-02-04 23:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403670', 'tblTempUsageDetail_20' ) start [2025-02-04 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403670', 'tblTempUsageDetail_20' ) end [2025-02-04 23:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:18:23] Production.INFO: ==12932== Releasing lock... [2025-02-04 23:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:18:23] Production.INFO: 35 MB #Memory Used# [2025-02-04 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:19:05 [end_date_ymd] => 2025-02-04 23:19:05 [RateCDR] => 1 ) [2025-02-04 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:19:05' and `end` < '2025-02-04 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:19:18] Production.INFO: count ==930 [2025-02-04 23:19:19] Production.ERROR: pbx CDR StartTime 2025-02-04 20:19:05 - End Time 2025-02-04 23:19:05 [2025-02-04 23:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403675', 'tblTempUsageDetail_20' ) start [2025-02-04 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403675', 'tblTempUsageDetail_20' ) end [2025-02-04 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403675', 'tblTempVendorCDR_20' ) start [2025-02-04 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403675', 'tblTempVendorCDR_20' ) end [2025-02-04 23:19:19] Production.INFO: ProcessCDR(1,14403675,1,1,2) [2025-02-04 23:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403675', 'tblTempUsageDetail_20' ) start [2025-02-04 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403675', 'tblTempUsageDetail_20' ) end [2025-02-04 23:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:19:23] Production.INFO: ==13002== Releasing lock... [2025-02-04 23:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:19:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:20:06 [end_date_ymd] => 2025-02-04 23:20:06 [RateCDR] => 1 ) [2025-02-04 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-02-04 20:20:06' and `end` < '2025-02-04 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-02-04 23:20:19] Production.INFO: count ==928 [2025-02-04 23:20:19] Production.ERROR: pbx CDR StartTime 2025-02-04 20:20:06 - End Time 2025-02-04 23:20:06 [2025-02-04 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403681', 'tblTempUsageDetail_20' ) start [2025-02-04 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403681', 'tblTempUsageDetail_20' ) end [2025-02-04 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403681', 'tblTempVendorCDR_20' ) start [2025-02-04 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403681', 'tblTempVendorCDR_20' ) end [2025-02-04 23:20:19] Production.INFO: ProcessCDR(1,14403681,1,1,2) [2025-02-04 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403681', 'tblTempUsageDetail_20' ) start [2025-02-04 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403681', 'tblTempUsageDetail_20' ) end [2025-02-04 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:20:22] Production.INFO: ==13077== Releasing lock... [2025-02-04 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:20:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:21:05 [end_date_ymd] => 2025-02-04 23:21:05 [RateCDR] => 1 ) [2025-02-04 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:21:05' and `end` < '2025-02-04 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:21:18] Production.INFO: count ==926 [2025-02-04 23:21:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:21:05 - End Time 2025-02-04 23:21:05 [2025-02-04 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403686', 'tblTempUsageDetail_20' ) start [2025-02-04 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403686', 'tblTempUsageDetail_20' ) end [2025-02-04 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403686', 'tblTempVendorCDR_20' ) start [2025-02-04 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403686', 'tblTempVendorCDR_20' ) end [2025-02-04 23:21:18] Production.INFO: ProcessCDR(1,14403686,1,1,2) [2025-02-04 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403686', 'tblTempUsageDetail_20' ) start [2025-02-04 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403686', 'tblTempUsageDetail_20' ) end [2025-02-04 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:21:21] Production.INFO: ==13157== Releasing lock... [2025-02-04 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:21:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-04 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:22:05 [end_date_ymd] => 2025-02-04 23:22:05 [RateCDR] => 1 ) [2025-02-04 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:22:05' and `end` < '2025-02-04 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:22:18] Production.INFO: count ==926 [2025-02-04 23:22:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:22:05 - End Time 2025-02-04 23:22:05 [2025-02-04 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403691', 'tblTempUsageDetail_20' ) start [2025-02-04 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403691', 'tblTempUsageDetail_20' ) end [2025-02-04 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403691', 'tblTempVendorCDR_20' ) start [2025-02-04 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403691', 'tblTempVendorCDR_20' ) end [2025-02-04 23:22:18] Production.INFO: ProcessCDR(1,14403691,1,1,2) [2025-02-04 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403691', 'tblTempUsageDetail_20' ) start [2025-02-04 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403691', 'tblTempUsageDetail_20' ) end [2025-02-04 23:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:22:23] Production.INFO: ==13232== Releasing lock... [2025-02-04 23:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:22:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-04 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:23:05 [end_date_ymd] => 2025-02-04 23:23:05 [RateCDR] => 1 ) [2025-02-04 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:23:05' and `end` < '2025-02-04 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:23:19] Production.INFO: count ==923 [2025-02-04 23:23:19] Production.ERROR: pbx CDR StartTime 2025-02-04 20:23:05 - End Time 2025-02-04 23:23:05 [2025-02-04 23:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403696', 'tblTempUsageDetail_20' ) start [2025-02-04 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403696', 'tblTempUsageDetail_20' ) end [2025-02-04 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403696', 'tblTempVendorCDR_20' ) start [2025-02-04 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403696', 'tblTempVendorCDR_20' ) end [2025-02-04 23:23:19] Production.INFO: ProcessCDR(1,14403696,1,1,2) [2025-02-04 23:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403696', 'tblTempUsageDetail_20' ) start [2025-02-04 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403696', 'tblTempUsageDetail_20' ) end [2025-02-04 23:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:23:22] Production.INFO: ==13303== Releasing lock... [2025-02-04 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:23:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-04 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:24:05 [end_date_ymd] => 2025-02-04 23:24:05 [RateCDR] => 1 ) [2025-02-04 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:24:05' and `end` < '2025-02-04 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:24:18] Production.INFO: count ==921 [2025-02-04 23:24:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:24:05 - End Time 2025-02-04 23:24:05 [2025-02-04 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403701', 'tblTempUsageDetail_20' ) start [2025-02-04 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403701', 'tblTempUsageDetail_20' ) end [2025-02-04 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403701', 'tblTempVendorCDR_20' ) start [2025-02-04 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403701', 'tblTempVendorCDR_20' ) end [2025-02-04 23:24:18] Production.INFO: ProcessCDR(1,14403701,1,1,2) [2025-02-04 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403701', 'tblTempUsageDetail_20' ) start [2025-02-04 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403701', 'tblTempUsageDetail_20' ) end [2025-02-04 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:24:21] Production.INFO: ==13377== Releasing lock... [2025-02-04 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:24:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:25:05 [end_date_ymd] => 2025-02-04 23:25:05 [RateCDR] => 1 ) [2025-02-04 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:25:05' and `end` < '2025-02-04 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:25:18] Production.INFO: count ==921 [2025-02-04 23:25:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:25:05 - End Time 2025-02-04 23:25:05 [2025-02-04 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403706', 'tblTempUsageDetail_20' ) start [2025-02-04 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403706', 'tblTempUsageDetail_20' ) end [2025-02-04 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403706', 'tblTempVendorCDR_20' ) start [2025-02-04 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403706', 'tblTempVendorCDR_20' ) end [2025-02-04 23:25:18] Production.INFO: ProcessCDR(1,14403706,1,1,2) [2025-02-04 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403706', 'tblTempUsageDetail_20' ) start [2025-02-04 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403706', 'tblTempUsageDetail_20' ) end [2025-02-04 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:25:21] Production.INFO: ==13450== Releasing lock... [2025-02-04 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:25:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:26:05 [end_date_ymd] => 2025-02-04 23:26:05 [RateCDR] => 1 ) [2025-02-04 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:26:05' and `end` < '2025-02-04 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:26:18] Production.INFO: count ==921 [2025-02-04 23:26:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:26:05 - End Time 2025-02-04 23:26:05 [2025-02-04 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403711', 'tblTempUsageDetail_20' ) start [2025-02-04 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403711', 'tblTempUsageDetail_20' ) end [2025-02-04 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403711', 'tblTempVendorCDR_20' ) start [2025-02-04 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403711', 'tblTempVendorCDR_20' ) end [2025-02-04 23:26:18] Production.INFO: ProcessCDR(1,14403711,1,1,2) [2025-02-04 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403711', 'tblTempUsageDetail_20' ) start [2025-02-04 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403711', 'tblTempUsageDetail_20' ) end [2025-02-04 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:26:21] Production.INFO: ==13521== Releasing lock... [2025-02-04 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:26:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 23:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:27:06 [end_date_ymd] => 2025-02-04 23:27:06 [RateCDR] => 1 ) [2025-02-04 23:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:27:06' and `end` < '2025-02-04 23:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:27:19] Production.INFO: count ==922 [2025-02-04 23:27:19] Production.ERROR: pbx CDR StartTime 2025-02-04 20:27:06 - End Time 2025-02-04 23:27:06 [2025-02-04 23:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403716', 'tblTempUsageDetail_20' ) start [2025-02-04 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403716', 'tblTempUsageDetail_20' ) end [2025-02-04 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403716', 'tblTempVendorCDR_20' ) start [2025-02-04 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403716', 'tblTempVendorCDR_20' ) end [2025-02-04 23:27:19] Production.INFO: ProcessCDR(1,14403716,1,1,2) [2025-02-04 23:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403716', 'tblTempUsageDetail_20' ) start [2025-02-04 23:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403716', 'tblTempUsageDetail_20' ) end [2025-02-04 23:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:27:23] Production.INFO: ==13593== Releasing lock... [2025-02-04 23:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:27:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:28:05 [end_date_ymd] => 2025-02-04 23:28:05 [RateCDR] => 1 ) [2025-02-04 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:28:05' and `end` < '2025-02-04 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:28:18] Production.INFO: count ==922 [2025-02-04 23:28:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:28:05 - End Time 2025-02-04 23:28:05 [2025-02-04 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403721', 'tblTempUsageDetail_20' ) start [2025-02-04 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403721', 'tblTempUsageDetail_20' ) end [2025-02-04 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403721', 'tblTempVendorCDR_20' ) start [2025-02-04 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403721', 'tblTempVendorCDR_20' ) end [2025-02-04 23:28:18] Production.INFO: ProcessCDR(1,14403721,1,1,2) [2025-02-04 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403721', 'tblTempUsageDetail_20' ) start [2025-02-04 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403721', 'tblTempUsageDetail_20' ) end [2025-02-04 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:28:21] Production.INFO: ==13702== Releasing lock... [2025-02-04 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:28:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 23:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:29:06 [end_date_ymd] => 2025-02-04 23:29:06 [RateCDR] => 1 ) [2025-02-04 23:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:29:06' and `end` < '2025-02-04 23:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:29:19] Production.INFO: count ==922 [2025-02-04 23:29:19] Production.ERROR: pbx CDR StartTime 2025-02-04 20:29:06 - End Time 2025-02-04 23:29:06 [2025-02-04 23:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403726', 'tblTempUsageDetail_20' ) start [2025-02-04 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403726', 'tblTempUsageDetail_20' ) end [2025-02-04 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403726', 'tblTempVendorCDR_20' ) start [2025-02-04 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403726', 'tblTempVendorCDR_20' ) end [2025-02-04 23:29:19] Production.INFO: ProcessCDR(1,14403726,1,1,2) [2025-02-04 23:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403726', 'tblTempUsageDetail_20' ) start [2025-02-04 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403726', 'tblTempUsageDetail_20' ) end [2025-02-04 23:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:29:23] Production.INFO: ==13773== Releasing lock... [2025-02-04 23:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:29:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:30:06 [end_date_ymd] => 2025-02-04 23:30:06 [RateCDR] => 1 ) [2025-02-04 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:30:06' and `end` < '2025-02-04 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:30:19] Production.INFO: count ==922 [2025-02-04 23:30:19] Production.ERROR: pbx CDR StartTime 2025-02-04 20:30:06 - End Time 2025-02-04 23:30:06 [2025-02-04 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403731', 'tblTempUsageDetail_20' ) start [2025-02-04 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403731', 'tblTempUsageDetail_20' ) end [2025-02-04 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403731', 'tblTempVendorCDR_20' ) start [2025-02-04 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403731', 'tblTempVendorCDR_20' ) end [2025-02-04 23:30:19] Production.INFO: ProcessCDR(1,14403731,1,1,2) [2025-02-04 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403731', 'tblTempUsageDetail_20' ) start [2025-02-04 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403731', 'tblTempUsageDetail_20' ) end [2025-02-04 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:30:22] Production.INFO: ==13854== Releasing lock... [2025-02-04 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:30:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-04 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:31:05 [end_date_ymd] => 2025-02-04 23:31:05 [RateCDR] => 1 ) [2025-02-04 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:31:05' and `end` < '2025-02-04 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:31:18] Production.INFO: count ==914 [2025-02-04 23:31:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:31:05 - End Time 2025-02-04 23:31:05 [2025-02-04 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403737', 'tblTempUsageDetail_20' ) start [2025-02-04 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403737', 'tblTempUsageDetail_20' ) end [2025-02-04 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403737', 'tblTempVendorCDR_20' ) start [2025-02-04 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403737', 'tblTempVendorCDR_20' ) end [2025-02-04 23:31:18] Production.INFO: ProcessCDR(1,14403737,1,1,2) [2025-02-04 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403737', 'tblTempUsageDetail_20' ) start [2025-02-04 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403737', 'tblTempUsageDetail_20' ) end [2025-02-04 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:31:21] Production.INFO: ==13928== Releasing lock... [2025-02-04 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:31:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-04 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:32:05 [end_date_ymd] => 2025-02-04 23:32:05 [RateCDR] => 1 ) [2025-02-04 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:32:05' and `end` < '2025-02-04 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:32:18] Production.INFO: count ==914 [2025-02-04 23:32:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:32:05 - End Time 2025-02-04 23:32:05 [2025-02-04 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403742', 'tblTempUsageDetail_20' ) start [2025-02-04 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403742', 'tblTempUsageDetail_20' ) end [2025-02-04 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403742', 'tblTempVendorCDR_20' ) start [2025-02-04 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403742', 'tblTempVendorCDR_20' ) end [2025-02-04 23:32:18] Production.INFO: ProcessCDR(1,14403742,1,1,2) [2025-02-04 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403742', 'tblTempUsageDetail_20' ) start [2025-02-04 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403742', 'tblTempUsageDetail_20' ) end [2025-02-04 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:32:21] Production.INFO: ==13998== Releasing lock... [2025-02-04 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:32:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-04 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:33:05 [end_date_ymd] => 2025-02-04 23:33:05 [RateCDR] => 1 ) [2025-02-04 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:33:05' and `end` < '2025-02-04 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:33:18] Production.INFO: count ==910 [2025-02-04 23:33:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:33:05 - End Time 2025-02-04 23:33:05 [2025-02-04 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403747', 'tblTempUsageDetail_20' ) start [2025-02-04 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403747', 'tblTempUsageDetail_20' ) end [2025-02-04 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403747', 'tblTempVendorCDR_20' ) start [2025-02-04 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403747', 'tblTempVendorCDR_20' ) end [2025-02-04 23:33:18] Production.INFO: ProcessCDR(1,14403747,1,1,2) [2025-02-04 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403747', 'tblTempUsageDetail_20' ) start [2025-02-04 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403747', 'tblTempUsageDetail_20' ) end [2025-02-04 23:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:33:21] Production.INFO: ==14068== Releasing lock... [2025-02-04 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:33:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:34:05 [end_date_ymd] => 2025-02-04 23:34:05 [RateCDR] => 1 ) [2025-02-04 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:34:05' and `end` < '2025-02-04 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:34:18] Production.INFO: count ==911 [2025-02-04 23:34:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:34:05 - End Time 2025-02-04 23:34:05 [2025-02-04 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403752', 'tblTempUsageDetail_20' ) start [2025-02-04 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403752', 'tblTempUsageDetail_20' ) end [2025-02-04 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403752', 'tblTempVendorCDR_20' ) start [2025-02-04 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403752', 'tblTempVendorCDR_20' ) end [2025-02-04 23:34:18] Production.INFO: ProcessCDR(1,14403752,1,1,2) [2025-02-04 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403752', 'tblTempUsageDetail_20' ) start [2025-02-04 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403752', 'tblTempUsageDetail_20' ) end [2025-02-04 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:34:21] Production.INFO: ==14139== Releasing lock... [2025-02-04 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:34:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:35:05 [end_date_ymd] => 2025-02-04 23:35:05 [RateCDR] => 1 ) [2025-02-04 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:35:05' and `end` < '2025-02-04 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:35:18] Production.INFO: count ==915 [2025-02-04 23:35:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:35:05 - End Time 2025-02-04 23:35:05 [2025-02-04 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403757', 'tblTempUsageDetail_20' ) start [2025-02-04 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403757', 'tblTempUsageDetail_20' ) end [2025-02-04 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403757', 'tblTempVendorCDR_20' ) start [2025-02-04 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403757', 'tblTempVendorCDR_20' ) end [2025-02-04 23:35:18] Production.INFO: ProcessCDR(1,14403757,1,1,2) [2025-02-04 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403757', 'tblTempUsageDetail_20' ) start [2025-02-04 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403757', 'tblTempUsageDetail_20' ) end [2025-02-04 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:35:21] Production.INFO: ==14211== Releasing lock... [2025-02-04 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:35:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:36:05 [end_date_ymd] => 2025-02-04 23:36:05 [RateCDR] => 1 ) [2025-02-04 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:36:05' and `end` < '2025-02-04 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:36:18] Production.INFO: count ==917 [2025-02-04 23:36:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:36:05 - End Time 2025-02-04 23:36:05 [2025-02-04 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403762', 'tblTempUsageDetail_20' ) start [2025-02-04 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403762', 'tblTempUsageDetail_20' ) end [2025-02-04 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403762', 'tblTempVendorCDR_20' ) start [2025-02-04 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403762', 'tblTempVendorCDR_20' ) end [2025-02-04 23:36:18] Production.INFO: ProcessCDR(1,14403762,1,1,2) [2025-02-04 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403762', 'tblTempUsageDetail_20' ) start [2025-02-04 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403762', 'tblTempUsageDetail_20' ) end [2025-02-04 23:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:36:21] Production.INFO: ==14282== Releasing lock... [2025-02-04 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:36:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-04 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:37:05 [end_date_ymd] => 2025-02-04 23:37:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 20:37:05' and `end` < '2025-02-04 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-02-04 23:37:18] Production.INFO: count ==916 [2025-02-04 23:37:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:37:05 - End Time 2025-02-04 23:37:05 [2025-02-04 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403767', 'tblTempUsageDetail_20' ) start [2025-02-04 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403767', 'tblTempUsageDetail_20' ) end [2025-02-04 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403767', 'tblTempVendorCDR_20' ) start [2025-02-04 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403767', 'tblTempVendorCDR_20' ) end [2025-02-04 23:37:18] Production.INFO: ProcessCDR(1,14403767,1,1,2) [2025-02-04 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403767', 'tblTempUsageDetail_20' ) start [2025-02-04 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403767', 'tblTempUsageDetail_20' ) end [2025-02-04 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:37:22] Production.INFO: ==14358== Releasing lock... [2025-02-04 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:37:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-04 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:38:05 [end_date_ymd] => 2025-02-04 23:38:05 [RateCDR] => 1 ) [2025-02-04 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:38:05' and `end` < '2025-02-04 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:38:18] Production.INFO: count ==899 [2025-02-04 23:38:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:38:05 - End Time 2025-02-04 23:38:05 [2025-02-04 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403772', 'tblTempUsageDetail_20' ) start [2025-02-04 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403772', 'tblTempUsageDetail_20' ) end [2025-02-04 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403772', 'tblTempVendorCDR_20' ) start [2025-02-04 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403772', 'tblTempVendorCDR_20' ) end [2025-02-04 23:38:18] Production.INFO: ProcessCDR(1,14403772,1,1,2) [2025-02-04 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403772', 'tblTempUsageDetail_20' ) start [2025-02-04 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403772', 'tblTempUsageDetail_20' ) end [2025-02-04 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:38:22] Production.INFO: ==14429== Releasing lock... [2025-02-04 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:38:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:39:05 [end_date_ymd] => 2025-02-04 23:39:05 [RateCDR] => 1 ) [2025-02-04 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:39:05' and `end` < '2025-02-04 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:39:18] Production.INFO: count ==899 [2025-02-04 23:39:19] Production.ERROR: pbx CDR StartTime 2025-02-04 20:39:05 - End Time 2025-02-04 23:39:05 [2025-02-04 23:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403777', 'tblTempUsageDetail_20' ) start [2025-02-04 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403777', 'tblTempUsageDetail_20' ) end [2025-02-04 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403777', 'tblTempVendorCDR_20' ) start [2025-02-04 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403777', 'tblTempVendorCDR_20' ) end [2025-02-04 23:39:19] Production.INFO: ProcessCDR(1,14403777,1,1,2) [2025-02-04 23:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403777', 'tblTempUsageDetail_20' ) start [2025-02-04 23:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403777', 'tblTempUsageDetail_20' ) end [2025-02-04 23:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:39:23] Production.INFO: ==14499== Releasing lock... [2025-02-04 23:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:39:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:40:06 [end_date_ymd] => 2025-02-04 23:40:06 [RateCDR] => 1 ) [2025-02-04 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:40:06' and `end` < '2025-02-04 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:40:20] Production.INFO: count ==903 [2025-02-04 23:40:20] Production.ERROR: pbx CDR StartTime 2025-02-04 20:40:06 - End Time 2025-02-04 23:40:06 [2025-02-04 23:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403783', 'tblTempUsageDetail_20' ) start [2025-02-04 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403783', 'tblTempUsageDetail_20' ) end [2025-02-04 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403783', 'tblTempVendorCDR_20' ) start [2025-02-04 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403783', 'tblTempVendorCDR_20' ) end [2025-02-04 23:40:20] Production.INFO: ProcessCDR(1,14403783,1,1,2) [2025-02-04 23:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403783', 'tblTempUsageDetail_20' ) start [2025-02-04 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403783', 'tblTempUsageDetail_20' ) end [2025-02-04 23:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:40:23] Production.INFO: ==14571== Releasing lock... [2025-02-04 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:40:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-04 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:41:05 [end_date_ymd] => 2025-02-04 23:41:05 [RateCDR] => 1 ) [2025-02-04 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:41:05' and `end` < '2025-02-04 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:41:19] Production.INFO: count ==880 [2025-02-04 23:41:19] Production.ERROR: pbx CDR StartTime 2025-02-04 20:41:05 - End Time 2025-02-04 23:41:05 [2025-02-04 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403788', 'tblTempUsageDetail_20' ) start [2025-02-04 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403788', 'tblTempUsageDetail_20' ) end [2025-02-04 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403788', 'tblTempVendorCDR_20' ) start [2025-02-04 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403788', 'tblTempVendorCDR_20' ) end [2025-02-04 23:41:19] Production.INFO: ProcessCDR(1,14403788,1,1,2) [2025-02-04 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403788', 'tblTempUsageDetail_20' ) start [2025-02-04 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403788', 'tblTempUsageDetail_20' ) end [2025-02-04 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:41:22] Production.INFO: ==14643== Releasing lock... [2025-02-04 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:41:22] Production.INFO: 34 MB #Memory Used# [2025-02-04 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:42:05 [end_date_ymd] => 2025-02-04 23:42:05 [RateCDR] => 1 ) [2025-02-04 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:42:05' and `end` < '2025-02-04 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:42:19] Production.INFO: count ==881 [2025-02-04 23:42:19] Production.ERROR: pbx CDR StartTime 2025-02-04 20:42:05 - End Time 2025-02-04 23:42:05 [2025-02-04 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403793', 'tblTempUsageDetail_20' ) start [2025-02-04 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403793', 'tblTempUsageDetail_20' ) end [2025-02-04 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403793', 'tblTempVendorCDR_20' ) start [2025-02-04 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403793', 'tblTempVendorCDR_20' ) end [2025-02-04 23:42:19] Production.INFO: ProcessCDR(1,14403793,1,1,2) [2025-02-04 23:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403793', 'tblTempUsageDetail_20' ) start [2025-02-04 23:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403793', 'tblTempUsageDetail_20' ) end [2025-02-04 23:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:42:24] Production.INFO: ==14713== Releasing lock... [2025-02-04 23:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:42:24] Production.INFO: 34 MB #Memory Used# [2025-02-04 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:43:05 [end_date_ymd] => 2025-02-04 23:43:05 [RateCDR] => 1 ) [2025-02-04 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:43:05' and `end` < '2025-02-04 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:43:18] Production.INFO: count ==885 [2025-02-04 23:43:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:43:05 - End Time 2025-02-04 23:43:05 [2025-02-04 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403798', 'tblTempUsageDetail_20' ) start [2025-02-04 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403798', 'tblTempUsageDetail_20' ) end [2025-02-04 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403798', 'tblTempVendorCDR_20' ) start [2025-02-04 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403798', 'tblTempVendorCDR_20' ) end [2025-02-04 23:43:18] Production.INFO: ProcessCDR(1,14403798,1,1,2) [2025-02-04 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403798', 'tblTempUsageDetail_20' ) start [2025-02-04 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403798', 'tblTempUsageDetail_20' ) end [2025-02-04 23:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:43:22] Production.INFO: ==14822== Releasing lock... [2025-02-04 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:43:22] Production.INFO: 34 MB #Memory Used# [2025-02-04 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:44:05 [end_date_ymd] => 2025-02-04 23:44:05 [RateCDR] => 1 ) [2025-02-04 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:44:05' and `end` < '2025-02-04 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:44:18] Production.INFO: count ==885 [2025-02-04 23:44:19] Production.ERROR: pbx CDR StartTime 2025-02-04 20:44:05 - End Time 2025-02-04 23:44:05 [2025-02-04 23:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403803', 'tblTempUsageDetail_20' ) start [2025-02-04 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403803', 'tblTempUsageDetail_20' ) end [2025-02-04 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403803', 'tblTempVendorCDR_20' ) start [2025-02-04 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403803', 'tblTempVendorCDR_20' ) end [2025-02-04 23:44:19] Production.INFO: ProcessCDR(1,14403803,1,1,2) [2025-02-04 23:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403803', 'tblTempUsageDetail_20' ) start [2025-02-04 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403803', 'tblTempUsageDetail_20' ) end [2025-02-04 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:44:22] Production.INFO: ==14901== Releasing lock... [2025-02-04 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:44:22] Production.INFO: 34 MB #Memory Used# [2025-02-04 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:45:05 [end_date_ymd] => 2025-02-04 23:45:05 [RateCDR] => 1 ) [2025-02-04 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:45:05' and `end` < '2025-02-04 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:45:18] Production.INFO: count ==882 [2025-02-04 23:45:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:45:05 - End Time 2025-02-04 23:45:05 [2025-02-04 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403808', 'tblTempUsageDetail_20' ) start [2025-02-04 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403808', 'tblTempUsageDetail_20' ) end [2025-02-04 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403808', 'tblTempVendorCDR_20' ) start [2025-02-04 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403808', 'tblTempVendorCDR_20' ) end [2025-02-04 23:45:18] Production.INFO: ProcessCDR(1,14403808,1,1,2) [2025-02-04 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403808', 'tblTempUsageDetail_20' ) start [2025-02-04 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403808', 'tblTempUsageDetail_20' ) end [2025-02-04 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:45:21] Production.INFO: ==14976== Releasing lock... [2025-02-04 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:45:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 23:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:46:06 [end_date_ymd] => 2025-02-04 23:46:06 [RateCDR] => 1 ) [2025-02-04 23:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:46:06' and `end` < '2025-02-04 23:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:46:19] Production.INFO: count ==880 [2025-02-04 23:46:19] Production.ERROR: pbx CDR StartTime 2025-02-04 20:46:06 - End Time 2025-02-04 23:46:06 [2025-02-04 23:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403813', 'tblTempUsageDetail_20' ) start [2025-02-04 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403813', 'tblTempUsageDetail_20' ) end [2025-02-04 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403813', 'tblTempVendorCDR_20' ) start [2025-02-04 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403813', 'tblTempVendorCDR_20' ) end [2025-02-04 23:46:19] Production.INFO: ProcessCDR(1,14403813,1,1,2) [2025-02-04 23:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403813', 'tblTempUsageDetail_20' ) start [2025-02-04 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403813', 'tblTempUsageDetail_20' ) end [2025-02-04 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:46:22] Production.INFO: ==15047== Releasing lock... [2025-02-04 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:46:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 23:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:47:04 [end_date_ymd] => 2025-02-04 23:47:04 [RateCDR] => 1 ) [2025-02-04 23:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:47:04' and `end` < '2025-02-04 23:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:47:18] Production.INFO: count ==884 [2025-02-04 23:47:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:47:04 - End Time 2025-02-04 23:47:04 [2025-02-04 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403818', 'tblTempUsageDetail_20' ) start [2025-02-04 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403818', 'tblTempUsageDetail_20' ) end [2025-02-04 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403818', 'tblTempVendorCDR_20' ) start [2025-02-04 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403818', 'tblTempVendorCDR_20' ) end [2025-02-04 23:47:18] Production.INFO: ProcessCDR(1,14403818,1,1,2) [2025-02-04 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403818', 'tblTempUsageDetail_20' ) start [2025-02-04 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403818', 'tblTempUsageDetail_20' ) end [2025-02-04 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:47:21] Production.INFO: ==15117== Releasing lock... [2025-02-04 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:47:21] Production.INFO: 34 MB #Memory Used# [2025-02-04 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:48:05 [end_date_ymd] => 2025-02-04 23:48:05 [RateCDR] => 1 ) [2025-02-04 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:48:05' and `end` < '2025-02-04 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:48:18] Production.INFO: count ==884 [2025-02-04 23:48:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:48:05 - End Time 2025-02-04 23:48:05 [2025-02-04 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403823', 'tblTempUsageDetail_20' ) start [2025-02-04 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403823', 'tblTempUsageDetail_20' ) end [2025-02-04 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403823', 'tblTempVendorCDR_20' ) start [2025-02-04 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403823', 'tblTempVendorCDR_20' ) end [2025-02-04 23:48:18] Production.INFO: ProcessCDR(1,14403823,1,1,2) [2025-02-04 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403823', 'tblTempUsageDetail_20' ) start [2025-02-04 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403823', 'tblTempUsageDetail_20' ) end [2025-02-04 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:48:22] Production.INFO: ==15190== Releasing lock... [2025-02-04 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:48:22] Production.INFO: 34 MB #Memory Used# [2025-02-04 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:49:05 [end_date_ymd] => 2025-02-04 23:49:05 [RateCDR] => 1 ) [2025-02-04 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:49:05' and `end` < '2025-02-04 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:49:18] Production.INFO: count ==888 [2025-02-04 23:49:19] Production.ERROR: pbx CDR StartTime 2025-02-04 20:49:05 - End Time 2025-02-04 23:49:05 [2025-02-04 23:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403828', 'tblTempUsageDetail_20' ) start [2025-02-04 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403828', 'tblTempUsageDetail_20' ) end [2025-02-04 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403828', 'tblTempVendorCDR_20' ) start [2025-02-04 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403828', 'tblTempVendorCDR_20' ) end [2025-02-04 23:49:19] Production.INFO: ProcessCDR(1,14403828,1,1,2) [2025-02-04 23:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403828', 'tblTempUsageDetail_20' ) start [2025-02-04 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403828', 'tblTempUsageDetail_20' ) end [2025-02-04 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:49:22] Production.INFO: ==15266== Releasing lock... [2025-02-04 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:49:22] Production.INFO: 34 MB #Memory Used# [2025-02-04 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:50:06 [end_date_ymd] => 2025-02-04 23:50:06 [RateCDR] => 1 ) [2025-02-04 23:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:50:06' and `end` < '2025-02-04 23:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:50:20] Production.INFO: count ==889 [2025-02-04 23:50:20] Production.ERROR: pbx CDR StartTime 2025-02-04 20:50:06 - End Time 2025-02-04 23:50:06 [2025-02-04 23:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403834', 'tblTempUsageDetail_20' ) start [2025-02-04 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403834', 'tblTempUsageDetail_20' ) end [2025-02-04 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403834', 'tblTempVendorCDR_20' ) start [2025-02-04 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403834', 'tblTempVendorCDR_20' ) end [2025-02-04 23:50:20] Production.INFO: ProcessCDR(1,14403834,1,1,2) [2025-02-04 23:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403834', 'tblTempUsageDetail_20' ) start [2025-02-04 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403834', 'tblTempUsageDetail_20' ) end [2025-02-04 23:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:50:23] Production.INFO: ==15339== Releasing lock... [2025-02-04 23:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:50:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:51:05 [end_date_ymd] => 2025-02-04 23:51:05 [RateCDR] => 1 ) [2025-02-04 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:51:05' and `end` < '2025-02-04 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:51:20] Production.INFO: count ==875 [2025-02-04 23:51:20] Production.ERROR: pbx CDR StartTime 2025-02-04 20:51:05 - End Time 2025-02-04 23:51:05 [2025-02-04 23:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403839', 'tblTempUsageDetail_20' ) start [2025-02-04 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403839', 'tblTempUsageDetail_20' ) end [2025-02-04 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403839', 'tblTempVendorCDR_20' ) start [2025-02-04 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403839', 'tblTempVendorCDR_20' ) end [2025-02-04 23:51:20] Production.INFO: ProcessCDR(1,14403839,1,1,2) [2025-02-04 23:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403839', 'tblTempUsageDetail_20' ) start [2025-02-04 23:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403839', 'tblTempUsageDetail_20' ) end [2025-02-04 23:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:51:23] Production.INFO: ==15412== Releasing lock... [2025-02-04 23:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:51:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:52:05 [end_date_ymd] => 2025-02-04 23:52:05 [RateCDR] => 1 ) [2025-02-04 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:52:05' and `end` < '2025-02-04 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:52:18] Production.INFO: count ==877 [2025-02-04 23:52:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:52:05 - End Time 2025-02-04 23:52:05 [2025-02-04 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403844', 'tblTempUsageDetail_20' ) start [2025-02-04 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403844', 'tblTempUsageDetail_20' ) end [2025-02-04 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403844', 'tblTempVendorCDR_20' ) start [2025-02-04 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403844', 'tblTempVendorCDR_20' ) end [2025-02-04 23:52:18] Production.INFO: ProcessCDR(1,14403844,1,1,2) [2025-02-04 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403844', 'tblTempUsageDetail_20' ) start [2025-02-04 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403844', 'tblTempUsageDetail_20' ) end [2025-02-04 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:52:22] Production.INFO: ==15483== Releasing lock... [2025-02-04 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:52:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-04 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:53:05 [end_date_ymd] => 2025-02-04 23:53:05 [RateCDR] => 1 ) [2025-02-04 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-02-04 20:53:05' and `end` < '2025-02-04 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-02-04 23:53:19] Production.INFO: count ==877 [2025-02-04 23:53:19] Production.ERROR: pbx CDR StartTime 2025-02-04 20:53:05 - End Time 2025-02-04 23:53:05 [2025-02-04 23:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403849', 'tblTempUsageDetail_20' ) start [2025-02-04 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403849', 'tblTempUsageDetail_20' ) end [2025-02-04 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403849', 'tblTempVendorCDR_20' ) start [2025-02-04 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403849', 'tblTempVendorCDR_20' ) end [2025-02-04 23:53:19] Production.INFO: ProcessCDR(1,14403849,1,1,2) [2025-02-04 23:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403849', 'tblTempUsageDetail_20' ) start [2025-02-04 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403849', 'tblTempUsageDetail_20' ) end [2025-02-04 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:53:22] Production.INFO: ==15555== Releasing lock... [2025-02-04 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:53:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-04 23:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:54:04 [end_date_ymd] => 2025-02-04 23:54:04 [RateCDR] => 1 ) [2025-02-04 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-02-04 20:54:04' and `end` < '2025-02-04 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-02-04 23:54:19] Production.INFO: count ==874 [2025-02-04 23:54:19] Production.ERROR: pbx CDR StartTime 2025-02-04 20:54:04 - End Time 2025-02-04 23:54:04 [2025-02-04 23:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403850', 'tblTempUsageDetail_20' ) start [2025-02-04 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403850', 'tblTempUsageDetail_20' ) end [2025-02-04 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403850', 'tblTempVendorCDR_20' ) start [2025-02-04 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403850', 'tblTempVendorCDR_20' ) end [2025-02-04 23:54:19] Production.INFO: ProcessCDR(1,14403850,1,1,2) [2025-02-04 23:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403850', 'tblTempUsageDetail_20' ) start [2025-02-04 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403850', 'tblTempUsageDetail_20' ) end [2025-02-04 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:54:22] Production.INFO: ==15625== Releasing lock... [2025-02-04 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:54:22] Production.INFO: 34 MB #Memory Used# [2025-02-04 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:55:05 [end_date_ymd] => 2025-02-04 23:55:05 [RateCDR] => 1 ) [2025-02-04 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:55:05' and `end` < '2025-02-04 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:55:18] Production.INFO: count ==872 [2025-02-04 23:55:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:55:05 - End Time 2025-02-04 23:55:05 [2025-02-04 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403859', 'tblTempUsageDetail_20' ) start [2025-02-04 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403859', 'tblTempUsageDetail_20' ) end [2025-02-04 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403859', 'tblTempVendorCDR_20' ) start [2025-02-04 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403859', 'tblTempVendorCDR_20' ) end [2025-02-04 23:55:18] Production.INFO: ProcessCDR(1,14403859,1,1,2) [2025-02-04 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403859', 'tblTempUsageDetail_20' ) start [2025-02-04 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403859', 'tblTempUsageDetail_20' ) end [2025-02-04 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:55:21] Production.INFO: ==15695== Releasing lock... [2025-02-04 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:55:21] Production.INFO: 34 MB #Memory Used# [2025-02-04 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:56:05 [end_date_ymd] => 2025-02-04 23:56:05 [RateCDR] => 1 ) [2025-02-04 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:56:05' and `end` < '2025-02-04 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:56:19] Production.INFO: count ==872 [2025-02-04 23:56:19] Production.ERROR: pbx CDR StartTime 2025-02-04 20:56:05 - End Time 2025-02-04 23:56:05 [2025-02-04 23:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403864', 'tblTempUsageDetail_20' ) start [2025-02-04 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403864', 'tblTempUsageDetail_20' ) end [2025-02-04 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403864', 'tblTempVendorCDR_20' ) start [2025-02-04 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403864', 'tblTempVendorCDR_20' ) end [2025-02-04 23:56:19] Production.INFO: ProcessCDR(1,14403864,1,1,2) [2025-02-04 23:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403864', 'tblTempUsageDetail_20' ) start [2025-02-04 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403864', 'tblTempUsageDetail_20' ) end [2025-02-04 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:56:22] Production.INFO: ==15767== Releasing lock... [2025-02-04 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:56:22] Production.INFO: 34 MB #Memory Used# [2025-02-04 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:57:05 [end_date_ymd] => 2025-02-04 23:57:05 [RateCDR] => 1 ) [2025-02-04 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:57:05' and `end` < '2025-02-04 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:57:18] Production.INFO: count ==872 [2025-02-04 23:57:18] Production.ERROR: pbx CDR StartTime 2025-02-04 20:57:05 - End Time 2025-02-04 23:57:05 [2025-02-04 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403869', 'tblTempUsageDetail_20' ) start [2025-02-04 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403869', 'tblTempUsageDetail_20' ) end [2025-02-04 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403869', 'tblTempVendorCDR_20' ) start [2025-02-04 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403869', 'tblTempVendorCDR_20' ) end [2025-02-04 23:57:18] Production.INFO: ProcessCDR(1,14403869,1,1,2) [2025-02-04 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403869', 'tblTempUsageDetail_20' ) start [2025-02-04 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403869', 'tblTempUsageDetail_20' ) end [2025-02-04 23:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:57:22] Production.INFO: ==15838== Releasing lock... [2025-02-04 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:57:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-04 23:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:58:06 [end_date_ymd] => 2025-02-04 23:58:06 [RateCDR] => 1 ) [2025-02-04 23:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:58:06' and `end` < '2025-02-04 23:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:58:19] Production.INFO: count ==877 [2025-02-04 23:58:19] Production.ERROR: pbx CDR StartTime 2025-02-04 20:58:06 - End Time 2025-02-04 23:58:06 [2025-02-04 23:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403874', 'tblTempUsageDetail_20' ) start [2025-02-04 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403874', 'tblTempUsageDetail_20' ) end [2025-02-04 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403874', 'tblTempVendorCDR_20' ) start [2025-02-04 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403874', 'tblTempVendorCDR_20' ) end [2025-02-04 23:58:19] Production.INFO: ProcessCDR(1,14403874,1,1,2) [2025-02-04 23:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403874', 'tblTempUsageDetail_20' ) start [2025-02-04 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403874', 'tblTempUsageDetail_20' ) end [2025-02-04 23:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:58:23] Production.INFO: ==15908== Releasing lock... [2025-02-04 23:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:58:23] Production.INFO: 34 MB #Memory Used# [2025-02-04 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-04 20:59:05 [end_date_ymd] => 2025-02-04 23:59:05 [RateCDR] => 1 ) [2025-02-04 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-04 20:59:05' and `end` < '2025-02-04 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-04 23:59:19] Production.INFO: count ==877 [2025-02-04 23:59:19] Production.ERROR: pbx CDR StartTime 2025-02-04 20:59:05 - End Time 2025-02-04 23:59:05 [2025-02-04 23:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-04 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403879', 'tblTempUsageDetail_20' ) start [2025-02-04 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14403879', 'tblTempUsageDetail_20' ) end [2025-02-04 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403879', 'tblTempVendorCDR_20' ) start [2025-02-04 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14403879', 'tblTempVendorCDR_20' ) end [2025-02-04 23:59:19] Production.INFO: ProcessCDR(1,14403879,1,1,2) [2025-02-04 23:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14403879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14403879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-04 23:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14403879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14403879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-04 23:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403879', 'tblTempUsageDetail_20' ) start [2025-02-04 23:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14403879', 'tblTempUsageDetail_20' ) end [2025-02-04 23:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-04 23:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-04 23:59:24] Production.INFO: ==16020== Releasing lock... [2025-02-04 23:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-04 23:59:24] Production.INFO: 34 MB #Memory Used#